Telerik Forums
Kendo UI for jQuery Forum
1 answer
256 views
I have a mobile listview bound to kendoui datasource pointing to an odata service. I have a $expand hint in the datasource config to expand "Patient" property of "Claim" object, but looking the url of the odata query, the kendoui datasource is not generating the $expand code in the querystring. How can I get the kendoui datasource to generate correct $expand instruction on the querystring?

    OData query string genereated: http://localhost:1839/OData.svc/Claim?$callback=jQuery20207924230222124606_1374374358450&%24inlinecount=allpages&%24format=json&%24top=10

    <script>
        $(function () {
            var app = new kendo.mobile.Application(document.body, {
                transition: 'slide'
            });

            OData.defaultHttpClient.enableJsonpCallback = true;
            
            
            var data = new kendo.data.DataSource({
                type: "odata", // specifies data protocol
                pageSize: 10,  // limits result set
                transport: {
                    read: "http://localhost:1839/OData.svc/Claim",
                    dataType: "json",
                    data: {
                        $expand: "Patient"
                    }
                },
                schema: {
                    model: {id: "Id"},
                    data: function (data) {
                        return data.d.results;
                    },
                    total: function (data) {
                        return data.d.__count;

                    }
                },
                pageSize: 10,
                serverPaging: true,
                serverFiltering: true,
                serverSorting: true
            });

            $("#lst").kendoMobileListView(
            {
                template: "<strong>${data.ClaimNumber}</strong><br/>",
                filterable: {
                    field: "ClaimNumber",
                    operator: "contains"
                },
                dataSource: data
            });
        });
    </script>
Daniel
Telerik team
 answered on 26 Jul 2013
1 answer
211 views
Lets say i have different types 'A','B','C' in my app 

and I am trying to assign this below result of type 'A'

class A
{
  List<B>

  List<C>
}

to the tree view at any level. Can the tree view read all the list items of B and C from the object of type 'A'.

Something like this below:

+ B (parent tree view items)
     - child tree view items
+ C (parent tree view items)
    - child tree view items

Please help with any suggestions.








Petur Subev
Telerik team
 answered on 26 Jul 2013
4 answers
261 views
I have a grid and I am editing most of the fields inline. However I have
a field, the way I envision to modify this field is to open a popup
window when clicked ( this will be a hyperlink field in the grid). Once
the value is modified in the Popup the change will be saved in the
database and the same change should also reflect in the grid. The grid
should be refreshed once the popup is closed. Can you please suggest me
as to how to accomplish this. Also can you provide me samples as to how
to do this.
Thank you
Kavitha
Alexander Valchev
Telerik team
 answered on 26 Jul 2013
1 answer
226 views
My app has a large list of data (only 1 column) and I have to show them all (no paging). With a small amount of data it works fine but when I have all the data in (around 260 items, not that many) the grid disappears from the page. Debugging shows a 500 error on the server. 

I have done the following testing:
- I tried the page on Chrome, IE and Opera. All give the same result.
- I replaced the grid with a treeview. Same result - with around 150 entries it's fine, with 260 it disappears (although in the case of the treeview it doesn't disappear completely, it leaves a message that the request failed and a button to retry.

How I'm getting the data:

@(Html.Kendo().Grid<Song>()
                      .Name("SongsGrid")
                      .Columns(columns =>
                          {
                              columns.Bound(o => o.Name);
                          })
                      .DataSource(dataSource => dataSource.Ajax().Read(read => read.Action("SongList", "Song")))
                      .Selectable()
                      .Events(events => events.Change("songSelected"))
                      )

and

@(Html.Kendo().TreeView().Name("treeviewSongs")
            .HtmlAttributes(new {@class="demo-section" })
            .DataTextField("Name")
            .DataSource(dataSource => dataSource.Read(read => read.Action("SongListForTreeview", "Song")
        )

What are my options?

Thanks.
Dimo
Telerik team
 answered on 26 Jul 2013
1 answer
109 views
Hello all,

I have a grid that I list all the folder and the size of the folder, I have java script code that transform a size of the folder accordingly.  So a folder size can be 8 MB, 1 Gig, 400 KB, etc.  Obviously, this is a text field so we can give the user the correct information and the unit we measure the size of the folder.  Sorting does not work correctly since it is text. 

Is there a way to say for this column if you are going to sort this text column using the raw size field (or specify a specific column to use for sorting).  Meaning I have a second column in my model that has the raw size as int and I would like to use for sorting this way, 8 MB will come before 1 Gig folder.

Is there a way to do this?  if so can you provide a simple example please.
Vladimir Iliev
Telerik team
 answered on 26 Jul 2013
1 answer
87 views
Hello,

I have attached two screens for understanding the issue.
And also attached Demo html folder which is downloaded from your site. I have edited html (examples\web\grid\index.html)
to minimize the number of columns shown in the grid.


Avijit Singh
Web Developer, Syncada from Visa
avijit.singh@usbank.com


Dimo
Telerik team
 answered on 26 Jul 2013
1 answer
454 views
Telerik/Kendo Users,

I have created a number of charts with filters based on an API and would like to know; is it possible to add a message to the graph if there is no data to display?
I do not believe that "DataBound" is useful as this would only cater for loading, not a lack of data.

Thanks,
Jamie
Iliana Dyankova
Telerik team
 answered on 26 Jul 2013
1 answer
94 views
I'm looking to set column widths via HTML, either by setting the style attribute or using data-width (or something similar). I wasn't able to find anything in the documentation about defining column widths via HTML.

Thanks
Dimo
Telerik team
 answered on 26 Jul 2013
1 answer
188 views
Good Morning,

I appear to be running into a 6 color limitation for series.  The following jsFiddle highlights the issue: http://jsfiddle.net/sakers85/hn6nZ/

As you can see the Size "X" has duplicate colors for Grade CUL and WXB.  The same is true for Size "150" which has duplicate colors for Grade PRO and WXF.

Is my only option to explicitly set the seriesColors property with more colors than needed?  This could be an issue as the datasource is remote and can change at any given time based upon the request.

Please advise on the best course of action.  Thanks,
Sean
Iliana Dyankova
Telerik team
 answered on 26 Jul 2013
1 answer
203 views
Good Morning,

I seem to be running into a color limit of 6 colors for series before the colors start repeating using default styles and settings.  Please take a look at this jsFiddle: http://jsfiddle.net/sakers85/hn6nZ/ which shows the undesired results.  As you can see for instance the "X" size has two series (CUL and WXB) with the same color.  The same is true for the "150" size with PRO and WXF.

Is my only option to use the seriesColors and explicitily tell the chart which colors to use?  This could be a potential issue as I may or may not know how many Grades come back from the server at any given refresh.  Please advise.

Thanks,
Sean
Iliana Dyankova
Telerik team
 answered on 26 Jul 2013
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
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?