@svetoslav_borislavov
@svetoslav_borislavov
Forum Replies Created
-
AuthorPosts
-
svetoslav_borislavovParticipant
Hi,
This is happening because you have passed selectedIndexes.
In the OnChange you should change the selected indexes to match the current index.Here is the fixed version:
<DropDownList @ref=”EWDeviceList” SelectedIndexes=”@selectedIndexes” OnChange=”ChangeDevice” DataSource=”@dataSource”/>@code
{
DropDownList EWDeviceList = default!;string[] dataSource = new string[] { “One”, “Two” };
int[] selectedIndexes = new int[] { 1 };
private async void ChangeDevice(Event chEv)
{
DropDownListChangeEventDetail detail = chEv[“Detail”];selectedIndexes = new int[] { detail.Index };
string devNm = EWDeviceList.SelectedValues[0].ToString();
}
}I hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Thank you for sharing your experience, if you have any questions, do not hesitate to contact us!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
If you want to get only the cell value, you can use the getCellValue method. It accepts rowId, dataField.
If you want to get the whole cell object, visit this demo to see how:
https://codepen.io/dkeamcaksoem/pen/QWzJqXNI hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may try creating a custom class for the list returned from JS.
Using the class for this purpose may not work as expectedBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Thank you for the update, if you have any questions, do not hesitate to contact us!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Grid’s conditional formatting property is dynamic,
please see the following example:
https://codepen.io/dkeamcaksoem/pen/JjwZdrQYou may add and remove formating and get the current with the button
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Many thanks for reporting the problem, I have opened a work item for it!
Meanwhile, if you have any questions, do not hesitate to contact us!Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
To workaround the problem change the message object, to a function that returns a new object.
export const messages = () => ({
ko: {},
en: {}
})This way, new object will be returned everytime and you will not use the same object reference for every grid
I hope this helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
This will be available after the fix of the problem.
We are very sorry for the inability to use this functionality now.
Meanwhile, if you have any questions, do not hesitate to contact us!Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Thank you for the update, if you have any additional questions, do not hesitate to contact us!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You should have dateStart and dateEnd in the task object, the label can be skipped and the default label will be ‘Unassigned’
Here is an example with similar task to yours:
https://codepen.io/dkeamcaksoem/pen/jOXaXxeBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may implement the desired functionality this way:
https://codepen.io/dkeamcaksoem/pen/yLGPGpGI hope it helps!
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
May you share your component?
The following function correctly freezes and unfreezes the column:
private void handleClick()
{
gridColumns[0].Freeze = gridColumns[0].Freeze == “near” ? “false” : “near”;
}Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
You may change the focused style using CSS.
Here is an example of the style change:
https://codepen.io/dkeamcaksoem/pen/MWZExXXBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/svetoslav_borislavovParticipantHi,
Could you try setting the columns via the Columns property, not with the HTML?
Please, see this example to see how:
https://www.htmlelements.com/blazor/blazor-ui/demos/blazor-grid?id=dynamic-columnsBest Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts