Multiple radgrid's Client side rebind not working.

4 posts, 0 answers
  1. Balaji
    Balaji avatar
    8 posts
    Member since:
    Jun 2015

    Posted 15 Jun 2015 Link to this post

    Hi i have 3 radgrid in my application. It is in Parent page. In child page i have the data's to be inserted into the list(not just a grid insert, but a page with validation controls and all). I'm using jquery popup for that.

    After closing the popup window i want to rebind the radgrid in client side using  $find("<% =Grid1.ClientID %>").get_masterTableView().rebind();

    It is working fine, if we have only one grid. However it is not working if it 3 grids like below:

    $find("<% =Grid1.ClientID %>").get_masterTableView().rebind();

    $find("<% =Grid2.ClientID %>").get_masterTableView().rebind();

    $find("<% =Grid3.ClientID %>").get_masterTableView().rebind();

    The above code executes in client side and rebinds only the LAST one.. here that Grid3 rebinds.

    FYI : Now i want  to achieve it within this jquery popup not with Radwindow manager.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Jun 2015 Link to this post

    Hello Balaji,

    I tried to replicate the described issue on my end but to no avail. Find attached a small runnable example that demonstrates the required functionality. Test it on your end and verify what the difference in your case is.

    Regards,
    Maria Ilieva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Balaji
    Balaji avatar
    8 posts
    Member since:
    Jun 2015

    Posted 19 Jun 2015 in reply to Maria Ilieva Link to this post

    Hi Maria,

    I achieved it using a radbutton.. 

     instead of using three radgrid client id's i have used a radbutton click event. 

    Javascript

    function refresh()

    {

    $find("<% =radbutton.ClientID %>").click();

    }

     

    In the server side, radbutton_Click event.  i have written the below code

    protected void radbutton_click(object sender,event args)

    {

    Grid1.rebind();

    Grid2.rebind();

    Grid3.rebind();

    }

     

    anyway thanks.. i tried your code too.

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Jun 2015 Link to this post

    Hello Balaji,

    I'm glad that you were able to fix the issue on your end. Do not hesitate to contact us back in case further assistance is needed.

    Regards,
    Maria Ilieva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top