Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
174 views

I have a barchart, and at first I bind a datatable to this chart, it shows properly. Then when I click on a button, I would like the bar chart to show nothing (not clear series, because later on I need this chart to show another datatable), so I set Chart1.DataSource = null; Chart1.Databind();

But this is not working. The data on the chart keeps showing even if I set a null as its datasource. What's wrong? Please help! Thanks.

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 03 May 2023
2 answers
203 views
Hi
i am using  2013.2.625.40 and i saw below link

http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/applicationscenarios/dropdowntreeingrid/defaultcs.aspx

can i use in my version if not can you please let me know how to do or any working sample

SelectedValue='<%#Bind("EmployeeID") %>' is not available in my version

Thanks
Senthil
Attila Antal
Telerik team
 updated question on 03 May 2023
0 answers
145 views

Hello,

I am trying to implement the Amazon S3 FileBrowserContentProvider to download file from S3 bucket using the function (ForceDownlodFile)

The file gets downloaded properly upon fileclick the RadWindow is opened and the file gets downloaded.

How to hide the RadWindow from code-behind?

 

Thanks

Michel

Michel
Top achievements
Rank 1
 updated question on 02 May 2023
0 answers
170 views

This is an odd problem that started yesterday. It has been working fine for years. It happens in all browsers.

In all my RadGrid pages, they all open correctly, and immediately the grid resizes to less than a line. If I change the browser between full screen and not full, the grid displays properly. So, every time I look at a list, I must change the window size mode - not a good work around for a product.

I have no idea what to even look at to solve this sudden out of nowhere problem.

All grids use a similar host code definition.

  RadGrid signupGrid = SignupGrid;
                signupGrid.NeedDataSource += new GridNeedDataSourceEventHandler(AdminGrid_NeedDataSource);
                signupGrid.Skin = "Default";
                signupGrid.AutoGenerateColumns = false;
                signupGrid.EnableViewState = false;
                signupGrid.GroupingEnabled = false;
                signupGrid.AllowPaging = true;
                signupGrid.PageSize = 100;
                signupGrid.Height = Unit.Percentage(100);
                signupGrid.EnableHeaderContextMenu = true;
                signupGrid.AllowSorting = true;
                signupGrid.AllowFilteringByColumn = true;
                signupGrid.AllowMultiRowSelection = false;
                signupGrid.AllowAutomaticDeletes = true;

                signupGrid.ClientSettings.EnableRowHoverStyle = true;
                signupGrid.ClientSettings.Selecting.AllowRowSelect = true;
                signupGrid.ClientSettings.Selecting.EnableDragToSelectRows = true;
                signupGrid.ClientSettings.ReorderColumnsOnClient = true;
                signupGrid.ClientSettings.AllowColumnsReorder = true;
                signupGrid.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;
                signupGrid.ClientSettings.Virtualization.EnableVirtualization = true;
                signupGrid.ClientSettings.Virtualization.InitiallyCachedItemsCount = 2000;
                signupGrid.ClientSettings.Scrolling.AllowScroll = true;
                signupGrid.ClientSettings.Scrolling.UseStaticHeaders = true;
                signupGrid.ClientSettings.Scrolling.ScrollHeight = Unit.Percentage(100);
                signupGrid.ClientSettings.Resizing.AllowColumnResize = true;
                signupGrid.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced;
                signupGrid.GroupingSettings.CaseSensitive = false;

                               --- column definitions ---

The browser definition where windowPercent is height:100%

    <div id="GridDiv" runat="server" >
        <asp:panel runat="server" ID="Panel1"  CssClass="windowPercent" >
            <telerik:RadGrid runat="server" ID="SignupGrid" OnItemCommand="Grid_ItemCommand" ActiveItemStyle-VerticalAlign="Bottom" >
                <ClientSettings>
                    <ClientEvents OnRowDblClick="RowDblClick" />
               </ClientSettings>
            </telerik:RadGrid>
        </asp:panel>
    </div>

Any help or ideas to try are greatly appreciated.

George

              
George
Top achievements
Rank 1
 asked on 30 Apr 2023
0 answers
211 views

Hi,

   My grid is in EditMode="Batch" and  RadDropDownTree in GridTemplateColumn behaves funky.

   Am i missing anything?

Thank you

David

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 28 Apr 2023
1 answer
152 views

Hello, everyone. I need your help. How can I disable the button when uploading an image, and the button becomes enable after the image is uploaded successfully. I'd prefer to do it in JavaScript but I failed. just like

var btnMove = $find("<%= RadGrid1.ClientID %>").get_masterTableView().get_commandItem().findControl("btnMove");             
btnMove.set_enabled(false);

