Problem with filter on ForeignKey column

5 posts, 1 answers
  1. Odd Veibust
    Odd Veibust avatar
    28 posts
    Member since:
    Feb 2007

    Posted 19 Mar 2015 Link to this post

    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>
  2. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 23 Mar 2015 Link to this post

    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.

     
  3. Odd Veibust
    Odd Veibust avatar
    28 posts
    Member since:
    Feb 2007

    Posted 23 Mar 2015 Link to this post

    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.
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 25 Mar 2015 Link to this post

    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.

     
  5. Wolfgang
    Wolfgang avatar
    3 posts
    Member since:
    May 2008

    Posted 27 Mar 2015 in reply to Boyan Dimitrov Link to this post

    Great stuff Boyan - thanks!  This resolved the issue for me
Back to Top