Telerik Forums
UI for ASP.NET Core Forum
4 answers
1.1K+ views

I have a few groups of columns in my inline grid using columns.Group. I know I can hide these column groups entirely, but I have a dropdown in each row of the grid, and based on what is selected in that dropdown, I am firing a javascript event and examining the selected value. Based on this selected value, I would like to disable or hide these groups of columns in that particular row only! How can I go about doing this?

<p>//this is where I am firing the event:<br>columns.Bound(p => p.sb).Width(200).ClientTemplate("#= sbchange(sb) #");</p><p></p><p>//this is the js function:</p><p>//can i get the row num passed in as a parameter as well?<br>function sbchange(sb) {</p><p>//i would like to disable  columns/fields.of the row where the sb was changed. It's better if i can somehow access the whole column group for that row,</p><p>//so i don't have to go field by field and disable them.</p><p>}</p>
Preslav
Telerik team
 answered on 15 Aug 2018
5 answers
507 views

I cannot figure out how to change the buttons on the grids where "Export to Excel" or "Export PDF" is enabled.  What style can I set (override) that will control the .css for the buttons?

Vessy
Telerik team
 answered on 15 Aug 2018
10 answers
460 views

I see the post below this one with respect to the client group header and it works but must be added to each column.

1) How can I just add text to the grouping header changing it from the default text to "Grouped by Columns : " when the user drags a column there.  And then return it to default text when the user has clicked the icon to remove the grouping on that column?

2) How can I set the minimum width for the column indicator in the grouping header.  Right now it is truncating the text of the column name if it is too wide.

Thanks

Eyup
Telerik team
 answered on 14 Aug 2018
3 answers
245 views

Are there any plans to implement scaffolding in aspnetcore mvc?

 

thanks!

Pavlina
Telerik team
 answered on 13 Aug 2018
1 answer
202 views

I have a simple tag helper for my editor. I am using the 'For' attribute because I am binding to a viewmodel. When the property for this viewmodel is loaded, by default, it loads in as null because its a new object. In other words, my ViewModelObject has a property called 'Content' and that is a string that is null when created. So, when I use this code below in my Razor view, it returns back an error that object is not initialized. But if I set that property to an empty string ("") then it will load fine.

So the question is, is this expected behavior or should it still load regardless? My opinion, it shouldn't matter if it is null or not. It should still give a blank editor.

Thanks

<kendo-editor for="Content">
    <resizable enabled="true" />
    <content>
 
    </content>
    <tools>
        <tool name="formatting" />
        <tool name="bold" />
        <tool name="italic" />
        <tool name="underline" />
        <tool name="justifyLeft" />
        <tool name="justifyCenter" />
        <tool name="justifyRight" />
        <tool name="insertUnorderedList" />
        <tool name="insertOrderedList" />
        <tool name="indent" />
        <tool name="createLink" />
        <tool name="tableEditing" />
    </tools>
</kendo-editor>
Veselin Tsvetanov
Telerik team
 answered on 13 Aug 2018
1 answer
585 views
Hello, can someone (admin) provide me a thorough working example on how to have a Multi-select have its values fetched using ajax when a dropdown is changed in a row in a grid when doing inline editing? I'm using Asp.Net MVC. I've looked at some samples, but seems that CascadeFrom() function is not supported in a multi-select.  Please provide working sample for both inline grid and popup.
Viktor Tachev
Telerik team
 answered on 08 Aug 2018
2 answers
491 views

I have to upload the files and I have some restriction that can be evaluated on the server. For instance the total size of all the files uploaded have a maximum size.

The demo states this: "// Return an empty string to signify success". From this I took that if I return a string that is not empty it will not be success. But when I tested instead of getting the error event the upload widget shows success.

Please provide an example on how to signify errors and if possible to return for instance an object as error.

What I have returned is something like this Json(new { errors: [{ ErrorMessage: "1"}, {ErrorMessage: "2"}] })

Dimitar
Telerik team
 answered on 08 Aug 2018
1 answer
178 views

Hello,

 

Does "UI for ASP.NET Core" components supports "ASP.Net Core 2.1 and Razor Pages"?

 

Regards

 

Eyup
Telerik team
 answered on 07 Aug 2018
2 answers
57 views

I have a grid with a custom command column for delete. I have also configured the Destroy method using additional parameters which is supported

.Destroy("DeleteAction", "MyController", new { extraId = Model.Id })

I should mention that the Create function is not defined since I am not going to use it.

When I press the button I was getting nothing. After attaching to the error event I got an exception with Not Found. After further investigation I saw that instead of calling Destroy method it was calling Create. I define also the Create and confirmed that the telerik grid on delete button was calling create method.

Since Destroy does not support the parameter routeValues why is it available?

Dan
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 06 Aug 2018
2 answers
157 views

I want to add a record in kendo grid .net core (with inline edit mode) after selected row in same group . but when I click on button "Add Record" as shown in image attached,  its creating a new collapse expand group and adding a new row there.

As in Image1, I want to add record after selected row with ID 2 , but its creating a new collapse expand group and adding a row there as shown in Image2.

 

Please provide solution how can I add a row after selection in same group.

 

 

Isha
Top achievements
Rank 1
 answered on 06 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?