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

Client scroll in multipage doesn't work

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 20 Jan 2008, 03:07 AM
Hello,

Maybe its a bug, but i can't solve the following problem.

I have a window, with a Multipage, and in the multipage a RadSplitter, with two Radpanes.
In the upper Radpane i have a Radgrid.
Something like this:
<rad:RadMultiPage ID="rmpPostvak" runat="server" CssClass="mpwindow" SelectedIndex="0">  
                                        <rad:PageView ID="PageView1" runat="server">  
                                            <telerik:RadSplitter ID="RadSplitter2" runat="server" Orientation="Horizontal" VisibleDuringInit="true" 
                                                Width="100%" Height="360px">  
                                                <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" BackColor="White">  
                                                    <telerik:RadGrid ID="rgBerichtenIn" runat="server" Style="width: 100%; cursor: pointer;" 
                                                        Skin="Office2007" AutoGenerateColumns="False" GridLines="None" Height="100%">  
                                                        <ClientSettings Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true" ApplyStylesOnClient="true">  
                                                            <Selecting AllowRowSelect="true" /> 
                                                            <ClientEvents OnRowSelected="RowSelectedIn" /> 
                                                        </ClientSettings> 
                                                        <MasterTableView TableLayout="Fixed" NoMasterRecordsText="Geen berichten aanwezig" 
                                                            ClientDataKeyNames="VolgNummer">  
                                                            <Columns> 
                                                                <telerik:GridTemplateColumn HeaderText="" UniqueName="Bericht">  
                                                                    <HeaderStyle Width="40px" /> 
                                                                    <ItemStyle HorizontalAlign="Center" /> 
                                                                    <ItemTemplate> 
                                                                        <asp:Label ID="lblBerichtID" runat="server" Text='<%# Bind("VolgNummer") %>' Style="display: none;"></asp:Label> 
                                                                        <asp:Image ID="Image7a" runat="server" ImageUrl='<%# "images/Overige/ber_soort" & Eval("Soort") & ".gif" %>'>  
                                                                        </asp:Image> 
                                                                    </ItemTemplate> 
                                                                </telerik:GridTemplateColumn> 
                                                                <telerik:GridTemplateColumn HeaderText="Datum" UniqueName="Datum">  
                                                                    <HeaderStyle Width="90px" /> 
                                                                    <ItemTemplate> 
                                                                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("AanmaakDatum", "{0:d}") %>'></asp:Label> 
                                                                    </ItemTemplate> 
                                                                </telerik:GridTemplateColumn> 
                                                                <telerik:GridTemplateColumn HeaderText="Naam" SortExpression="Naam" UniqueName="Naam">  
                                                                    <HeaderStyle Width="150px" /> 
                                                                    <ItemTemplate> 
                                                                        <asp:Label ID="Label8a" runat="server" Text='<%# Bind("AfzenderNaam") %>'></asp:Label> 
                                                                    </ItemTemplate> 
                                                                </telerik:GridTemplateColumn> 
                                                                <telerik:GridTemplateColumn HeaderText="Onderwerp" SortExpression="Onderwerp" UniqueName="Onderwerp">  
                                                                    <ItemTemplate> 
                                                                        <asp:Label ID="Label8b" runat="server" Text='<%# Bind("KopTekst") %>'></asp:Label> 
                                                                    </ItemTemplate> 
                                                                </telerik:GridTemplateColumn> 
                                                            </Columns> 
                                                        </MasterTableView> 
                                                    </telerik:RadGrid> 
                                                </telerik:RadPane> 
                                                <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None" Height="160px" BackColor="WhiteSmoke">  
                                          ..........  
                                                </telerik:RadPane> 
                                            </telerik:RadSplitter> 
                                        </rad:PageView> 

If i set the Radgrid clientsetting 'Scrolling-AllowScroll="true"', the Radgrid is throwing a error, when i change from multipage. (by a tabstrip)
The error that is thrown is in the following code section of the scriptresource.axd:
Telerik.Web.UI.GridScrolling.callBaseMethod(this,"dispose");  
},_initializeDimensions:function(){  
var _1=this;  
this.applyFrozenScroll();  
this.onWindowResize();  
this.initializeAutoLayout();  
this._owner.get_element().RadResize=function(){  
_1.onWindowResize();  
};  
if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){  
this._onResizeDelegate=Function.createDelegate(this,this.onWindowResize);  
setTimeout(function(){  
$addHandler(window,"resize",_1._onResizeDelegate);  
},0);  
}else{  
this._onResizeDelegate=Function.createDelegate(this,this.onWindowResize);  
$addHandler(window,"resize",this._onResizeDelegate);  
}  
this._owner.get_element().RadShow=function(){  
_1.OnWindowResize();  <----- here the error is thrown -------

For a workaround i use now the scrolling in the RadPane, but it will look better if i can use the client scroll of the RadGrid (and the static headers), inside the multipage.
I hope you have a solutions for this.

Thanks
Marco



2 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 21 Jan 2008, 07:45 AM
Hi Marco,

We have to admit the error appeared in scenarios like you describe, but it has been already addressed. Please, download the latest Q3 2007 Service Pack released last week and let us know if you need further assistance.

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Marco
Top achievements
Rank 1
answered on 21 Jan 2008, 08:40 AM
Hello Konstantin,

I just updated to the Q3 SP, and the problem is solved.
(works and look great, like i wanted)

Thank you

Best regards
Marco
Tags
Grid
Asked by
Marco
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Marco
Top achievements
Rank 1
Share this question
or