I'm trying to dynamically set the marker color based on a value from a datasource. I can't find any examples of this and can't find an event that fires that would allow me to do this dynamically. Can you point me in the right direction, please. Below is the simple map control that I'm using:
@(Html.Kendo().Map()
.Name("map")
.Center(new double[] { Model.Latitude, Model.Longitude })
.Zoom(17)
.Layers(layers =>
{
layers.Add()
.Type(MapLayerType.Tile)
.UrlTemplate("https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png")
.Subdomains("a", "b", "c");
layers.Add()
.Type(MapLayerType.Marker)
.DataSource(dataSource => dataSource
.Read(read => read.Action("SelectBillingLocationsCoordinates", "Details", new { Id = @Model.Id }))
)
.LocationField("LatLng")
.TitleField("Name");
})
)
Hi,
I want to display a filter with multi check in footer of the kendo grid MVC.
normally we have this option in kend0 grid mvc header.
Hi,
i want to Display a few texts in kendo grid MVC toolbar along with toobar.save() funtion.
Hi ,
i want multi checkbox filter for my kendo mvc column chart .
i tried to search. but could not able to find any related article.
I am creating a grid on the fly in javascript which has a locked column. In the header, the locked column is almost 800px right of where it should be, while the row is aligned properly. I can apply a -800px margin-left to fix it, but I really shouldn't have to. Can anyone provide any insight as to why this is happening?
@(Html.Kendo().DatePicker().Name(
"txt_"
+ Model.QuestionID.ToString()).Value(Model.AnswerModel.AnswerText).Format(
"dd-MM-yyyy"
).DateInput()
.Popup(p =>
{
p.Origin(
"bottom right"
);
p.Position(
"top right"
);
})
.Deferred().HtmlAttributes(
new
{
style =
"width:100%"
,
@id =
"txt_"
+ Model.QuestionID.ToString(),
pattern = pattern
}))
I have a kendo grid in an asp .net MVC application.
I Set a ClientDetailTemplateId in the grid that contains a one TabStrip HtmlHelper extension.
The Grid is showing up with the correct data.
but not when i want to display chekcbox column instead true/false.
I have a boolean columns in my two grids that i want to display as a checkbox instead true/false.
using
columns.Bound(p => p.isActif).Title("Actif").Width(60)..ClientTemplate("<input type='checkbox' disabled='disabled' #= isActif ? checked='checked': '' # />"); // this is work in my principle grid but i'm trying to do the same in my grid view detailtemplate ..it generates errors !!
any help is greatly appreciated
I have a gridview with many checkbox rows that i want to update these rows by calling a controller action after clicking a button.
I retrieve correctly the data.
I am using telerik UI in asp.net MVC
<div class="form-group">
<div class="form-row">
@(Html.Kendo().Grid<mySolution.Models.AutorisationsModel>()
.Name("gridPerm")
.Columns(columns =>
{
columns.Bound(o => o.Autorisation_ID).Title("id").Hidden();
columns.Bound(o => o.Module).Title("Module");
columns.Bound(o => o.Autorisation_READ).Title("Visible").Width(100).ClientTemplate("<input type='checkbox' #= PERM_READ ? checked='checked': '' # class='chkbx' />").HtmlAttributes(new { style = "text-align: center" });
columns.Bound(o => o.Autorisation_CREATE).Title("Créer").Width(100).ClientTemplate("<input type='checkbox' #= PERM_CREATE ? checked='checked': '' # class='chkbx' />").HtmlAttributes(new { style = "text-align: center" });
columns.Bound(o => o.Autorisation_DELETE).Title("Supprimer").Width(100).ClientTemplate("<input type='checkbox' #= PERM_DELETE ? checked='checked': '' # class='chkbx' />").HtmlAttributes(new { style = "text-align: center" });
columns.Bound(o => o.Autorisation_MODIFY).Title("Modifier").Width(100).ClientTemplate("<input type='checkbox' #= PERM_MODIFY ? checked='checked': '' # class='chkbx' />").HtmlAttributes(new { style = "text-align: center" });
columns.Bound(o => o.Autorisation_LIST).Title("Lister").Width(100).ClientTemplate("<input type='checkbox' #= PERM_LIST ? checked='checked': '' # class='chkbx' />").HtmlAttributes(new { style = "text-align: center" });
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(m => m.Autorisation_ID);
model.Field(m => m.Module).Editable(false);
model.Field(m => m.Autorisation_READ).Editable(true);
model.Field(m => m.Autorisation_CREATE).Editable(true);
model.Field(m => m.Autorisation_DELETE).Editable(true);
model.Field(m => m.Autorisation_MODIFY).Editable(true);
model.Field(m => m.Autorisation_LIST).Editable(true);
})
.Read(read => read.Action("Autorisations_Read", "Autorisations", new { Id = Model.Auto_ID }))
)
.Sortable()
.Scrollable()
.Height(400)
)
</div>
</div>
<div class="form-group">
<div class="form-row">
<div class="col-md-12" style="text-align: right;">
<input type="submit" id="confirmEdit" value="Enregister" class="mr-1 mb-1 btn btn-primary" />
@Html.ActionLink("Retour", "Autorisations_List", "Autorisations", null, new { @class = "mr-1 mb-1 btn btn-secondary" })
</div>
</div>
</div>