Telerik Forums
Kendo UI for jQuery Forum
3 answers
160 views
Is it possible to configure the behavior of sorting when setting a grid to sortable? Specifically I want to sort the data in the column without respect to case so that, for example, "angle" appears before "Apple" instead of after "Zebra"?
Himani
Top achievements
Rank 1
 answered on 15 Oct 2013
5 answers
85 views
Did I miss something that is not in the release notes for the 2013.2.716.340 release of Kendo UI?  All I did was install that version over the previous in my mvc project and now the series lines aren't showing up.  The plot lines still draw though.  Was there something we are supposed to do with that upgrade?  I know the data is coming across and I know the set of dependencies hasn't changed.  My code did not change.  I know my installation of Kendo UI is working because the scheduler and all the other controls are working fine.

I know this is a stab in the dark asking on this forum but I can't find anything on the boards and all my traces are returning nothing.
Entilzha
Top achievements
Rank 2
 answered on 14 Oct 2013
9 answers
537 views
Situation:

I have 1 kendo iframe window open.  I want to open a new kendo window from a trigger element within this window.  

Issue:
The 2nd window is bigger than the first, so I want to open it so that it displays "over top" of the 1st window.

So far unsuccessful attempts:
I have used window.top to dynamically create the div window element on the root window body but this still opens the window inside the 1st window.

How would I go about doing this?

Deepak Subhedar
Top achievements
Rank 1
 answered on 14 Oct 2013
