Telerik Forums
Kendo UI for jQuery Forum
1 answer
534 views

Function Title(), ClientTemplate() and encode(false) don't work when I bind dynamic columns  in a hierarchy grid.

Some columns contains html like <br/>. I tried Encode(false), but it doesn't work.

 

 

View: 

    @(
 Html.Kendo().Grid<dynamic>().Name("Grid")
    .DataSource(ds => ds.Ajax()
                    .Model(m =>
                    {
                        foreach (System.Data.DataColumn column in Model.AssessmentData.Columns)
                        {
                            m.Field(column.ColumnName, column.DataType);

                        }
                    })
            .Read(r => r.Action("GetStudentResult", "StudentDetail",
                new { studentID = "#=StudentID#", headerID = "#=HeaderID#" }))
    )
    .Name("grid_#=HeaderID#")
    .Columns(columns =>
    {
        foreach (System.Data.DataColumn column in Model.AssessmentData.Columns)
        {
            var c = columns.Bound(column.ColumnName);
            c.Title(column.ColumnName + "_test");
            c.ClientTemplate("<div class='test'>#:" + column.ColumnName + "#</div>");

        }
    })
    .Sortable()
    .ToClientTemplate()

    )

 Controller:

         public ActionResult GetStudentResult([DataSourceRequest] DataSourceRequest request,
            int studentID, int headerID)
        {
            DataTable dt = this.core.GetAssessResult(studentID, headerID, 
                this._loginInfo.SchoolID);

            string test = JsonConvert.SerializeObject(dt.ToDataSourceResult(request));
            return Content(test, "application/json");

        }

 

 

 

Boyan Dimitrov
Telerik team
 answered on 30 Nov 2015
1 answer
100 views

Hi,

Working on Progress.JSDO with Mobile app. 

I am working on Tabstrip in Kendo with <a> tags as below.

 <div data-role="tabstrip">
    <a href="views/listView.html?status=Submitted">Submitted</a>   
    <a href="views/listView2.html?status=Registered">Registered</a>      
<a href="views/listView3.html?status=Approved">Approved</a>
    <a href="views/listView4.html?status=Declined">Declined</a>
    </div>  

I would like to retrieve the value of status, when I click the TAB in UI.

I have tried using "e.view.params.status", it returning as undefined.

Can someone help me to get the value.

 

 

 

Ganesh
Top achievements
Rank 1
 answered on 30 Nov 2015
7 answers
226 views

Hello,

I've this nested template and viewModel working OK. Until it hits the last two entries of the array. It wouldn't load the last two items

I am not sure why this is happening. I've tried to load this with inline array, it just won't load in the following URL but it will give you an idea.

http://jsbin.com/movebe/edit?html,js,output

I've also added a screen shot of what I am getting as a result in my local host.

I am adding a show hide toggle with "Show More" to reveal next three entries, but so far no success with adding a wrap either with the following code:

$("#divCategory > article");
      for(var i = 0; i < article.length; i+=3) {
        article.slice(i, i + 3).wrapAll("<div class='more'></div>");
      }

Any ideas to how to achive this would be appreciated?

Thanks.

Rosen
Telerik team
 answered on 30 Nov 2015
3 answers
657 views

Hi

We have a grid with a boolean column that is filtered with "Yes" or "No" radiobuttons.

When clearing a filter programmatically, by e.g. 

$("#grid").data('kendoGrid').dataSource.filter(null)

the filters are cleared as expected but the radio button remains selected on either Yes or No if I open the columns filter.

If I then click the Filter-button without touching the radio buttons nothing happens even though e.g. Yes was selected.

However if I click No and then Yes and then do the Filter, it will do the Yes-filtering.

This only seems like an issue for radiobuttons, for all other types, strings, datetime and checkboxes the values are cleared along with the filter.

 

Can you recommend a fix/workaround?

Thanks, Sune

Eyup
Telerik team
 answered on 30 Nov 2015
1 answer
152 views
Hi, I am a novice in Kendo. I want to validate that a value (user typed) is valid in JSON list. Someone could guide me a little? or will have any example?
Viktor Tachev
Telerik team
 answered on 30 Nov 2015
3 answers
94 views

Hi,

I just upgraded my solution from Kendo UI 2014 Q3 version to 2015 Q3 and experienced a massive drop in chart rendering performance.

Comparing both versions on the same machine (server, browser) an area chart with about 20000 data points now takes 2-3 times (Chrome: 15s vs 7s; 25s vs 10s in Firefox) more time to finish rendering.

Why?

Did I miss something?

Is there a simple solution to achieve same rendering performance of the chart as in 2014 Q3 version?

 

Regards,

Dirk

 

T. Tsonev
Telerik team
 answered on 30 Nov 2015
9 answers
121 views

Hi Kendo team,

Testing Q2 2015, I've found that if you set autobind to false, yo can't set a text to the comboBox.

You can try this behaviour in this sample

This worked fine in Q2 2014.

Kind regards,

Oscar.

Oscar
Top achievements
Rank 1
 answered on 30 Nov 2015
18 answers
973 views
I can't figure out when to use what. I initially created my chart using .net mvc wrappers. Then change some configurations with the setOptions method for charts

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#methods-setOptions

Everything works fine until I try to set the the categoryAxis step option for labels:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-categoryAxis.labels.step

Why does this not work? And it only works when I set it using the options field:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#fields-options
T. Tsonev
Telerik team
 answered on 30 Nov 2015
4 answers
344 views

Hi,

      I have a Kendo Scheduler where i am using Custom Edit Template using e.TemplateName. So when i double click on the event in the Scheduler, the custom template opens as pop up with Save,Cancel and Delete option. I have some field validation in the template. When i click on Save, it shows validation error if any and does not proceed further if there are any validation error, but when i click on Delete, it shows validation error if any but it proceeds further and shows delete confirmation dialogue box. 

Can any one please tell me as how to perform validation check and prevent the delete operation from happening if there is any validation error.

 

Thanks,
Rajee

Georgi Krustev
Telerik team
 answered on 30 Nov 2015
3 answers
299 views
For some reason, any tab content that is getting generated with the result of an ng-repeat shows up with no style (tab strip and body).  Below is my sample code.  I have attached a screen shot of it rendering that shows the Hello and World tabs being styled and the other items being ignored.  I have this tab wrapped in a bootstrap Modal.

Prereqs:
AngularJS v1.3.2
Bootstrap v3.1.1
jQuery 2.1.3
kendoui v2014.3.1223
Browsing with, Google Chrome:  v39.0.2171.99

<div kendo-tab-strip k-content-urls="[ null, null]" style="background-color: white; border-color: white">
  <!-- tab list -->
  <ul style="background-color: white">
    <li class="k-state-active">Hello</li>
    <li>World</li>
    <li ng-repeat="tab in selectedItem.Ui">Tab# {{$index}}</li>
  </ul>
  <div style="padding: 1em">
    Chicken
  </div>
  <div style="padding: 1em">
    Thigh
  </div>
  <div ng-repeat="tab in selectedItem.Ui" style="padding: 1em">
    {{$index}}
  </div>
</div>



I do have this working in a different location.  It is also inside of a Bootstrap modal.  However, it is also sitting inside a few different containers.  Here is the container path:
Bootstrap Modal --> static kendoui-tab-strip --> Bootstrap collapse accordion --> kendoui-tab-strip powered with ng-repeat
Petyo
Telerik team
 answered on 30 Nov 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?