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

Radgrid pagination dropdown remain disable on first load

1 Answer 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 1
Manish asked on 25 Feb 2016, 01:51 PM

I have one radgrid in user control.

I am loading that user control using RadMultiPage in my .aspx page.

If I load that user control in default pageview then Pagination dropdown of radgrid working fine but if I load that same user control in other pageview of RadMultiPage using Ajax Request of RadAjaxManager then pagination dropdown not working. It is not performing any action like hover, focused, click etc. 

Other pagination controls are working fine. After refreshing grid or after any post back dropdown working fine.

 

Code of My .aspx file

 

<radA:RadAjaxManager ID="radAjaxManager"
        runat="server"
        AjaxUrl="OrderMain.aspx"
        OnAjaxRequest="radAjaxManager_AjaxRequest" ClientEvents-OnRequestStart="reqStart()" ClientEvents-OnResponseEnd="resEnd()">
         
    </radA:RadAjaxManager>
 
 
 
<div id="divReportsTreeViewContainer" class="reportsTreeViewContainer">
 
        <radT:RadTreeView ID="radTreeViewReports"
            runat="server"
            Skin="Arrows/3DClassic"
            ImagesBaseDir="Images/"
            ExpandDelay="1"
            OnNodeExpand="radTreeViewReports_NodeExpand"
            ShowLineImages="false"
            AutoPostBack="False">
        </radT:RadTreeView>
 
    </div>
 
 
<radTS:RadMultiPage ID="radMultiPageOrders"
        runat="server"
        RenderSelectedPageOnly="true"
        SelectedIndex="0">
        <radTS:PageView ID="defaultPage" runat="server">
            <MyOwnControl:MyControl runat="server" id="mycontrol1" />
        </radTS:PageView>
        <radTS:PageView ID="FirstPage" runat="server">
            <MyOwnControl:MyControl runat="server" id="mycontrol1" />
        </radTS:PageView>
         
    </radTS:RadMultiPage>

 

Code of .aspx.cs

 

protected void radAjaxManager_AjaxRequest(object sender, Telerik.WebControls.AjaxRequestEventArgs e)
        {
              
           switch (e.Argument)
                {
                    case 1:
                        {
                            radMultiPageOrders.SelectedIndex = 0;
                            break;
                        }
                    case 2:
                        {
                            radMultiPageOrders.SelectedIndex = 1;
                            break;
                        }
                     
                    default:
                        {
                            radMultiPageOrders.SelectedIndex = 0;
                            break;
                        }
                }
        }

 

My RadGrid declaration

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" ShowFooter="true" Skin="Telerik"
        AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true" SelectedItemStyle-BackColor="Green"
        OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand1"
        OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand" OnItemDataBound="RadGrid1_ItemDataBound1"
        OnItemCommand="RadGrid1_ItemCommand" PageSize="5" CellSpacing="0"></telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Mar 2016, 08:20 AM
Hi,

The described behavior is unexpected. Could you check the browser console an confirm that any error is not thrown? In case there is an error try to disable Ajax by setting EnableAjax="false" and you should be able to see on which line the error is thrown. Additionally, you could try setting RenderSelectedPageOnly property of RadMultiPage to true and see if it makes any difference. In case the issue still exists isolate it in a runnable project and send it to us so we can debug it locally.

Regards,
Pavlina
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
General Discussions
Asked by
Manish
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or