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

Multiple radgrid's Client side rebind not working.

3 Answers 195 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 15 Jun 2015, 06:55 AM

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.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 17 Jun 2015, 12:47 PM
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
0
Balaji
Top achievements
Rank 1
answered on 19 Jun 2015, 06:38 AM

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.

0
Maria Ilieva
Telerik team
answered on 23 Jun 2015, 12:05 PM
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
Tags
Grid
Asked by
Balaji
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Balaji
Top achievements
Rank 1
Share this question
or