Hello,
I have already a startTime and endTime on my scheduler and I wa
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.UserId).Hidden(true).Width(100);
columns.Bound(p => p.Username).Width(200);
columns.Bound(p => p.Password).Width(250);
columns.Command(command => { command.Edit(); });
})
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("AddEditUser"))
.Pageable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(u => u.UserId))
.Read("Users", "Home")
.Update("UserListUpdate", "Home")
)
)
<
script
id
=
"AddEditUser"
type
=
"text/kendo-tmpl"
>
<
div
class
=
"k-edit-label"
>UserId: </
div
>
<
div
class
=
"k-edit-field"
>
<
input
name
=
"UserId"
disabled
class
=
"k-textbox"
/>
</
div
>
<
div
class
=
"k-edit-label"
>UserName: </
div
>
<
div
class
=
"k-edit-field"
>
<
input
name
=
"Username"
required
class
=
"k-textbox"
/>
</
div
>
<
div
class
=
"k-edit-label"
>Password: </
div
>
<
div
class
=
"k-edit-field"
>
<
input
name
=
"Password"
required
class
=
"k-textbox"
/>
</
div
>
</
script
>
If I add the MVC Wrapper for a Dialog in a page, and initially set Visible(false), how do I set the actual content of the dialog via Javascript?
Background, I have a SignalR hub that is set to receive admin messages from the server, and I want the message sent by the server to be displayed in the dialog. SO I put the basic dialog MVC wrapper in my page, with no content initially and when the SignalR hub receives a a message, I want it to display in that dialog then.
Hi,
I can set Title HtmlAttribute for Edit and Destroy command button in Grid like:
command.Edit().HtmlAttributes(new { title = "Edit Row" });
command.Destroy().HtmlAttributes(new { title = "Delete Row" });
But I cannot find the way to set Title for buttons "Update" and "Cancel" which appears during editing.
Kind regards
Genadij
HI
How could I show the destroyed data in another Grid ?
I have met an error :
grid2.setDataSource(grid.dataSource._destroyed);
Uncaught TypeError: e.fetch is not a function at init.setDataSource (kendo.all.min.js:48)
Best regards
Chris
Hi,
I have some questions about the Table Wizard:
- When I create a table, either using the normal way or
through Table Wizard, I don’t have a way to edit that created table.
- When creating a table with the wizard, and setting
table width and height, when typing inside of that table the cell widths
start changing.
- When adding columns to an existing table, either left
or right, it adds it in a very small width and unproportioned to the rest
of the columns of the table.
- When creating a table with the wizard, configuring Cell
properties without checking “Select All Cells”, does not allow to specify
which cell to be configured, top left by default only.
- When creating a table with the wizard, set cellspacing:
10px, no effect on created Table.
Thanks!
Hi, I need to facilitate two pieces of drag and drop functionality usingTelerik UI for MVC.
I have a ListView (of users), and a Panelbar (of teams, and the users in each team are the children for a given Panelbar team item).
I want to drag/drop users from the ListView to the team header (or its child users panel) & this will trigger a call to the server that will make the change to the db. The users when "dragged" remain in the ListView of all users, they are simply added to a team.
Additionally, each user under a team in the PanelBar need to be able to be dragged to a third element in the view (an icon of a recycle bin - this will remove them from a team).
How can I enable drag and drop on the two Kendo controls to make this happen?
Thanks
Matt
I have the following test Grid and Grouping, Reordering, and Resizing all fail to work.
I see a "stop sign" whenever I try to drag and drop a column header to group or reorder. Trying to Resize, I see the handles but it doesn't actually resize.
@(Html.Kendo().Grid<
MyWorkRowModel
>()
.Name("myworkgrid")
.Columns(columns =>
{
columns.Bound(c => c.ReqID);
columns.Bound(c => c.Title);
})
.Scrollable()
.Groupable()
.Sortable()
.Filterable()
.ColumnMenu()
.Resizable(rsb => rsb.Columns(true))
.Reorderable(r => r.Columns(true))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("LoadWorkGrid", "Dashboard").Data("WorkGridUser")))
For Reference "WorkGridUser" is:
function
WorkGridUser() {
return
{
uid:
"@(ViewBag.UserID)"
}
}
And the problem is the same even when leaving that off.
What am I doing wrong?
These are the references I am using (along with jquery 1.10.2, bootstrap, and toastr):
<
link
href
=
"http://kendo.cdn.telerik.com/2017.1.223/styles/kendo.common.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"http://kendo.cdn.telerik.com/2017.1.223/styles/kendo.bootstrap.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"http://kendo.cdn.telerik.com/2017.1.223/styles/kendo.bootstrap.mobile.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"https://kendo.cdn.telerik.com/2017.1.223/js/kendo.all.min.js"
></
script
>
<
script
src
=
"https://kendo.cdn.telerik.com/2017.1.223/js/kendo.aspnetmvc.min.js"
></
script
>
Thank you.
Has anyone ever seen similar behavior and know of a fix? This grid is built dynamically so I do not know the number of columns until after the user chooses which view to render.