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

Problem with filter on ForeignKey column

4 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Odd Veibust
Top achievements
Rank 1
Odd Veibust asked on 19 Mar 2015, 11:40 AM
Hi.

I'm having a problem with the filter on a ForeignKey column.

The first time I select a status in the dropdown in the filter menu and click the "Filter" button,  nothing happens, but if I change the status and click filter again, it filters as it is supposed to.

Also if I select one status without clicking the "Filter" button, then selects a new status and then clicks the "Filter" button, it filters works.

Got any tip that can help me with this? I have updated to the lates build.

The code:

<div class="col-lg-12">
    @(Html.Kendo().Grid<Order>()
          .Name("orderGrid")
          .Columns(columns =>
          {
              columns.Bound(order => order.OrderNo).Title("Order no.");
              columns.ForeignKey(order => order.Status.Description, Model.StatusList, "Description", "Description").Title("Status");
          }
          )
          .Filterable(filter => filter.Enabled(true).Mode(GridFilterMode.Menu))
          .AutoBind(true)
          .DataSource(dataSource => dataSource
              .Ajax()
              .Read(read => read.Action("GetOrders", "OrderSurface"))
              )
          )
</div>

4 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 23 Mar 2015, 11:42 AM
Hello,

The issue is caused due to the fact that the drop down list does not fire change event when the initial value is empty string. It is already fixed and you can find more information about the issue here

I would suggest downloading our next internal build, where the problem will be resolved. 

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Odd Veibust
Top achievements
Rank 1
answered on 23 Mar 2015, 01:32 PM
Ok, thanks.

Do you have an eta on the next internal build? Need to give some response back to our customer on when it will be fixed.
0
Boyan Dimitrov
Telerik team
answered on 25 Mar 2015, 08:58 AM
Hello,

We will upload our internal build by end of this week. 

Thank you for understanding. 

Regards,
Boyan Dimitrov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Wolfgang
Top achievements
Rank 1
answered on 27 Mar 2015, 09:13 PM
Great stuff Boyan - thanks!  This resolved the issue for me
Tags
Grid
Asked by
Odd Veibust
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Odd Veibust
Top achievements
Rank 1
Wolfgang
Top achievements
Rank 1
Share this question
or