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

[Solved] Filter no refresh

1 Answer 269 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SDI
Top achievements
Rank 1
SDI asked on 22 Feb 2013, 02:44 AM
This is probably really simple, but for some reason the grid is not pulling back any data when the filter is run. i have 2 grids on the page and you click grid1 it runs the datasource for grid2. this is all done with a postback in grid2. the new data is there and i want to filter it by say a "first name". so i click in the filter and type "Jim" - the grid is blank - no message nothing. but...
 
<telerik:GridBoundColumn DataField="FirstName" DataType="System.String" HeaderText="Name" UniqueName="FirstName" Reorderable="true" AutoPostBackOnFilter="false" CurrentFilterFunction="Contains" FilterDelay="1000" ShowFilterIcon="false">
<ItemStyle Width="100px" />
</telerik:GridBoundColumn>

...i click on the grid1 row that was selected and it does a postback and shows the filtered data using "Jim". why is it not filtering out when i am done entering the filter as the GridBoundColumn is coded. I have to select the Grid1 for the data to refresh the Grid2 data with the filter working. 

Grid2 below:
<telerik:RadGrid runat="server" ID="RadGridMembers" Height="825px" Width="600px" AutoGenerateColumns="false" AllowMultiRowSelection="false" AllowFilteringByColumn="true">
<GroupingSettings CaseSensitive="false" ></GroupingSettings>
<MasterTableView DataKeyNames="MemberId, FirstName" ClientDataKeyNames="MemberId">

There has to be something simple here that needs to make it postback and grab the data with the filter in place instead of clicking on the Grid1 to make it NeedDataSource

Thoughts, ideas, answers?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 26 Feb 2013, 03:47 PM
Hello Brian,

I suppose that you are using RadAjaxManager for ajaxifying the controls. And probably the first grid is set to update the second. If this is the case please set the second grid to update itself. Also you can try removing the RadAjaxManager from the page and place the two grids inside a RadAjaxPanel which will automatically configure the AJAX settings for you. If this does not help please show us your markup so we could advise you further.

Regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
SDI
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or