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

Radgrid row selection rebinds another controls

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peny
Top achievements
Rank 1
Peny asked on 24 Jul 2012, 09:45 AM
Hello everyone,

I have a The following structure at my aspx page.

RadPanelBar - >RadPanelItem1 - > contractsGrid
                      - >RadPanelItem2 - > RadTabStrip - >RadMultiPage1 - >RadPageView3->RadSplitter1->RadPane1->RadGridInstallments
                                                                                                          - >RadPageView2->UpdatePanel ->Label1
                     - >RadPanelItem3 - > contractsGrid ->UpdatePanel3 ->RadGrid5

UpdatePanel_contract -> HiddenField_contract

What I am trying to achieve:

The user selects a row at contractsGrid
I get the selected id and I change the HiddenField_contract value.
Based on the HiddenField_contract value, the RadGridInstallments , the Label1 and the RadGrid5 have different value, so I want to rebind.

I have managed to do so, by enabling "EnablePostBackOnRowClick" at the contractsGrid.

Although, I don't want the selection to fire a postback at all!!!!!!!!!!

Is there another way to do that?

I would really appreciate any help, because I am really stuck here...... :- (

Regards,
Peny

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 27 Jul 2012, 03:05 PM
Hi Peny,

If you are looking simply to rebind the control on client-side, please use the following JavaScript code:
function RGrid()
{
  var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
  masterTable.rebind();
}

If you want to rebind the grid on server-side you can use the following code:
//Executable code
RadGrid1.MasterTableView.Rebind();


Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Peny
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or