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

Needdatasource fire from javascript

4 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 05 Oct 2012, 09:50 AM


How could fire GridNeedDataSourceEventArgs though the Javascript

Thanks Advance,
Mohamed.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Oct 2012, 10:26 AM
Hi,

Please try the following Javascript.

ASPX:
<asp:Button ID="Button1" runat="server" OnClientClick="OnClientClick()"  />

Javascript:
<script type="text/javascript">
   function OnClientClick()
   {
         $find("<%= RadGrid1.ClientID %>").get_masterTableView().rebind();
   }
</script>

Thanks,
Shinu.
0
mohamed
Top achievements
Rank 1
answered on 08 Oct 2012, 01:44 PM
Thanks For your reply Shinu.

That i 
<div id="dv_MemberList" runat="server" style="width: 100%; display: none">
after that displap
divTabedbutons.style.display = 'block';
var vargrid = $find("<%= RadgridUser.ClientID %>");
var MasterTable = vargrid.get_masterTableView();
masterTable.rebind();
that come null
 
Thanks Advance ,
Mohamed.
0
mohamed
Top achievements
Rank 1
answered on 09 Oct 2012, 09:04 AM

How i call GridNeedDataSourceEventArgs  from server side

Thanks Advance,
Mohamed.
0
mohamed
Top achievements
Rank 1
answered on 09 Oct 2012, 09:14 AM
Problem Resolved
Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
mohamed
Top achievements
Rank 1
Share this question
or