Telerik Forums
UI for ASP.NET MVC Forum
6 answers
88 views
Hi,

All the comboboxes i use come open when i run the page. When i click anywhere or scroll the page, it closes. I only have this problem in Internet Explorer. No problems with chrome or firefox browsers
eda
Top achievements
Rank 1
 answered on 20 Nov 2020
2 answers
264 views

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");
    })
    )

 

Eyup
Telerik team
 answered on 20 Nov 2020
1 answer
107 views

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.

Anton Mironov
Telerik team
 answered on 20 Nov 2020
1 answer
1.0K+ views

Hi,

i want to Display a few texts in kendo grid MVC toolbar along with toobar.save() funtion.

Eyup
Telerik team
 answered on 20 Nov 2020
1 answer
114 views

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.

Tsvetomir
Telerik team
 answered on 20 Nov 2020
1 answer
124 views

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?

 

 

Nikolay
Telerik team
 answered on 19 Nov 2020
11 answers
2.2K+ views
How to configure the ASP.Net C# Razor project with UI for ASP.Net MVC in order to suppress and prevent the apparent automatic copying of all the different language resource extensions into the bin directory of the project???

If all I want to use is the default culture/language "en-US", why is it necessary for all the other culture/languages to be copied into the bin directory?

So how to turn off that automatic copying in Kendo.Mvc?
Nikola
Telerik team
 answered on 19 Nov 2020
1 answer
98 views
We have our days in dd-MM-yyyy format and it's mostly working fine, we have a few fringe cases though where it could have the user add the wrong date in by accident and not notice when they type them.

For example 31-04 reverts the date to 01-04, is it possible to still have the formatting in place but allow the check to be done by a regex pattern? or can we distinguish which way the autocorrect goes, for example above we would want it to autochange to 30-04?



@(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
    }))
Nikolay
Telerik team
 answered on 18 Nov 2020
4 answers
1.8K+ views

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 

Petar
Telerik team
 answered on 18 Nov 2020
1 answer
483 views

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

  • myView.cshtml

    <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>

 

 

 

Petar
Telerik team
 answered on 18 Nov 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?