Telerik Forums
Kendo UI for jQuery Forum
0 answers
175 views
Hello,

I have to add multiple column sorting in kendo grid. Let me explain a little bit more for example I have 4 columns in a grid Column Column B, Column C and Column D. Now if user sort grid with column A and then he select to sort grid with column B then the grid should be sort as AB. 

I hope I deliver my question.

Thanks in advance.


 
Awais
Top achievements
Rank 1
 asked on 14 Nov 2012
1 answer
426 views
I am trying to create a template that will read "This template is empty" when the data source is an empty array. Currently, my div is bound to the data source as follows:

<div data-bind="source: data"></div>

I have tried a number of different things including writing a function that returns an object that represents the data source I'm interested in:

function() {
var data = this.data;
if (data.length == 0) {
return [ { dataValue: "This template is empty." } ];
}
else {
return data;
}
};

How would I accomplish this? Thanks in advance.
Jamie
Top achievements
Rank 1
 answered on 14 Nov 2012
0 answers
119 views
Hi I have a number of templates on my website and have been asked to run the site through the W3c validator. I am still using XHTML 1.0 Transitional but the validator is throwing up a number of errors. The notable ones are "document type does not allow element "div" here" and "ID "myID" already defined". I know that the page works fine with these inside my template and I don't much mind that they are there but from a client point of view I cannot get rid of the errors from the page.

Has anyone come up with a way to escape the template scripts from the page so they don't appear in validation while still allowing the template to work correctly?

An example of one of my templates:
<script type="text/x-kendo-template" id="clickTemplate">
    <div class="resultLine" onclick="window.location = '${ data.oDataSourceURL }'">
        <a href="${ data.oDataSourceURL }">${data.oDataProductDesc}</a>
    </div>
</script>
Thanks in advance

Jamie
Jamie
Top achievements
Rank 1
 asked on 14 Nov 2012
1 answer
359 views
Hi,

     I have three chart with different ids in a page. At a time only one chart will be enabled and others are disabled.
     My requirement is how to get the clientside object of enabled chart. Chart has created using the kendo helper class.
     Please help me how to solve this issue.
Alexander Valchev
Telerik team
 answered on 14 Nov 2012
1 answer
180 views
It seems if you use collapse() on nodes that have not yet been expanded than you will make those child nodes dissapear.

You can reproduce this on the TreeView / API demo page:

1) open http://demos.kendoui.com/web/treeview/api.html
    - notice that "Item 2" is collapsed.
2) Click on the "Collapse All nodes" button
  -  notice that "Item 1" is collapsed
3) Click on "Item 2" in the tree
 - notice that it will not expand.
 - notice that clicking on "Item 1" will expand
4) Now refresh the page (http://demos.kendoui.com/web/treeview/api.html)
5) This time, Click on "Item 2" in the tree to expand it.
6) Click on the "Collapse All nodes" button
 - notice that "Item 2" is collapsed
7) Click on "Item 2"
  - notice that it expands.

Alex Gyoshev
Telerik team
 answered on 14 Nov 2012
1 answer
192 views
I'm using the Grid control with an OData DataSource.  I'd like to be able to add filters that use OData v3's any/all capabilities.  I am okay with creating the filters outside the grid, but I am unsure how I can add them to the DataSource's filter array.  It doesn't seem that the standard { field: 'foo', operator: 'eq', value:'bar' } filters will work in this scenario.  The filter that I need to add needs to generate a string like "Foos/any(f: substringof('bar', f/Name) eq true)" as part of the OData url's filter parameter.
Atanas Korchev
Telerik team
 answered on 14 Nov 2012
8 answers
1.4K+ views
I've been reading through the documentation and I've been unable to find a definitive answer on this.

Does the Kendo UI grid support column header templates?

We need to put a custom totals div into column headers on certain columns so we can update them on the fly as the data changes.
charan
Top achievements
Rank 1
 answered on 14 Nov 2012
1 answer
817 views
I'm trying to create a custom command button to fire a custom delete function. I need to pass the ID of my model to my custom delete function. You'll notice that I'm trying to pass in a static '5' as a test but that isn't working either.

Any help would be greatly appreciated.

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Name).Width(240);
        columns.Bound(p => p.City).Width(170);
        columns.Bound(p => p.State).Width(170);
        columns.Command(command =>
        {
            command.Edit();
            command.Custom("Delete").Click("PropertyPage.DeleteProperty").HtmlAttributes(new { @Id = 5 });
            }).Width(166);
        })
        .Scrollable()
        .Editable(editable => editable.Mode(GridEditMode.InLine))
        .DataSource(dataSource => dataSource
            .Ajax()
            .Model(model => model.Id(p => p.Id))
            .Read(read => read.Action("PropertyRead", "Property"))
            .Update(update => update.Action("Update", "Property"))
            .Destroy(update => update.Action("Delete", "Property"))
    ))
AspenSquare
Top achievements
Rank 1
 answered on 14 Nov 2012
1 answer
216 views
Hello everyone, I'm curious to know if anyone else has experienced issue with Google Chrome animating the grid filter boxes using the Kendo UI Grid. This issue occurs for us intermittedly, typically when the filter box attempts to close. We're using version: kendoui.web.2012.2.710.

I'm attaching a screenshot where we've actually reproduced it on the Kendo UI demo grid.

Thanks in advance for any assistance.
Bryan
Top achievements
Rank 1
 answered on 13 Nov 2012
0 answers
111 views
Hi,

when I set scrollable to false, the right side of my grid is corruptet (see image).
When I set scrollable to true, the right side is correct. But I do need scrollable to be set off...

Can anybody help?
Thanks
Florian

Florian
Top achievements
Rank 1
 asked on 13 Nov 2012
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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?