This is a migrated thread and some comments may be shown as answers.

Loading whole page when we check checkbox.

1 Answer 111 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nagendra
Top achievements
Rank 1
Nagendra asked on 13 Sep 2011, 01:37 PM
Hi,

  I have radtreeview and radgrid in my page. In radtreeview i have checkboxes. when i check the checkbox, that node details loading from database and binding to radgrid. All these functionalities working fine.

 But when i check the another check box, it's loading all the selected checkbox's data from database every time (Whole page loading).
It's taking lot of time. So  I am planing to implement ajax, Can you please provide me sample links or sample applications.

 Please find the attached screen shot of my page.


Thanks and Regards,
Nagendra.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Sep 2011, 02:21 PM
Hello Nagendra,
Here is a sample aspx to achieve the same.

mark-up:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
 <AjaxSettings>
  <telerik:AjaxSetting AjaxControlID="RadTreeView1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
      </UpdatedControls>
   </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" Height="280px" OnNodeCheck="RadTreeView1_NodeCheck">
 <Nodes>
  <telerik:RadTreeNode Text="Software" Expanded="true">
      <Nodes>
        <telerik:RadTreeNode Text="Business &amp; Office" />
      </Nodes>
  </telerik:RadTreeNode>
  <telerik:RadTreeNode Text="Books">
     <Nodes>
        <telerik:RadTreeNode Text="Arts" />
     </Nodes>
  </telerik:RadTreeNode>
</Nodes>
</telerik:RadTreeView>
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="true">
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT  LastName FROM [Employees]">
</
asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"SelectCommand="SELECT  FirstName FROM [Employees]">
</
asp:SqlDataSource>

Thanks,
Shinu.
Tags
ComboBox
Asked by
Nagendra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or