DataGridView CustomColumn Exception

0
0

Hi,

i would like to create a multiline column (each cell will has dynamic number of rows depending on its data). When i move fast between rows in parent grid, the second grid does not render correctly, i found exception javascript in console. Could you please help me out?

Thanks for your help,

Page

  • You must to post comments
0
0
  • You must to post comments
0
0

Hi,

the javascript render is very fast and helpful. Now i can display dynamic number of lines per cell depending on data. But i got another problem, how to set height of row to fit its data when some rows have 5 lines in cell and others have only 1 or 2 lines. I don’t use VirtualMode and grid is readonly.

Thank you very much,

Page

  • You must to post comments
0
0

The error is probably #2336 https://wisej.com/issues/ fixed in the latest dev build.

Few more suggestions:

  • Don’t use the DataRepeaterItem as an independent control, it’s the class for the DataRepeater.ItemTemplate. The sample you can simply use the UserControl or a Panel.
  • Putting controls in cells is fine but it can become heavy when there are many rows. For complex fast rendering of many cells you can use a custom cell javascript renderer. I have attached a sample that can render any object assigned to a cell.Value.
  • When moving up/down quickly with the keyboard and updating another grid immediately it causes overlapping reloads that can trip each other. You can now set the new experimental SelectionDelay property: this.dataGrid1.SelectionDelay = 500 will update the selection when the user stops sitting on the up/down key.

HTH

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.