2 answers
131 views
After quickly reviewing the demos and documentation, I assumed that the Week View allowed the day upon which the week starts to be configured (since there are multiple demos with different week start dates.  After doing some testing however I am having some issues making this happen.

I understand from reading some forums that the the way the week view is rendered is a bit more complex that the other views and that the start and end dates are somehow generated from separate logic.  It looks like you can change the start date by using a culture setting, however that only gives the Monday or Sunday selection allowance.

Is there any way to show a rolling week view, or 7-day view, that would always start with today?  It isn't often useful to show dates in the past for users to pick from when scheduling something.  Would it be possible to extend the culture setting to allow for all 7 selections of day of week?

Rosen posted - http://jsbin.com/URESExi/1/edit as an example.... does this multi-day view lose any of the functionality provided by the default WeekView?
andrew
Top achievements
Rank 1
 answered on 14 Oct 2013
2 answers
747 views
I have a KendoUI Grid with columns as below.

 columns: [
                           { field: "username", title: "Email Id",  width: 120 },
                           { field: "firstName", title: "First Name", width: 110 },
                           { field: "lastName", title: "Last Name", width: 110 },
                           { field: "phone", title: "Phone Number", width: 90 },
                           { command: "edit",  title: " ", width: 90 },
                           { command: {text: getButtonText(), click: deleteUser }, title: " ", width: 90 }
]

function getButtonText(e){
            alert(e);
            var data = this.dataItem($(e.currentTarget).closest("tr"));
return "test";
 
}

function deleteUser(e){
}

The last command , the label/text of the button depends on the data. It could be different for every row. e.g. Delete , Lock, Unlock etc...

For that I have written a function getButtonText(e) above to decide the button text. 

When I run this, the variable e in the function is undefined.

Please help me if you know the solution.

Thanks,


                                     
Misahael
Top achievements
Rank 1
 answered on 14 Oct 2013
1 answer
37 views
hi guys..i am new to kendo ui mobile framework...for designing mobile apps.
there are many custom data atrributes used in html tags for kendo ui..
plz help me to find the documentation for it...i am finding difficult to analyse...
plz  help me...
Thanku
Steve
Telerik team
 answered on 14 Oct 2013
1 answer
168 views
We are exploring using Kendo Mobile to deliver a mobile application with the iPad as our initial target. I've put together a simple application and it seems to be "clunky" and slow when rendered in Safari on the iPad.

Attached is the simple application.
My complaints/questions are as follows:
* It takes the better part of one second to respond to a click of a 'person' element and to add the form for that person to the 'selected' list. What makes this operation take so long?
* When selecting a location from the dropdown for a user, why does the selection of a location take so long. Again it seems to take almost a second to respond.
* I am unable to do the following for the checkboxes for the people items and I don't understand why: 
<input type="checkbox" data-bind="checked: selected, events: { click: selectPerson }"/>
When configured this way, I get the data-binding but the selectPerson event on the view-model is not triggered. I believe lack of value binding combined with my implementation of the selectPerson method leads to an issue with the list of selected people getting out of sync with the checkboxes after you change a person's location.

Fundamentally I am curious if there is some inefficiency in this test app, or if it is demonstrative of the performance and feel we can expect using kendo mobile.

specs:
jquery v.1.10.2 (have tried bundled version of jQuery as well)
kendo v. 2013.2.918
iOS 7.0.2

Thanks!
Alexander Valchev
Telerik team
 answered on 14 Oct 2013
5 answers
789 views
Hi!

We are trying to monitor the dirty state of a datasource (used by a grid in batch edit mode) to show and hide controls on the page live. Is this possible? We couldnt find any events that fire before the user clicks "save", and trying to bind to the dataSource has not worked for us.

Is it possible and could you propose a solution?

Thanks!
/Victor
Kiril Nikolov
Telerik team
 answered on 14 Oct 2013
3 answers
132 views
Hello,

I am trying the following append call but I am not seeing the style attributes added.   The append works and I see the image and text but not the styling. 

Any help is appreciated.

Thanks,
Carrie
panelBar.append(
           [
               {
                   text: "Title",
                   encoded: false,                                
                   content: "Some Text",
                   imageUrl: "myimage.jpg",
                   imageHtmlAttributes: { style: "margin-top:8px;margin-right:8px;" }
               }
           ]
       );
Iliana Dyankova
Telerik team
 answered on 14 Oct 2013
1 answer
218 views
Hi,

I am creating a property grid control in MVC and so I need to pass a collection of model attributes to the grid. because each model property has different type and so different editor, e.g. the int property may use a dropdown for edit or simple text. here is the basic structure.

public enum PropertyGridEditorTemplate
    {
        Default,
        DateTime,
        DropDown,
        ....
    }
   public class PropertyMetaDataValue
    {
        public object CurrentValue { get; set; }
        public object DefaultValue { get; set; }
        public PropertyGridEditorTemplate Editor { get; set; }
    }

    public class PropertyMetaData
    {
        public string GroupName { get; set; }
        public string PropertyName { get; set; }
        [ReadOnly(true)]
        public string DisplayName { get; set; }
        
        public PropertyMetaDataValue Value { get; set; }
}

In the view, I have a grid like this:

@(Html.Kendo().Grid(Model.MetaDatas)
        .Name("propertyPanel")
        .Columns(columns =>
            {
                ...
                columns.Bound(p => p.DisplayName);
                columns.Bound(p => p.Value.CurrentValue).EditorTemplateName("PropertyGridEditor");
            })
        
        .DataSource(dataSource => dataSource
            .Ajax()
            .Batch(true)
            .Model(model => model.Id(p => p.PropertyName))
            .Read(read => read.Action("Fee_Read", "Home", new { feeSheetId = Model.FeeSheetID, feeTypeId = Model.FeeID }))
            .Group(g => g.Add( grp => grp.GroupName))
        )
        .Editable(editable => editable.Mode(GridEditMode.InCell))
        .Navigatable()
        .TableHtmlAttributes(new { @class = "property-grid"})
        )

Now the issue is,  in custom editor I want to check the "Editor" value and based on that show different control. but there is no way to pass the "Editor" to the custom editor. I tried ViewData which didn't work. also tried Template column but the issue is I can't set custom editor for template. 

Any thoughts?
Alexander Popov
Telerik team
 answered on 14 Oct 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?