Telerik Forums
Kendo UI for jQuery Forum
2 answers
245 views
Hi guis, thx before everything:

I'd like to use the amazing Kendo's Grid to take soma advantages like paging, filtering through DataSource and more.
 As I show up in ths fiddle http://jsfiddle.net/dsubiros/5fXZq/ , I can't get selectedItem when I'm using a rowTemplate.

In this example if I change the attribute columns by " columns: ['OrderID', 'ShipName'] ", and comment out the rowTemplate attribute, grid works as expected, but I need to be able to use a template, and still get grid's selected row.

$("#grid").kendoGrid({
   dataSource: dataSource,
   pageable: true,
   selectable: true,
   rowTemplate: kendo.template($("#rowTemplate").html()),
   columns: [''],
   change: function() {
   var id = this.select().data("id");
   $("#log").html("LOG: selected id = " + id);
}
});

Please help me out.
Mauro
Top achievements
Rank 1
 answered on 13 Jul 2012
0 answers
115 views
Hello, is there a way to change the style of the command buttons like in telerik ? To only text, text + image or just an image ?

Thanks!
David
Top achievements
Rank 1
 asked on 13 Jul 2012
2 answers
338 views
In my instance, a Kendo UI grid is bound to a OData service. The service exposes a table with many (200+) fields. The app allows users to configure displayed field set of the Grid, set initial filters and sort parameters. The app configures the Grid, which then goes off and queries OData service. 

The grid kendo.Data.DataSource is defined as:

var gridDataSource = new kendo.data.DataSource({
    type: "odata",
    transport: {
        read: {
            url: "@Url.Content(dynDataSource.Url)",
            contentType: "application/json; charset=utf-8",
            type: "GET",
            dataType: "json"
        }
        },
    pageSize: @Model.MaxPageSize,
    serverPaging: true,
    serverFiltering: true,
    serverSorting: true,
    filter: ...
}

Here's a sample request issued by the Grid (captured by Firebug):
http://localhost:22411/Data/Comp?%24inlinecount=allpages&%24top=1000&%24filter=DistrictCode+eq+%27460800%27

This returns all the fields of the table, which is a problem. The fields need to be limited by selecting only the required fields, the request for which would look like:
http://localhost:22411/Data/Comp?%24inlinecount=allpages&%24top=1000&%24filter=DistrictCode+eq+%27460800%27&%24select=DistrictCode,DistrictName,DistrictNumber

Again, how to configure the grid for this to happen?
Dincer
Top achievements
Rank 1
 answered on 13 Jul 2012
5 answers
80 views
Hello everyone

I have a little problem with my last column ´s tooltip; it isn´t be read.
I do not want that the scroll (horizontal) appears on the page;

I tried with the CSS property overflow-x: hidden for hide my scroll; but it is worse because now I don´t have chance to see it.

It could be that the tooltip appears to the left of the series?

Regards,
M.
Monique
Top achievements
Rank 1
 answered on 13 Jul 2012
0 answers
74 views
Hi

Is it possible to change the destination ul (k-upload-files k-reset) of uploaded files?

Thanks
Raffael
Top achievements
Rank 1
 asked on 13 Jul 2012
1 answer
144 views
Hi, I have another question and probably stems from my not accurately reading the documentation. Json gives me a date in the form:
{"ab_Id":"3",
"pr_Nazwa":"Subiekt GT",
"ab_Klucz":"fjo3r-3reft-et3fo-3rtt3-fwef2",
"adr_NazwaPelna":"ABC s.c. Sklep spo\u017cywczy",
"ab_DataDo":{
             "date":"2012-04-04 00:00:00",
             "timezone_type":3,
             "timezone":"UTC"
},
"adr_NIP":"894-56-53-563"},

How do I appeal to the variable $ { ab_DataDo } in the template assumed value of the field "date". Currently, my schema looks like this:

schema: {
                    model: {
                        fields: {
                            ab_Id: { type: "number" },
                            pr_Nazwa: { type: "string" },
                            ab_Klucz: { type: "string" },
                            adr_NazwaPelna: { type: "string" },
                            ab_DataDo: { type: "date"  },
                            adr_NIP: { type: "string" }
                        }
                    }
                },

The question
is probably pretty damn trivial.

Regards/Pozdrawiam
Paweł Kasztelan
Paweł
Top achievements
Rank 2
 answered on 13 Jul 2012
1 answer
114 views

I want to create a grid where the data for the grid comes from a remote datasource but then is re-packaged by a javascript function after the data arrives but before it is displayed (repackaged means some rows are dropped and only some fields are displayed).  The grid needs to show a loading gif (as per usual) while waiting for the remote datasource and javascript function to complete processing.  What is the right way to set this up?   

This sort of thing (below) for example doesn’t work, because the processData() function completes without waiting for the remote datasource to return its data, plus the grid isn’t aware it needs to invoke its loading.gif.

var dataSource = new kendo.data.DataSource({
                        transport: {
                            read: {
                                    url: "REMOTE URL
                                }
                            }
                        }
                    });

function processData() {
    dataSource.read();
    var dataTobeProcessed = dataSource.data();
    ...
    return processedData;
}

$("#grid").kendoGrid({
                        dataSource: {
                            data: processData() 
                        },
                        columns: [ { …} ]
                        
                    })

Rosen
Telerik team
 answered on 13 Jul 2012
0 answers
199 views
Scenario: We have a page on which there are multilevel kendo window opening in an iframe.
For eg:If i open a window,it might have child windows,ideally the child windows should open as a individual entity,but what is happening my case child pop-pup get's appended to parent pop-up thereby restricting the movement of pop-up inside the parent pop-up.
My requirement is that i require pop-up to take grid as parent and should open as individual entity, so that i can move the pop-up outside the parent pop-up window.

Kindly let me know if there is any way to handle my scenario.
Mangesh
Top achievements
Rank 1
 asked on 13 Jul 2012
1 answer
231 views
Hi,

The SplitView control is very cool. Is there any plan in the future that allows SplitViews to be nested in another view (such as TabView)? All our requirements (and designs) are currently based on this (see attached screenshot for example). Alternatively is there another way that 2 views can be hosted on same screen in a master/detail fashion?

Thank you.
Alexander Valchev
Telerik team
 answered on 13 Jul 2012
1 answer
721 views
Hello,

I notice that kendo.common.min.css contains classes named "editor-field" and "editor-label" that conflict with ASP.NET MVC's scaffold-generated CSS classes.  Was this an oversight or intentional?
Dimo
Telerik team
 answered on 13 Jul 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?