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
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?
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
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?
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.
Is there a recommended way of handling a ContextMenu in a Partial View?
I have a partial view for each tab in a TabStrip (loaded via LoadContentFrom).
Each time the partial view is loaded, the ContextMenu element (<ul>) is moved to the bottom of the page within a div with class "k-animation-container". The menu behaves correctly on first load (items can be hidden successfully). On subsequent loads, the whole menu is displayed. This is presumably because of the duplicate <ul> and <li>s with duplicate ids.
Is this an incorrect usage? Should I be destroying the widget each time (like in the example with the "Apply" dropdown to change orientation).
I have a ​TreeList that simply does not display the data it is receiving through the remote binding.
I can confirm (via Fiddler AND the KendoUI for Chorme browser extension) that the JSON data received is loaded and does contain data. However, the tree list does not display it.
I can't seem to figure out why. Please see attached images.
I also tried turning AutoBind ON/OFF, ServerOperation ON/OFF. Nothing helps. I don't see what's wrong with it.
View:
@(Html.Kendo().TreeList<Web.Models.LevelViewModel>()
.Name( "treelist1" )
.Columns( columns =>
{
columns.Add().Field( e => e.Name );
} )
.DataSource( dataSource => dataSource
.Read( read => read.Action( "Load", "Business" } ) )
.ServerOperation( false )
.Model( m =>
{
m.Id( f => f.Id );
m.ParentId( f => f.ParentId );
m.Expanded( true );
m.Field( f => f.Name );
} )
)
)
Controller:
var result = controllerService.BuildLevel​s( 1 );
return Json( result.ToTreeDataSourceResult( request,
e => e.Id,
e => e.ParentId
), JsonRequestBehavior.AllowGet );
Model:
public class LevelViewModel : ViewModelBase
{
public int Id { get; set; }
public int? ParentId { get; set; }
public string Name { get; set; }
public int FunctionId { get; set; }
public int LevelId { get; set; }
}
Can you please help?