Telerik Forums
KendoReact Forum
1 answer
1.7K+ views

Hi,

I am using the KendoReact grid with checkbox selection as outlined here: https://www.telerik.com/kendo-react-ui/components/grid/selection/#toc-customizing-the-selection

I was hoping for some help on the best way to selectively hide the checkbox for certain rows based on row data while still using default Grid selection behaviours i.e. Grid selectedField, onSelectionChange and onHeaderSelectionChange.

I know that I can use a custom cell template to selectively hide or show the checkbox, but if I do this is there any way to still use the Grid onSelectionChange handler for the checkboxes that are shown? Or do I have to use the Grid onItemChange event to change the selected field instead?

Kind regards,

David

Konstantin Dikov
Telerik team
 answered on 26 Aug 2022
1 answer
72 views
I need a function that can drag the selected item and arrange the order, can the component support it?
Filip
Telerik team
 answered on 26 Aug 2022
2 answers
176 views
I'm using DropDownList virtualization (no filtering) and while it works well, I was hoping that there was a configuration that would allow me to control the specificity of the skip requested. Right now, it requests in increments of 1. I would like for it to be more generic such as requesting in increments of 10. E.g., right now if you have a 1,000 items with a page size of 20, the skip value can be anywhere from 1-999. I am considering overriding what is sent to my service as part of onPageChange. However, in order to do this I have a few questions. Let's assume you have a list of 1,000 and the page size of 100. If a user drags the scroller to 50%, what is requested? skip of 500? or split the difference and request 450? This will help me decide how to round out the skip # requested.
Mo
Top achievements
Rank 1
Iron
 answered on 25 Aug 2022
1 answer
75 views

as you can see the first item (and the last one), does not start from the most right/left, how can I get rid of that space?

 

 


 

Vessy
Telerik team
 answered on 25 Aug 2022
1 answer
70 views

Hi.

If I use your example for re-ordering grid rows by drag&drop, there are a lot of console warnings showing up:

https://stackblitz.com/run/?file=app%2Fdraggable-row.tsx

I think the issue results from the file drag-handle-cell.tsx where there is a td tag just adding the ...props as attributes which doesn't seem to result in valid HTML.

I'm not sure if this has an impact on the re-ordering because if I simply delete the ...props from the td, it still seems to work. Can you please check and let me know if it's ok to remove the ...props from the td?

Thanks,

Greetings,

Bernd

Konstantin Dikov
Telerik team
 answered on 25 Aug 2022
1 answer
84 views

Is it possible for the drawer component to use Inertia JS instead of react router?

Filip
Telerik team
 answered on 23 Aug 2022
1 answer
63 views

Is there a way to format/create cells that has a sub grid structure (see attached)?

 

Filip
Telerik team
 answered on 23 Aug 2022
1 answer
243 views

Hi.

I am trying to only show the detail (+) button in a grid row if a field has a specific value but I can't make it work. Here is an example:

https://stackblitz.com/edit/react-skjcz7?file=app%2Fmain.tsx

As you can see, the + button in the first row does not get replaced by my new button and also if I click on my button it results in an error.

I found a quite old example from a similar thread here but it was build with a class based component. I tried to do this with my function based approach but obviously I'm missing something.

Thanks for your help!

Greetings,

Bernd

Konstantin Dikov
Telerik team
 answered on 23 Aug 2022
1 answer
1.0K+ views

I see that KendoReact offers a lot of the CSS utility classes like e.g. Tailwind CSS does. I would like to use those for things like flexbox and CSS grid, but also for generic padding and margins and such, in the same way I would with Tailwind.

Is there any documentation for these utility classes somewhere on the site? I cannot seem to find any.

Also, in my IDE (Webstorm) the autocomplete offers classes prefixed with 'k-' but also '!k-' and 'k-i-'. What is the difference between these?

Lastly, would it be possible to use Tailwind instead of KendoReact's utility classes alltogether?

How would I go about removing the classes from KendoReact if I wanted to? (without having to delete all of them by hand from the ...-all.css files)

Or perhaps better yet... is there a general 'kendo-react' way to use flexbox or css grid classes?

Filip
Telerik team
 answered on 22 Aug 2022
2 answers
75 views

Does exists any operator, which is able to filter all data values, where "X includes 1" ?

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    { name: "Jane Doe", birthday: new Date(1983, 1, 1), x: [1, 2]},
    { name: "John Doe", birthday: new Date(1980, 1, 1), x: [2, 3]}
  ],
  filter: { field: "x", operator: "eq", value: 1 }
});
dataSource.fetch(function(){
  var view = dataSource.view();
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view.length); // displays "1"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(view[0]); // displays "Jane Doe"
});
</script>

Thanks a lot for an each help :-)

Filip
Telerik team
 answered on 18 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?