Hello,
I have a problem with my RadaGrid. This is my ascx page :
Basically, i have two panes, the left(sliding) and the right(which has the grid). I am filling up the the tree(in the left pane) in the code behind. Now when i click a node in the tree, the grid(in the right pane) should change depending in the node i clicked.
In the code behind i have this :
But the grid is not getting refreshed. But when i keep a break point and see what is happening, everything is going as it should be, the tb is getting updated, but the grid is not getting refreshed. When i change the page size, then it is fine. Only when i click on the node, the problem comes. My aspx page has EnableViewState = false. Please help. Thanks
I have a problem with my RadaGrid. This is my ascx page :
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"> </telerik:RadAjaxLoadingPanel> <telerik:RadSplitter ID = "RadSplitter1" runat ="server" Skin = "Windows7" SplitBarsSize = "" Width ="100%" Height ="650" > <telerik:RadPane ID = "LeftPane" runat = "server" Scrolling ="None" Width ="20px" > <telerik:RadSlidingZone ID = "SlidingZone1" runat ="server" > <telerik:RadSlidingPane ID = "RadSlidingPane1" Title = "User Groups" runat ="server" Width = "220" MinWidth ="220" MaxWidth ="400" EnableDock = "false" Scrolling ="Y" > <telerik:RadAjaxPanel ID = "RadAjaxPanel1" runat ="server" LoadingPanelID = "RadAjaxLoadingPanel1" > <telerik:RadTreeView ID ="RadTreeView1" runat ="server" OnNodeExpand = "RadTreeView1_NodeExpand" Height ="520" LoadingStatusPosition ="BeforeNodeText" AllowNodeEditing ="true" OnContextMenuItemClick = "RadTreeView1_ContextMenuItemClick" ViewStateMode ="Enabled" OnClientContextMenuShowing = "onClientContextMenuShowing" PersistLoadOnDemandNodes ="true" > </telerik:RadTreeView> </telerik:RadAjaxPanel> </telerik:RadSlidingPane> </telerik:RadSlidingZone> </telerik:RadPane> <telerik:RadSplitBar ID = "Radsplitbar1" runat ="server" ></telerik:RadSplitBar> <telerik:RadPane ID = "RightPane" runat = "server" Scrolling = "None" Width ="100%" > <telerik:RadAjaxManager ID ="RadAjaxManager1" runat ="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid Width ="100%" ID="RadGrid1" runat ="server" AllowCustomPaging ="false" CssClass ="NextPrevAndNumeric" AllowPaging ="true" AllowSorting ="true" PageSize ="20" ShowStatusBar ="true" GridLines ="Vertical" EnableViewState ="false" > <PagerStyle Mode ="NextPrevAndNumeric" /> <FilterMenu EnableTheming="True"> <CollapseAnimation Duration="200" Type="OutQuint" /> </FilterMenu> <MasterTableView Width="100%" AutoGenerateColumns ="false" EnableColumnsViewState ="false" > <Columns> <telerik:GridBoundColumn HeaderText ="User Name" DataField="AAA" ></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField ="BBB" HeaderText ="USer Id"></telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </telerik:RadPane> </telerik:RadSplitter>Basically, i have two panes, the left(sliding) and the right(which has the grid). I am filling up the the tree(in the left pane) in the code behind. Now when i click a node in the tree, the grid(in the right pane) should change depending in the node i clicked.
In the code behind i have this :
Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick USerGroupSelected = CintG(e.Node.Value) RadGrid1.DataSource = Nothing RadGrid1.Rebind() End SubPrivate Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource Dim tb As New DataTable = GETDATA(USerGroupSelected) RadGrid1.DataSource = tb End SubBut the grid is not getting refreshed. But when i keep a break point and see what is happening, everything is going as it should be, the tb is getting updated, but the grid is not getting refreshed. When i change the page size, then it is fine. Only when i click on the node, the problem comes. My aspx page has EnableViewState = false. Please help. Thanks