Telerik Forums
UI for ASP.NET MVC Forum
1 answer
402 views
Hi,

I have a telerik asp.net mvc dropdown list. When user selects an item from the list, I would like to populate a textbox with the selected value. I am not sure how I can get this to work using telerik controls. Please help.

Thanks.
Kiril Nikolov
Telerik team
 answered on 06 Aug 2014
1 answer
126 views
I have a blocking issue on my serverside filtering and sorting of data.
My Kendo Grid sends requests to my C# backend.
This is what happens:

I fetch all Employee objects (I use Data Access)
An employee has a Person object, which contains person info like FirstName, LastName etc.
And it also has a GroupName
So my scheme is:

schema: {
    model: {
        id: "ID",
        fields: {
            FirstName: { type: "string", from: "Person.FirstName" },
            LastName: { type: "string", from: "Person.LastName" },
            GroupName: { type: "string" },
        }
    }
},

When I use a filter or sorting on the firstname or lastname, it wil try to filter the employee on attribute "Person.FirstName".
But the person is an addition to my DataAccess object, so it is not in the database.

When I use a filter or sorting on GroupName, it will also try to just filter on the groupname. But the groupname is filled in the backend and comes from EmployeeGroup.Name

So I am not able to filter serverside on any of these rows.
I would really love to know if there is any possibility to filter on custom attributes or childattributes.

Thanks in advance!

- Jason
Nikolay Rusev
Telerik team
 answered on 06 Aug 2014
2 answers
222 views
Hello,

If I am going to filter the record for the date type column in a Kendo Grid  and I entered 'abfghgh' then there should be a proper validation message display.
Can we implement the validation thing for the date type field in Kendo Grid filter search.


Thanks

Nikolay Rusev
Telerik team
 answered on 06 Aug 2014
3 answers
498 views
Dear Telerik Team!
I would really like to know how to make an ajax-bound combobox reload its items with a given filter value. In the attached example I've got a editortemplate for Country1

@(Html.Kendo().ComboBoxFor(m => m)
            .DataTextField("DisplayName")
            .DataValueField("Code")
            .AutoBind(true)
            .DataSource(ds => ds
                .Read(read => read.Action("CountryLoading", "Home"))
                .ServerFiltering(true)
            )
        )

When the Combobox gets focus, i want to reload it. I tried all this:

function CommidityFocus(e, upperE, elementName) {
    var combobox = $(elementName).find('span').children('input').data('kendoComboBox');
    Combobox.value("hurz"); // No Reload ?!
    combobox.search("hurz"); // No Reload ?!
    combobox.dataSource.read(); // No Reload ?!
}

but ... nothing happens. The CountryLoading function is not called...
How can I make it reload ?

brgds
Malcolm Howlett
Daniel
Telerik team
 answered on 05 Aug 2014
4 answers
707 views
In a Grid. How best would I hide the column menu for certain columns? I have a few column headers that align to the right. The arrow appears behind the text and makes it difficult to read the Column Title. I would simply like to hide the Column Menu for these columns.

I am not referring to hiding them from appearing in the Column Menu itself.

In the below screenshot, I want to see the column menu on Company but not on Sum of Qty or Sum of Order.

http://goo.gl/DFQC7
Nikolay Rusev
Telerik team
 answered on 05 Aug 2014
1 answer
100 views
Hello.

I want to insert one of Kendo Controls in the content editor.
For Example, DatePicker
I use the following code:

var editor = $("#editor").data("kendoEditor");
var elementHtml = "<input id='dtp' />";
editor.exec("inserthtml", { value: elementHtml });

Then executes the code for the DatePicker:

var dtp = $(editor.body).find("[id='dtp']");
dtp.kendoDatePicker({ animation: false });

But only displays the input field itself DatePicker is not loaded.

Tell me, what is wrong.

Thanks in advance.
Regards,
Alexey.

P.S. If I use the insert simple elements (like a button or a text box), everything is displayed correctly.
Alex Gyoshev
Telerik team
 answered on 05 Aug 2014
10 answers
411 views
I am using mvc telerik grid on my project and i have checbox inside this gridI just want to filter my checkbox like check or non checked in filter boxIs it possible?Is there any experience for this situation to help me?

     @( Html.Telerik().Grid<Orpac.Models.Time>()
                   .Name("timecmb")
                   .NoRecordsTemplate("No users to display")
                   .DataKeys(keys => keys.Add(k => k.Ident))
                   .DataBinding(d => d.Ajax().Select("GridTimeBinding", "Rule"))
                   .Columns(c =>{c.Bound(e => e.Ident).Width(90).ClientTemplate("<input type='checkbox' id='123' value='<#= Code #>'   <#=bit? checked='checked' : '' #> />").Title((string)ViewData["Select"]);c.Bound(e=>e.Code).Width(150).Title((string)ViewData["TimeCode"]);c.Bound(e=>e.Desc).Width(300).Title((string)ViewData["Description"]); })        
                   .ClientEvents(events => events.OnRowDataBound("onrowDataBoundtimepopup").OnDataBound("onDataBoundTimeRule"))
                  .Selectable()
                  .Footer(true)
                  .Sortable()
                  .Filterable(filtering => filtering.Enabled((bool)ViewData["filtering"]))
                  .Scrollable(scrolling => scrolling.Height(190))
                  .Pageable(p=>p.PageSize(10))
)
 
This is the example of my gridThnx
Dongfen
Top achievements
Rank 1
 answered on 04 Aug 2014
2 answers
87 views
Hello.

Now use the insert controls in the content editor.
I need to search for items on the "class" attribute using jquery function "find()".
As a container for search uses the <div> editor.
However, the function "find()" returns an empty set of elements, although the elements are within the editor.
Tell me how you can solve the problem?

Thank you.
Regards,
Alexey.
Alexey Shkuro
Top achievements
Rank 1
 answered on 04 Aug 2014
3 answers
150 views
I would like to avoid showing 0 in x axis as well as 0 in y axis while plotting a line graph.For example:My x axis shows number of days starting from zero(say 0-365).My Y axis showing average growth rate starting from zero(say 0-2.0).So here i would like to avoid showing 0 in x axis as well as 0 in y axis.Could you show how to do that?
Iliana Dyankova
Telerik team
 answered on 04 Aug 2014
1 answer
110 views
Hi, 

 Is there a method of the Grid (MVC or html) that would generate a url hash representing the current sorting & filtering selections?

Something like '#gridoptions=(sort:column1.desc,column3.desc+filter=state:CA)"

Likewise is there a method that can consume this string back again so that the next async load represents the selections in the hash string?

A demo with Angular or Sammy would be great too, if one exists.

It would be useful to have this in order to
* preserve sorting & filtering on page refreshes
* allow users to book mark a page with a specific sort & filter 
* persist this information in a store for retrieval later for metrics or user history features

Thanks!


Daniel
Telerik team
 answered on 04 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?