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

Refresh Button not Work in Dynamic Created Grid....

6 Answers 290 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vinod
Top achievements
Rank 1
vinod asked on 10 Oct 2008, 11:53 AM
Hello All,
 
I am creating RadGrid Runtime it works fine.but when i am click on Refresh Button  doesn't Works(Not Rebinding Grid) please provide me solution asap with example.

Thanks In Advance.....

6 Answers, 1 is accepted

Sort by
0
vinod
Top achievements
Rank 1
answered on 13 Oct 2008, 04:54 AM
Hello All,
 
I am creating RadGrid Runtime it works fine.but when i am click on Refresh Button  doesn't Works(Not Rebinding Grid) please provide me solution asap with example.

Thanks In Advance.....
0
Shinu
Top achievements
Rank 2
answered on 13 Oct 2008, 05:20 AM
Hi Vinod,

I am not sure about the problem you face but you can try the following code snippet to rebind the Grid on clicking the Refresh button. Just give a try with that and see if it helps.

CS:
 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == "RebindGrid") 
        { 
            RadGrid1.MasterTableView.Rebind(); 
        } 
 
    } 


Regards
Shinu.
0
vinod
Top achievements
Rank 1
answered on 13 Oct 2008, 05:51 AM
Hello shinu,
i am already added this event provided by you.
but problem is that when i clicked on this Refresh button .
RadGrid1_itemCommnad is not Fired(control never goes in this Event at time of insert & edit Control goes on this Event) in dynamic created Radgrid.
Please replay....




0
vinod
Top achievements
Rank 1
answered on 13 Oct 2008, 06:15 AM
Hello shinu,
i am already added this event provided by you.
but problem is that when i clicked on this Refresh button .
RadGrid1_itemCommnad is not Fired(control never goes in this Event at time of insert & edit Control goes on this Event) in dynamic created Radgrid.
already added onitemcommand="RadGridRow_ItemCommand"
Please replay...
0
Princy
Top achievements
Rank 2
answered on 13 Oct 2008, 06:31 AM
Hi Vinod,

Sending your entire code behind will be more good.

Princy
0
vinod
Top achievements
Rank 1
answered on 13 Oct 2008, 07:32 AM
hello Princy,

Now Works Fine.
the issue occurs due to  i am adding RadGridRow.Rebind() statement
in protected void RadGridRow_PreRender(object sender, EventArgs e)
event i just Removed this statement Paging &  Refresh Work fine...

Tags
Grid
Asked by
vinod
Top achievements
Rank 1
Answers by
vinod
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or