Telerik Forums
UI for ASP.NET MVC Forum
7 answers
1.4K+ 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
814 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
903 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
213 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
386 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
327 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
458 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
226 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
311 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
115 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
DropDownButton
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?