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

Kendo-Drop-down with kendo-grid

3 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kishore Kumar
Top achievements
Rank 1
Veteran
Kishore Kumar asked on 04 Jul 2020, 05:55 PM

Hi 

I want to make use of kendo-grid with filterable in Kendo-Drop-down . I tried but open,close,focus,blur using is making difficulty.

if I am trying to do filter in grid drop-down is closing,am not able to filter the rows of grid which is in drop-down template

please suggest a method of using grid with filterable and drop-down functionalities.

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 07 Jul 2020, 01:01 PM

Hi Kishore,

I am not sure that I understand correctly the issue that you are experiencing. What I am assuming is that a Kendo DropDownList needs to be used as a filter interface.

For more details on how to integrate the dropdown as a reusable gid filter, please check the following step by step article:

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/reusable-filter/

If am wrong, please provide some more details about the use case, screenshots code snippet or any other information that might help us to understand better the scenario. Thank you in advance.

We are looking forward to your reply.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Kishore Kumar
Top achievements
Rank 1
Veteran
answered on 09 Jul 2020, 12:01 PM

 <div class="example-wrapper">
      <kendo-dropdownlist
        [textField]="'text'"
        [valueField]="'value'"
        [value]="value"
        [popupSettings]="{
          width: 450
        }"
      >
        <ng-template kendoDropDownListHeaderTemplate>
          <kendo-grid
            [data]="listItems"
            [kendoGridSelectBy]="'value'"
            [selectedKeys]="gridSelection"
            [selectable]="true"
            [filterable]="true"
            (selectionChange)="onGridSelectionChange( $ event)"
          >
            <kendo-grid-column field="text" title="Text" width="40"></kendo-grid-column>
            <kendo-grid-column field="value" title="Value" width="40"></kendo-grid-column>
            <kendo-grid-column field="bart" title="Bart" width="40"></kendo-grid-column>
          </kendo-grid>
        </ng-template>
      </kendo-dropdownlist>
    </div>

 

 

Hi thank for ur support ,I attached the code snippet above . In that grid am not able to filter .

If I try to type in textbox the drop-down is closing.

0
Martin
Telerik team
answered on 13 Jul 2020, 06:55 AM

Hi Kishore,

Thank you for additional details provided on this case.

In general, when the DropDownList is closed, the close event is emited. The event can be prevented, and the DropDownList will remain open. For more details check this article:

https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/open-state/#toc-preventing-opening-and-closing

When the dropdown should be close, the developer can use the toggle method, in order to close the popup programmatically. Here is an example demonstrating the suggestions:

https://stackblitz.com/edit/angular-zmsedq?file=app/app.component.ts

I hope this helps.

Regards,
Martin
Progress Telerik

Tags
General Discussions
Asked by
Kishore Kumar
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Kishore Kumar
Top achievements
Rank 1
Veteran
Share this question
or