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

I’m facing problem with Rad grid pagination count

2 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shaik
Top achievements
Rank 1
shaik asked on 03 Dec 2008, 02:24 PM

Hi Telerik Team,

 

I’m facing problem with Rad grid pagination count

In my application for search screen I’m using Rad grid to display the records based on filter result set.

On dropdown(ddlSampleType) change grid(rGrdSampleList) will rebind with respective selected result set..

Scenario:

 Suppose grid pagination is 30,when I was change the dropdown value grid will rebind with new result set 13 records,but pagination count showing 30.

 

Can one help me out solve this problem..

AJAX setting as follows:

 <telerik:AjaxSetting AjaxControlID="ddlSampleType">

                                            <UpdatedControls>

                                                <telerik:AjaxUpdatedControl ControlID="ddlSampleType" />

                                                <telerik:AjaxUpdatedControl ControlID="lblDept" />

                                                <telerik:AjaxUpdatedControl ControlID="ddlDept" />

                                                <telerik:AjaxUpdatedControl ControlID="hdnPanelID" />

                                                <telerik:AjaxUpdatedControl ControlID="txtPanelNames" />

                                                <telerik:AjaxUpdatedControl ControlID="btnPanelPickList" />

                                                <telerik:AjaxUpdatedControl ControlID="hdnChemicalID" />

                                                <telerik:AjaxUpdatedControl ControlID="txtChemicalNames" />

                                                <telerik:AjaxUpdatedControl ControlID="btnChemicalPickList" />

                                               <telerik:AjaxUpdatedControl ControlID="rGrdSampleList" LoadingPanelID="LoadingPanel1" />

                                            </UpdatedControls>

                                        </telerik:AjaxSetting>

 

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Dec 2008, 09:47 AM
Hi,

There is a similar problem with  .Net3.5 web applications/web sites . If so you can check if disabling Linq expressions resolves the problem on your end. You need to set Grid's EnableLinqExpressions property to false.

For more information,
http://www.telerik.com/community/forums/aspnet-ajax/grid/rebind-not-updating-pager.aspx

Thanks,
Princy
0
shaik
Top achievements
Rank 1
answered on 16 Dec 2008, 12:10 PM

Unfortunately setting “EnableLinqExpressions = false“ grid is not binding when I change the drop down value..

 

As soon as I changed the page from 1 to 2 grid was rebinding data is showing. Till now it was working fine, but  when I changed the drop down value again

grid was not rebind. But when I click on the change page its showing me the data.

·         This is what I am doing:

·         When I click paging this is how I’m binding the data:

 OnNeedDataSource coding

{

 

Dim dset As New DataSet

            dset = BO_SlInfo.ShowSampleListInfo(nIHLogNumber, dtPicker1, dtPicker2, nLocationID, nLevelId, strPanel,  strChemical)

·                     'Bind the Sampling Plan List DataSet to RadGrid

·                     rGrdSampleList.DataSource = dset

}

 

On Drop down change I’m trying to bind the data as below:

 ddlSampleType_SelectedIndexChanged

 

{

Dim dsSampleList As DataSet

  dsSampleList = BO_SlInfo.ShowBlankSampleListInfo(nIHLogNumber, dtPicker1, "", nLocationID, nLevelId, strPanel, strChemical)

            'Bind the Sampling Plan List DataSet to RadGrid

            rGrdSampleList.DataSource = dsSampleList

            rGrdSampleList.DataBind()

}

 

Please let me know what can be done…




Tags
Grid
Asked by
shaik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
shaik
Top achievements
Rank 1
Share this question
or