Update controls on mastertable item only

5 posts, 1 answers
  1. Geejay
    Geejay avatar
    45 posts
    Member since:
    Feb 2007

    Posted 15 Dec 2008 Link to this post

    Hi Telerik team,

    I could need some help on this. I have a RadGrid with detail tables. When an item in the mastertable is clicked, some controls are updated via the Ajaxmanager. But if an item in the detail table is clicked (and also when the detail table is expanding) the controls are updated too. But I don't want that, I only want the controls to be updated when a mastertable item is selected on a row click. How can I do this?
    I read and tried several things in your documentation but so far I'm getting nowhere.

    Thanks!

    Geert

  2. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 18 Dec 2008 Link to this post

    Hello Geejay,

    Please find the attached website and let me know whether this approach suits your needs.

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Geejay
    Geejay avatar
    45 posts
    Member since:
    Feb 2007

    Posted 19 Dec 2008 Link to this post

    Hello Daniel,

    thank you very much for the example! It's what I want and I never imagined it could be that simple.
    However, I have another question, which maybe can be answered just as simple? When I click on a row a loadingpanel appears on the grid AND on the panel which is being updated. Hoewever, this also occurs when I expand the detailstable and when I click on the edit/delete buttons in the detailstable. Can I prevent showing the loadingpanel above the Controlspanel when expanding and clicking on the edit/delete buttons in the detailstabel?

    Best wishes,
    Geert
  5. Geejay
    Geejay avatar
    45 posts
    Member since:
    Feb 2007

    Posted 19 Dec 2008 Link to this post

    Hello Daniel,

    ignore my question, I already found it. Only clicking in the MasterTable shows the loadingpanel:

    var

     

    index = args.get_itemIndexHierarchical();

     

     

    if (index.indexOf('_') == -1)

     

     

    var loadingPanel = $find('<%=RadAjaxLoadingPanel1.ClientID %>');

     

    loadingPanel.show(

    '<%=RadMultiPage2.ClientID %>');

     

    $find(

    '<%=RadAjaxManager1.ClientID %>').ajaxRequestWithTarget('<%=grdGroepsplannen.UniqueID %>', "RowClick;" + index);

     

     

    }

    And via the OnResponseEnd event of the Ajaxmanager it hides the loadingPanel:
    function RequestEnd()

     

    {

     

    var loadingPanel = $find('<%=RadAjaxLoadingPanel1.ClientID %>');

     

    loadingPanel.hide(

    '<%=RadMultiPage2.ClientID %>');

     

    }

    Best Wishes,

    Geert

  6. Answer
    Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 20 Dec 2008 Link to this post

    Hello Geejay,

    Thank you for sharing your code with us. I believe it will be helpful for our community.

    Keep up the good work.

    Kind regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017