Telerik Forums
UI for ASP.NET MVC Forum
1 answer
389 views
I have a grid that I'm binding from the database and I have a search box for the users to find rows in the grid. I'm using Autocomplete for the search box. I want the autocomplete to list values from all columns and not just one field. I have a string array with all the values or filtered using where on the search term in my Controller but I'm not sure how to bind this array to the Autocomplete UI in the view. Can someone help me here with an example? Thanks! 
Dimiter Madjarov
Telerik team
 answered on 25 Dec 2015
1 answer
520 views

I wish to exchange the radiobuttons in the default boolean filter with a checkbox.

 

I expected that there was a GridUIRole for this, but alas it was not so.

 

How would I go about this practically?

 

 

Viktor Tachev
Telerik team
 answered on 24 Dec 2015
7 answers
1.2K+ views

Hi,

I have a Kendo Tabstrip in which  I use LoadContentFrom to load content from a controller action that return a PartialView. The code is

        <%  Html.Kendo().TabStrip()
                .Name("TabStrip")
                .Items(tabstrip =>
                {
                    foreach (var pillar in Model.Evaluation.Pillars)
                    {
                        tabstrip.Add()
                            .Text("Name")
                            .LoadContentFrom("EvaluationFormPillar", "Evaluations", new { id = Model.Evaluation.Id, pillarId = pillar.Id,
                                 hasActionItem = Model.Editable , editable = Model.Editable
                            });
                    }
                })
                .SelectedIndex(Model.SelectedTabIndex)
                .Render();            
     %>
        public ActionResult EvaluationFormPillar(int id, string pillarId, bool hasActionItem, bool editable)
        {
            var model = new EvaluationPillarViewModel();
            Evaluation evaluation = this._evaluationsBL.GetEvaluation(id);
......
            return PartialView(model);
        }

But strangely enough, LoadContentFrom can't go to action "EvaluationFormPillar". It just displays a empty tabstrip with correct tab (set by SelectedIndex). Can anyone help me on this problem? Thanks.

Dimiter Madjarov
Telerik team
 answered on 24 Dec 2015
3 answers
746 views

Hi,

I'm not sure if i posted in the correct sub forum. But i have a problem using drawer as navigation menu. The menu links need to open the page in current tab/page. My code works ok in desktop browser but when test it on ipad it's opened in new tab. I have tried using the code from telerik documentation something like this:

<div data-role="drawer" data-views='["bar.html"]'>

    <ul data-role="listview">

             <li><a href="#foo">Foo</a></li>

             <li><a href="bar.html">Bar</a></li>

     </ul>

</div>

but the page wouldn't open correctly and just looks like a blank page. What am i doing wrong? Please someone help me.

I have attached my sample code as reference. Thank you.

Ady

Alexander Valchev
Telerik team
 answered on 24 Dec 2015
14 answers
776 views
URL :
http://www.rewardsalad.com/Pages/Events/EventList.aspx

Error message :
SCRIPT5007: Unable to get value of the property 'replace': object is null or undefined
kendo.all.min.js, line 8 character 4630


Please see the attachment for the error screenshot.

It's occurred only in IE 9. in all other web browsers, FF, Chrome, Safari and even IE8, it's not happening.
Not everytime. but, at least, more than 50%.

Please help me out.

Thanks.



Nikolay Rusev
Telerik team
 answered on 23 Dec 2015
1 answer
178 views
I have a timeline Month view with many resources on the left column. When user scrolls down, they can't see the day because the top disappears. Is it possible to freeze the top row?
Vladimir Iliev
Telerik team
 answered on 23 Dec 2015
2 answers
354 views

I have a grid which has inline editing with one field visible (a date field).

 

For some reason when I press edit on a row and then cancel (on any row apart from the top row) the whole row turns into the value of the top item.

No data is saved to the database as refreshing the grid shows the correct values again.

 

I've put in an event handler to see what's being happening when cancel is pressed and it seems by the time the cancel event is hit, the object that gets returned is the first item of the grid.

 

How can I stop this behaviour from happening?

Dimiter Madjarov
Telerik team
 answered on 22 Dec 2015
1 answer
257 views

Hi,
I want to see only one series visible on page load. I have dynamically loading the series:

.Series(series =>
    {
       foreach (var def in Model.Series)
       {
             series.Column(def.Value).Name(def.Years);

              //.Visible(just year "2014")
       }
     })

Thanks,

Victor

Iliana Dyankova
Telerik team
 answered on 22 Dec 2015
2 answers
386 views

Working w/a C# MVC Project that displays a Company's information if the user chosen from a ComboBox EXISTS.  One of the data fields displayed is the Company's State which is itself a ComboBox:

@(Html.Kendo().ComboBox()
                            .Name("CompanyState")
                            .Placeholder("Select a state...")
                            .BindTo((List<string>)ViewBag.StateNames)
                            .Value("NV")
                            .Suggest(true)
                        )

Note that when the ComboBox is first created, its data source is bound to the List in "ViewBag.StateNames". 

When the data is displayed, I DISABLE the "CompanyState" ComboBox as there is no need for the App User to enter the data.

$("#CompanyState").kendoComboBox({ enabled: false });

My problem is when I need to ENABLE the "CompanyState", I lose the binding to the List in "ViewBag.StateNames". My question then is: how can I rebind to that List?

Aaron
Top achievements
Rank 1
 answered on 21 Dec 2015
1 answer
174 views

Hi there,

I'm using a NumericTextBox to edit a number with variable (unknown) number of decimals but I don't know how to show all the decimals because by default the NumericTextbox is rounding the number to two decimals.

To partially solve the solution I did the following

1.html.Kendo().NumericTextBox()
2.    .Name("asdf")
3.    .Format("#.#############")
4.    .Decimals(10)

But in this way I'm limiting the number of decimals to 10.

Is there a way to show all the decimals in the NumericTextBox?

Thank you,

Jack.

Dimiter Topalov
Telerik team
 answered on 21 Dec 2015
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
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
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?