Loading whole page when we check checkbox.

2 posts, 0 answers
  1. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 13 Sep 2011 Link to this post

    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.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Sep 2011 Link to this post

    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.
Back to Top