Telerik Forums
UI for ASP.NET MVC Forum
3 answers
757 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
793 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
184 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
358 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
275 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
395 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
181 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
4 answers
246 views

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).

 

Dimiter Madjarov
Telerik team
 answered on 21 Dec 2015
1 answer
93 views
Hi, I would like to have a week view but as all my events are always all day events I don't need the time line... basically I need something similar to the month view but just showing a week. Is this possible?
Vladimir Iliev
Telerik team
 answered on 18 Dec 2015
3 answers
584 views

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?

Viktor Tachev
Telerik team
 answered on 17 Dec 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?