I am following the example form here:
https://demos.telerik.com/aspnet-mvc/grid/editing-popup
which the "Product Name" field is required, however there is nothing in the code the signals that
any directions are appreciated
tks
I have a kendo grid with a lot of columns and want to resize the grid width to it's container (a bootstrap column). By default, the grid tries to fit into the container
but with too many columns, it exceeds the container's width.
I tried to use .Scrollable() and now the grid fits to the container width. The unwanted side effect is that I get a vertical scrollbar. Can I achieve the goal without
.Scrollable()?
Hello,
I'm trying to implement a grid with row virtualization and groups, based on this example : https://demos.telerik.com/aspnet-mvc/grid/server-grouppaging-virtualization . But I see an odd behavior. When I group rows on two columns, then expand the first level group, in my case, there is no filter sent to the server, only group.
Here is the request sent by the grid in my case :
sort:
page: 1
pageSize: 50
group: RAISONSOCIALE-asc~LIBELLERIB-asc
filter:
take: 50
skip: 0
groupPaging: true
And here is the one in the example I use :
sort:
page: 1
pageSize: 50
group: CompanyName-asc
filter: City~eq~'Shady Point'
skip: 0
take: 50
groupPaging: true
Here is the grid :
Html.Kendo().Grid<SomeObject>()
.Name(
"ForecastListGrid"
)
.Groupable()
.Columns(columns =>
{
columns.Select().Width(50).HtmlAttributes(
new
{ @
class
=
"checkbox-align"
}).HeaderHtmlAttributes(
new
{ @
class
=
"checkbox-align"
});
columns.Bound(p => p.RAISONSOCIALE);
columns.Bound(p => p.CODE_FLUX);
columns.Bound(p => p.DATE_O).Width(100).Encoded(
false
).ClientTemplate(
"#=kendo.toString(kendo.parseDate(DATE_O,'dd/MM/yyyy'), '"
+
"dd/MM/yyyy"
+
"')#"
);
columns.Bound(p => p.DATE_V).Width(100).Encoded(
false
).ClientTemplate(
"#=kendo.toString(kendo.parseDate(DATE_V,'dd/MM/yyyy'), '"
+
"dd/MM/yyyy"
+
"')#"
); ;
columns.Bound(p => p.NOMBRE);
columns.Bound(p => p.LIBELLE);
columns.Bound(p => p.REFERENCE);
})
.Scrollable(scrollable => scrollable.Virtual(
true
))
.Height(500)
.DataSource(dataSource => dataSource
.Ajax()
.Events(events =>
events.Error(
"error_handler"
)
)
.Model(model =>
{
model.Id(p => p.ID);
})
.GroupPaging(
true
)
.PageSize(50)
.Read(
"LoadGrid"
,
"Test"
)
)
Is there something I'm missing ?
Thanks !
I have a simple page with an editor, I have the "createTable" tool added but not the "tableWizard" even so the Table Wizard button still shows up.
Is there a way besides css to remove/hide this button.
$("#editor").kendoEditor({
tools: [
{
name: "fontSize",
items: [
{ text: "1 (8pt)", value: "8pt", },
{ text: "2 (10pt)", value: "10pt", },
{ text: "3 (12pt)", value: "12pt", }
]
},
"bold",
"italic",
"underline",
"strikethrough",
"superscript",
"justifyLeft",
"justifyCenter",
"justifyRight",
"justifyFull",
"insertUnorderedList",
"insertOrderedList",
"indent",
"outdent",
"createLink",
"unlink",
"insertImage",
"createTable",
"addRowAbove",
"addRowBelow",
"addColumnLeft",
"addColumnRight",
"deleteRow",
"deleteColumn",
"viewHtml"
]
});
sort=&page=1&pageSize=30&group=&filter=Fields%5B3%5D.Value~contains~'hello'~or~Fields%5B3%5D.Value~contains~'statement'&Query=test
I have problem when using version 2020.1.114.
When I build the project locally, everything is still running normally, but when deployed to the IIS server and try to access the admin account, the error:
"f is not a constructor"
On local version of .NET Framework: 4.7.2, and on Server: 4.8
How do I handle this error?
Hi,
Please can anyone show me how I can set the value of a Select() column in the MVC grid?
I have a class which contains a boolean field that I would like to use to tick / untick the checkbox that the Select() column renders, but I can find no information on how to do it!
Any help greatly appreciated - please let me know if you require more info.
Thanks..Ed
I've recently started using ToDataSourceResultAsync extension methods, but noticed it is not allowed to pass cancellation token.
Cancellation token is widely supported in entity framework. And it has big benefits for long running queries to allow cancel them.
ToDataSourceResultAsync methods should support passing cancellation token as a parameter.
Hi Team,
i am using kendo treeview for one of my requirement. It was working fine with kendo.mvc dll version 2015, but when we upgraded kendo.mvc version to 2018.3.911.545 ,it is not working properly and items inside tree view getting disabled.
Please let me know how to resolve this issue. Thanks
@helper RenderGroupTreeView()
{
@(Html.Kendo().Window().Name("windowGroupTree").Title("Sector").Draggable().
Actions(actions => actions
.Minimize()
.Maximize()
.Close()
).Visible(false)
.Resizable()
.Scrollable(true)
.Height(300)
.Content(@<text>
@(Html.Kendo().TreeView()
.Name("GroupTree")
.BindToTaxonomyData("Group")
.Events(events => events.Select("onGroupSelection").DataBound("onGroupSelection"))
)
<br />
<span id="SGlabel" style="font-style:italic;" class="k-label-bottom">Selected: </span>
<span id="SelectedGroup" style="font-weight:bold;font-style:italic;" class="k-label-bottom">@Html.DisplayFor(x => x.Group.Description)</span><br /><br />
<span id="btnGroup" style="align-items:center" class="k-button">OK</span>
</text>)
)