It's useless,how can I do it. there are my code.

 <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" CssClass="outerMultiPage">
            <telerik:RadPageView runat="server" ID="RadPageView1">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" Height="740px" BackColor="#FFFFFF">                   
                    <div class="ContentRow">
                        <div class="column c1 ">
                            <telerik:RadLabel ID="LabContainer" runat="server" Text="LabContainer" CssClass="LabOnRight" ForeColor="#000000"></telerik:RadLabel>
                        </div>
                        <div class="column c2 ">
                             <telerik:RadTextBox ID="txtContainer" runat="server" ></telerik:RadTextBox>
                        </div>
                    </div>     
                    <div class="ContentRow">                  
                           <telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp"   OnClientFileUploading="OnClientFileUploading" OnClientValidationFailed="onClientValidationFailed"  MaxFileInputsCount="1" PostbackTriggers="btnMove" >                                
                            </telerik:RadAsyncUpload>                            
                     </div>
                    <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" Height="700px" AllowPaging="true" PageSize="10" AllowAutomaticDeletes="true" 
                        AllowAutomaticUpdates="false" AllowAutomaticInserts="false"  AllowFilteringByColumn="false" AllowMultiRowSelection="false"
                        OnNeedDataSource="RadGrid_NeedDataSource" OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" 
                        OnItemCreated="RadGrid_ItemCreated" OnDeleteCommand ="RadGrid_DeleteCommand" >
                        <PagerStyle Position="Bottom" AlwaysVisible="true" PageSizes="10,20,30"></PagerStyle>
                        <ClientSettings EnableAlternatingItems="true" AllowKeyboardNavigation="False" EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="false" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
                        </ClientSettings>
                         <AlternatingItemStyle BackColor ="LightBlue" />
                        <MasterTableView DataKeyNames="ContainerName" AutoGenerateColumns="false" CommandItemDisplay="Top" EditMode="PopUp">
                            <CommandItemTemplate>
                                <telerik:RadPushButton ID="btnClearAll" runat="server" UniqueName="btnClearAll" Text="Clear All" OnClick ="btnClearAll_Click"></telerik:RadPushButton>
                                <telerik:RadPushButton ID="btnMove" runat="server" UniqueName="btnMove" Text="Move In" OnClientClicking="ShowMoveForm"></telerik:RadPushButton>                               
                            </CommandItemTemplate>
                            <CommandItemSettings ShowAddNewRecordButton="false" />
                            <Columns>
 </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

                </telerik:RadAjaxPanel>
            </telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadPageView2">
//
//
</telerik:RadMultiPage>


Attila Antal
Telerik team
 answered on 26 Apr 2023
1 answer
237 views

I would like to select and fire the event of the first row of a grid on loading time, server side.

How to select a row is easy 

RagGrid1.Items[0].Selected = true;

but this doesn't fire the event

OnItemCommand="..."

 

any idea ?

thanks

Renato

Attila Antal
Telerik team
 answered on 26 Apr 2023
0 answers
136 views

None of the the stripping options allows me to clean the style tag from this paragraph:

 

<p style="color: #000000; margin: 0cm;">Wondzorg Nijmegen is een samenwerkingsverband tussen A-NIMO, het Canisius-Wilhelmina Ziekenhuis, ATC (Apothekers Thuiszorg Co&ouml;rdinatiecentrum), ZZG Zorggroep en NEO Huisartsenzorg.</p>

I have also tested in your demo environment.

How to achieve this?

 

Marc

 

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 25 Apr 2023
1 answer
292 views

My page logic is that I click on an 'Apply' button, then in the Apply_Click method, I do some data binding, such as: Grid1.Datasource = xxx; Grid1.DataBind(); . And the grid can show properly on the page. But when I click on other buttons on this page (for example: click the filter on the grid) to trigger a post back, the content on the grid just disappears (The datasource is stored in a session, so it's not datasource's problem). I need to add databind() to Page_Load() to prevent this from happening. But this is very weird and feels not right. Can you help me locate the real problem?

The same issue is happening bothe in Grid and OrgChart.

Doncho
Telerik team
 answered on 25 Apr 2023
1 answer
333 views

I read this , but when I copied the code into my own project and followed the documentation, this just didn't work. The node size and the group size are weird.  No matter how I tried to edit the css settings, the height of the node just wouldn't change. Can anybody help me?

And btw I also want to ask, what do  .rocItem and .rocItemContent mean? When I use my browser's inspect function, I also see a .rocItemTemplate, what is that?

Doncho
Telerik team
 answered on 25 Apr 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?