Hi,
I am having trouble getting cell specific data in response to a click event on an href that is defined in my row template.
Below is a rough idea of what I am doing.
<
RowTemplate
Context
=
"rowCtx"
>
<
td
>
<
a
href
=
"#"
id
=
"@(rowCtx.CellSpecificId1)"
@onclick="@(e => HandleClick(rowCtx.CellSpecificId)" @onclick:preventDefault>
</
td
>
<td>
<a href="#" id="@(rowCtx.CellSpecificId2)" @onclick="@(e => HandleClick(rowCtx.CellSpecificId)" @onclick:preventDefault>
</td>
<td>
<a href="#" id="@(rowCtx.CellSpecificId3)" @onclick="@(e => HandleClick(rowCtx.CellSpecificId)" @onclick:preventDefault>
</td>
</
RowTemplate
>
The problem seems to be that no matter what, the LAST rowCtx.CellSpecificId is passed to my event handler instead of the cell I want.
In the code above, if I click on teh first href, in the first <td>, I get the CellSpecificId3 instead of 1
Can someone share with me how to get a specific cell's value/id/whatever passed to the event handler? Seems like this should be easy, but it's not.
Basically, I want to pop a dialog that displays info for a clicked on cell. I am not married to the anchor tag. If there is a better way (i.e. one that works!), I'm all ears.
Thanks … Ed
Hi,
Why does the TelerikTextBox activate the <ValidationSummary /> while typing in the field?
Is there a way to disable this behaviour?
I either need a Toaster to notify users of changes or even errors that automatically go away after a set time out. Will there be something like this in Blazor controls? If not do you have a general MessageBox modal dialog?
Thanks.
My project is using the client/webassembly template and I get this error when I sort on the Grid. I am using CSLA business objects to bind to the grid by the way. It should just work since it derives from IEnumerable<T>. The TelerikBlazorApp project sample uses a plain List<WeaterForecast> so I wonder why it doesn't work with the CSLA BusinessList.
Thanks.
blazor.webassembly.js:1 WASM: Unhandled exception rendering component:
hello i have a couple of questions about blazor grid
1) i added a grid column called actions it contains some buttons to navigate but when i add Reorderable="true" to TelerikGrid im able to change position of this column which i dont want to so i added Reorderable="false" to my action column and it worked i cant change it's position anymore but i can drag my other columns and put it before my action column so it gets affected by the reorderable column and its position gets changed
but i dont want to
2) i also used Sortable="true" and FilterMode="@GridFilterMode.FilterMenu" in my TelerikGrid tag but it doesnt get filtered nor sorted i see the red arrow for sort but it doesnt sort and also ui for filter is completely ok but it doesnt filter either aldo the Data im passing to grid is List<SomeDto>