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

Calling ClientSide Evnt from Server side

0 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Appu
Top achievements
Rank 1
Appu asked on 07 Jul 2009, 12:54 PM
Hi
 suppose if i would like to cal client side event of PageCombo_SelectedIndexChanged from server side, how it is possible.

Suppose i have added pagecombobox items like 20,30,40,50,60,70,100. The paging should not working mere adding the items into combobox. I think i hav to call the below event from serverside.But i can findcontrol only by code only in the event of ItemCreated of Grid.
 <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

        <script type="text/javascript">
        var tableView = null;
        function pageLoad(sender, args)
        {
            tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
        }
        
        function PageCombo_SelectedIndexChanged(sender, args)
        {
            alert("aa");
            tableView.set_pageSize(sender.get_value());
        }
        
        function changePage(argument)
        {
            tableView.page(argument);
        }
So whether paging will work after calling this methods, if so how can i call this method by code.

Regards,
Appu

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Appu
Top achievements
Rank 1
Share this question
or