Telerik Forums
Kendo UI for jQuery Forum
4 answers
232 views
Hi;

I have a [Kendo] ListView in a [razor] view. I have a drop down as part of the ListView template. I can get the drop down loaded with an enumeration list and can bind to the onchange event. What is not happening is the combo box is not being initialized with the specified value in the bound data object [to each row of the list view].My ListView template is as such.<script type="text/x-kendo-template" id="GroupUserMappingTemplate">

<div>
@Html.DropDownList(
"AccessLevel",
new SelectList(Enum.GetValues(typeof(P3X_DataAccess.Models.AccessLevel))),
new {
onchange = "(AccessLevelChanged(this));"
}
)
</div>
</script>
The property the combo box is initialized to is called AccessLevel. It is the name of the property that is in the object that is bound to the List View rows, and I assume is valid for use as the bound property. The binding does not occur (but no errors occur either).

Peter
Peter
Top achievements
Rank 1
 answered on 08 Aug 2013
2 answers
304 views
I have a grid that I have hooked up to a PHP webservice. The dataSource.transport.read option is set to the following:

function(operation)
{
    if($('#grid').data('bindData') !== false)
    {
        var params = operation.data;
        params['id'] = $('#grid').data('webServiceId');
        $.ajax({
            url: 'webservice.php',
            contentType: 'application/json',
            type: 'POST',
            data: kendo.stringify(params),
            success: function(response) { operation.success(response); }
        });
    }
}


The bindData is just a boolean condition I'm setting so that it won't make requests to the webservice at certain points.

This works for normal functionality. The issue here is that I'm dynamically setting the pageSize option based on how much available vertical space is in the content area of the grid. So when I initialize it, I don't want to make a webservice request right away, so I set the option to false, calculate the space, set the pageSize, then want to make the call to run the transport function, but not sure how to do this properly. I can call it manually using $('#grid').data('kendoGrid').dataSource.transport.read(); but that doesn't send the parameters to it so the 'operation' parameter is undefined and the webservice doesn't get any of the paging, sorting or filtering options. And calling dataSource.read() or refresh() doesn't seem to work either.

How can I accomplish this? Is there a way to pass the transport function the necessary parameters or is there a better way to handle it?

Let me know if there's anything else you need.
Stacy
Top achievements
Rank 2
 answered on 08 Aug 2013
2 answers
913 views
Hi ,

I am trying to log the events in kendo grid, but I am getting the "kendoConsole undefined" error message. I found in a forum thread that says, I need "kendo.console.js" to support this feature in the kendo grid. I tried to find this file in my commerial kendo but could not see it.

Please tell me how to access "kendo.console.js" file.

Thank you,

Poonam
Christian
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
5.7K+ views
I looked thru the ThemeBuilder but I can't edit the font and line height there.

Using the MVC Helper, can I specify the Line Height and Font Size of the text in the grid (header, body and footer) ?

I'm looking to get all the text and line height of the grid to be 75% of what there is there now natively.

Ian
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
3 answers
93 views
I have data that looks like this: [99.44], [99.52], [99.61], [8.52], [99.54], [99.61], [99.53], [99.64], [99.64].

As you can see, the 8.52 is the outlier. The difference between the 8.52 and the rest of the data is so huge that the differences between the data is not noticeable.

Is there a way for me to display an outlier in another color or below the horizontal axis?

Thanks.
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
1 answer
120 views
Can someone please help me with this. I've asked a few times and I just can't believe I'm the only one who has encountered this. I have never created a form where the same fields I'm editing are the same fields I'm inserting. It appears the kendo grid uses the same template to display the edit and the insert fields. Example: I may way to insert a status but not be able to update it. Again, i never came across an application I have developed where the same fields are used for both an insert and an update..

I used a template but again it keeps firing the same template for the edit and update. Frustrating, please help.

@(Html.Kendo().Grid(Model)
        .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.CodeID);
        columns.Bound(p => p.CodeDescription);
        columns.Bound(p => p.Title);
        columns.Bound(p => p.Status).Filterable(false);
        columns.Command(command => command.Edit()).Width(200);
        
    })
    .ToolBar(toolBar => toolBar.Create().Text("Add New Code"))
    
    .Sortable()
    .Scrollable()
    .Pageable()
    .Filterable()
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
    .Resizable(resize => resize.Columns(true))
    .DataSource(dataSource => dataSource
        .Ajax()
        .Events(events => events.Error("error_handler"))
        .ServerOperation(false)
        
        .Model(model => model.Id(p => p.CodeID))
          .Update(update => update.Action("Edit", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
          .Create(create => create.Action("Create", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
                                )
          .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("_CodeEditor"))
        )

thanks
dennis
Chrys
Top achievements
Rank 1
 answered on 08 Aug 2013
3 answers
84 views
This is what I use and it's just so much code in my config code...I prefer no animations so it's everywhere.  Is there a shorter way to achieve the same thing?

animation: {
                close: {
                    effects: "none",
                    duration: 0
                },
                open: {
                    effects: "none",
                    duration: 0
                }
            },
Kiril Nikolov
Telerik team
 answered on 08 Aug 2013
7 answers
141 views
Hey,

We have added localization of the editor tooltips etc in a localization file (kendo.nb-NO.js, but it doesn't seem to work for backColor and imageAltText. Everything else works, but not these two. Is this a known problem? Below is some of the translations for the editor:

kendo.ui.Editor.prototype.options.messages =
  $.extend(kendo.ui.Editor.prototype.options.messages, {

  /* These work */
      bold: "Fet",
      italic: "Kursiv",
      underline: "Understreket",
      strikethrough: "Gjennomstreket",
      superscript: "Fremhevet",

      /* These two doesn't work */
      imageAltText: "Alternativ tekst",
      backColor: "Bakgrunnsfarge"
      
  });


Regards, 
Jan Erik
Dimo
Telerik team
 answered on 08 Aug 2013
1 answer
135 views
I'm just starting out with the Kendo UI Complete for MVC and ran across the Kendo Labs "kendo-ui-forms" project which got me thinking.  Since I'm using the MVC extensions, wouldn't the extensions do this for me already and detect the browser and output the appropriate form element type, be it an HTML5 element or a PolyFill?

So, the question is: does the MVC Extensions do this or are there plans for the MVC extensions to do this?
Sebastian
Telerik team
 answered on 08 Aug 2013
1 answer
156 views
Hi,

   can any one post pay pal sample code plz. is it possible to write paypal code in icenium? is it secure? we can get total code by the .apk file by converting the apk file into zip file. if paypal code written in this is it secure one or not? in native application .js files wont get by just converting apk file into zip. but in hybrid total code and designing we can get how to make it secure?
Steve
Telerik team
 answered on 08 Aug 2013
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?