Hello,
In certain circumstances (for example the event is in the past or the user doesn't have write permission), I would like to able to double click on an event and display a read only version of that event in a popup.
Much like how the edit works but with the items displayed and without inputs. Ideally I would also like to be able to do this using some kind of display template.
I can't see anything in the samples or documentation on how to do this - if it is there , apologies, I missed it.
Thanks
Cheryl
hi everyone. i use kendo grid in my asp.net core project v 2.1. i have 3 table person and wife and child. i want use kendo with hierarchy tables. primary table is person and second table is wife or child. for filter the kendo grid i use kendo Filter component (not kendo grid filter). i add first filter component for primary table (person table) and it works fine. i want add secondary filter component for wife table. how i should do this? plz help me thanks.
picture 1:
http://s13.picofile.com/file/8397544592/Screenshot_87_.png
picture 2:
http://s12.picofile.com/file/8397544768/Screenshot_89_.png
<
kendo-datasource
type
=
"DataSourceTagHelperType.Ajax"
name
=
"dataSource1"
server-operation
=
"true"
>
<
transport
>
<
read
url
=
"@Url.Action("
GetAllPerson", "Reports")" />
</
transport
>
<
schema
>
<
model
id
=
"PersonId"
></
model
>
</
schema
>
</
kendo-datasource
>
@(Html.Kendo().Filter<
DomainClasses.Person.Person
>()
.Name("filter")
.Operators()
.ApplyButton(true)
.Messages()
.DataSource("dataSource1")
.Fields(f =>
{
f.Add(p => p.PersonTypes).Label("Person Type");
f.Add(p=> p.PersonName).Label("Name");
f.Add(p => p.PersonFamily).Label("Family");
f.Add(p => p.PersonAliasName).Label("Alias Name);
f.Add(p => p.PersonFatherName).Label("Father Name");
f.Add(p => p.PersonBirthCertificate).Label("National Code");
f.Add(p => p.PersonCategory).Label("Category");
f.Add(p => p.PersonCounty).Label("City").DefaultValue(1).EditorTemplateHandler("getList");
})
)
@(Html.Kendo().Grid<
DomainClasses.Person.Person
>()
.Name("Grid")
.Columns(columns =>
{
columns.Select().Width(50);
columns.Bound(p => p.PersonId).Hidden();
columns.Bound(p => p.PersonTypes).Width(100);
columns.Bound(p => p.PersonName).Width(200);
columns.Bound(p => p.PersonFamily).Width(200);
columns.Bound(p => p.PersonAliasName).Width(150);
columns.Bound(p => p.PersonFatherName).Width(150);
columns.Bound(p => p.BirthDatePersian).Width(120);
columns.Bound(p => p.PersonProvince).Width(100);
columns.Bound(p => p.PersonCounty).Width(120);
columns.Bound(p => p.PersonVillage).Width(150);
columns.Bound(p => p.PersonStreet).Width(200);
columns.Bound(p => p.PersonEducation).Width(120);
columns.Bound(p => p.PersonBirthCertificate).Width(130);
})
.Pageable()
.Sortable()
.Scrollable()
.Groupable()
.Events(e=>e.Change("onChange"))
.DataSource("dataSource1")
.PersistSelection()
.ClientDetailTemplateId("spouseTemplate")
.Events(e => e.DataBound("dataBound"))
)
@(Html.Kendo().Grid<
DomainClasses.Spouse.Spouse
>()
.Name("grid_#=PersonId#")
.Columns(columns =>
{
columns.Bound(o => o.SpouseName).Width(200);
columns.Bound(o => o.SpouseFamily).Width(200);
columns.Bound(o => o.SpouseFatherName).Width(200);
columns.Bound(o => o.SpouseIsAlive).Width(150);
columns.Bound(o => o.SpouseHousingSituation).Width(150);
columns.Bound(o => o.SpouseAddress).Width(200);
columns.Bound(o => o.SpousePhone).Width(150);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("GetSposes", "Reports", new { personId = "#=PersonId#" }))
)
.Pageable()
.Sortable()
.Filterable()
.HtmlAttributes(new {style="width:1300px;" })
.ToClientTemplate()
)
Hi,
I have a sub-grid which includes a column with aggregate values (sum).
columns.Bound(c => c.TotalAmount).Format("{0:C2}").HtmlAttributes(new { style = "text-align: right;" })
.ClientGroupHeaderColumnTemplate("Sub-Total: \\#=kendo.format('{0:C2}', sum)\\#")
.ClientFooterTemplate("Total: \\#=kendo.format('{0:C2}', sum)\\#");
Cf. screen shot (attached) to see how this displays.
How can I apply the column right-alignment to the column group header and footer as well?
Thx,
Erik
How can I set the checked/unchecked messages for my entire application or at least for the page?
Currently, I use something like:
<
kendo-switch
for
=
"BoundProperty"
checked
=
"Model.BoundProperty"
><
messages
checked
=
"@Html.T("
Common.YES")"
unchecked
=
"@Html.T("
Common.NO")" /></
kendo-switch
>
It would be great if I didn't have to include the <messages /> tag each time.
Hi,
Floating labels are great,
thanks!
I'm trying to implement this
new widget for passwords like this:
<kendo-textbox for="Password" type="password" >
<textbox-label content="Mot de passe" floating="true" />
</kendo-textbox>
Here’s my Password
property:
[Required(ErrorMessage = "Ce champ est obligatoire")]
[DataType(DataType.Password)]
public string Password { get; set; }
How can I accomplish this?
Thanks again
What's the best way to pass a filter to an API in order to filter data from a database?
To elaborate: my team is creating a web portal in order to monitor OS deployments. We want the user to be able to filter data which is stored on a Sql database. We plan on using a Kendo Chart to visualize the data and filter the data using a Kendo Filter. We have also created an API to perform our http operations. I know that the filter results are passed to the controller in the form of a DataSourceRequest object. This gets to my question, what is the best way to pass the settings a user picks on the front-end to the API/database? Can I parse the DataSourceRequest object?
Let me know if anything needs clarifying.
I would like to contribute some localization resources. Some translations I'm interested in are missing, other need fixing.
On this page:
https://docs.telerik.com/aspnet-core/globalization/localization#contribution
I've found a link to GitHub repository where I'm supposed to make pull requests with my contributions:
https://github.com/telerik/kendo-ui-core/tree/master/src/messages
But this link leads to "Kendo UI Core" repository, not "UI for ASP.NET Core". And it contains .js files, not .resx files.
My question is:
If I contribute to this repository, will my changes be also automatically ported to UI for ASP.NET Core? Or am I supposed to make my contributions in another way?
I don't know if this is working as expected but when using the tag helper version of the grid it does not seem to read the model's display name for the title. Using the MVC HTML helper I do not have to explicitly specify the title as it reads it from the model. Is this a bug in the tag helper or just working as intended?
On that note, I know the tag helper does not seem to support all the functionality of the html helper version. Is there a document somewhere that compares the working functionality between the two grids? I would love to always use the tag helper version but I just don't because I get half way through programming the grid and find out the tag helper does not support the same functionality.
Thanks
Rick