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

[Solved] Possible Bug in Demo

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shane Grant
Top achievements
Rank 1
Shane Grant asked on 01 Jan 2010, 08:51 PM
Take a look at the demo at: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/slider/defaultcs.asp
On page two it only shows one item.

Another possible bug on the same page:
Choose the Advanced pager and the dropdown to select the pager mode is not all the way visible. Page 2 seems to work in this mode however.

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 06 Jan 2010, 02:07 PM
Hello Shane Grant,

You are correct that the RadGrid from the specified demo does not behave as expected when PagerStyle.Mode = GridPagerMode.Slider and the user slides to page 2. This is due to a wrong select query that is used in this mode. The query should be corrected as follows:

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        if (rcbPagerMode.SelectedValue == "Slider")
        {
            RadGrid1.DataSource = GetDataTable("SELECT [OrderID], [ProductID], [Quantity], [Discount] FROM [LargeOrderDetails] WHERE ID BETWEEN " + ((RadGrid1.CurrentPageIndex * RadGrid1.PageSize)+1) + " AND " + ((RadGrid1.CurrentPageIndex + 1) * RadGrid1.PageSize));
        }
        else
        {
            ....
        }
    }

I have also attached a sample project that is based on the online demo and reflects the modification above. The live online example itself will be updated with our next available upload.

As a token of gratitude for submitting this error to us, you can find your Telerik points account updated.

Unfortunately I was not able to reproduce the RadComboBox rendering problem that you have described. Could you please verify whether you get the error under the attached project and send us a snapshot in such case?

I hope this helps.
Martin,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shane Grant
Top achievements
Rank 1
answered on 08 Jan 2010, 06:32 AM
Thank you Martin.

The RadComboBox seems to be rendering correctly now. Maybe it was an issue on my end.
Tags
Grid
Asked by
Shane Grant
Top achievements
Rank 1
Answers by
Martin
Telerik team
Shane Grant
Top achievements
Rank 1
Share this question
or