Telerik Forums
Kendo UI for jQuery Forum
1 answer
516 views
In  my case of Kendo grid, datasource is from JSON data. and part of data feed is like following:
"User": {
...
"FirstName": "Joe",
"LastName": "Doe",
"Phone": null,
...
}

And I need to display full name  in column of "Name" in kendo grid
  columns: [
                { field: "User.FirstName+' '+ User.LastName", title: "Name"},
                ...
   ]
and I also set sortable to be true for this grid. And that works well, the grid shows cell as "Joe Doe"

However, the grid doesn't sort by "Name" column and when I tried to click header of column "Name",  it returns error on kendo.core.min.js 
"(function($,undefined){function Class(){}function compilePart(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"')......."

Could you let me know where I did wrong? Thanks,


Dimo
Telerik team
 answered on 22 May 2013
1 answer
164 views
I am looking for an example of using Kedo Upload, and placing the file/metada in an ODATA data service.

Ideally I would like to relate it to another parent record as well.

Thanks in advance.


T. Tsonev
Telerik team
 answered on 22 May 2013
2 answers
129 views
Hi! I have a problem with iPhone 5 scrolling -- in the simulator after a couple of minutes, I can't scroll. On an iPhone 5, it stops scrolling immediately when the job list loads.

Am I loading the list in a way that could cause it to stop scrolling (show vs init)? Should I scrollview instead of listview? Anyone else having this issue? Is there a fix?

Gist of example

All of the buttons in the layout work perfectly fine, and you can click / tap on the items in the jobsList -- but you just can't scroll the jobslist.
Alexander Valchev
Telerik team
 answered on 22 May 2013
5 answers
275 views
Hello,
I wonder if it's possible to have the Navbar parent element with transparent background like the attachment.

Cristiano
Kamen Bundev
Telerik team
 answered on 22 May 2013
1 answer
414 views
This may be trivial but I tried many ways and just cannot get it right. I have 2 situations where I populate a grid: 
1. I filled the grid from the contents of a table similar to one of the demos.
2. I populate a grid by starting from an empty grid which I populate with data including cells which has an autocomplete editor as well.

I tried different variations of the CRUD example but it seems that if you do not have a read statement in transport the update do not work.

I want to save the contents of the whole grid to a mysql database by using php. Is there an example that I missed or how can this be done?
Vladimir Iliev
Telerik team
 answered on 22 May 2013
1 answer
258 views
In the main grid , I have specified the ClientDetailTemplateId("Temptemplate")

<script id="Temptemplate" type="text/kendo-tmpl">

                    @(Html.Kendo().Grid<NIMROD.Models.Test>()
                        .Name("Testid#")
                        .Columns(columns =>
                        {
                            columns.Bound(o => o.test1).Title("Test");
                            columns.Bound(o => o.test1Qty).HtmlAttributes(new { style = "text-align:right" });
                            columns.Bound(o => o.test2Qty).HtmlAttributes(new { style = "text-align:right" });
                           
                        })

                         .Editable(ed => ed.Mode(GridEditMode.InCell))
                         .Selectable(sel => sel.Mode(GridSelectionMode.Single))                       
                         .Events(ev =>{
                                         ev.Edit("edit");    
                                      })
                         .DataSource(dataSource => dataSource
                                    .Ajax()
                                    .Batch(true)
                                    .Read(read => read.Action("details", "Order"))
                                    .Update("UKEditPhaseReviewDrops", "Order")
                                    .Model(model => { model.Id(p => p.id); })
                                    .Events(ev => {
                                                   ev.RequestEnd("oncomplete");   
                                                   ev.Error("error_handler");  } )
                                    )
                                     .Events(ev =>{
                                         ev.Edit("onPhaseReviewedit");    
                                      })
                         
                         .Events(ev => ev.Save("onsave"))
                         .ToClientTemplate())    
</script>


Our requirement test1qty & test2qty cell should be editable or readonly based on condition .
Validation should be done for each cell by calling the action result ,Validation message should be displayed as javascript alert

Thanks In Advance
Petur Subev
Telerik team
 answered on 22 May 2013
7 answers
197 views
We are using standard html radio button control <input type="radio".../> and cannot get it to style correctly on the android stock browser.  It looks fine on ipad but just renders as a gray dot on a Samsung Galaxy SII stock android browser so cannot tell which radio button is "checked".  It works okay in Chrome on the Android.  Can you help us with the styling here?

Thx...Bob Baldwin
Trabon Solutions
Petyo
Telerik team
 answered on 22 May 2013
2 answers
343 views
I have a bunch of pages that share a navigation template and common viewModel navigation properties that can be bound to a particular entity ID being passed between pages.

Doesn't really matter if I haven't explained that too well but bottom line is the properties are pretty much identical for each viewModel apart from an ID tagged on the end of a URL string

Along the lines of this post regarding Knockout ...

http://stackoverflow.com/questions/16569810/knockout-viewmodel-base-class-javascript-inheritance

is it possible to in the Kendo framework to implement a baseViewModel that other viewModels can inherit from?



Darryl
Top achievements
Rank 1
 answered on 22 May 2013
2 answers
1.2K+ views
hello.  currently the number in my tooltip looks like this "$ 1234567" but how do i make it look like "$ 1,234,567"?
$J("#chart").kendoChart({
    dataSource: {
        data:source,
        group: {
            field: "MDetail",
            dir: "asc"
        },
        sort: {
            field: "Month",
            dir: "asc"
        }
    },
    theme: "blueOpal",
    title: {
        text: "Total Cost of Workforce for " + year
    },
    legend: {
        position: "bottom"
    },
    seriesDefaults: {
        type: "area",
        format: "${0:0,000}"
    },
    series: [{
        field: "Amount",
        groupNameTemplate: "#= group.value # "
    }],
    valueAxis: {
        labels: {
            template: "#= kendo.format('$ {0:N0}', value / 1000000) # M"
        },
        majorUnit: 100000000,
        line: {
            visible: false
        },
        axisCrossingValue: -10
    },
    categoryAxis: {
        field: "Month",
        majorGridLines: {
            visible: false
        }
    },
    tooltip: {
        visible: true,
        format: "$ {0:0,000}"
    }
});
toy
Top achievements
Rank 1
 answered on 21 May 2013
2 answers
184 views
Hello:

In the following example, the 1st popup receives a dynamic passed ID value, (use the Refresh() ), whereas the 2nd popup uses the fixed ID value.  There is no difference displaying these 2 popup shown in the Browser, all have scrollbars, and scroll correctly.  

However, when the website (MVC4 razor) is access in tablet, i,e. iPad, the 1st popup does NOT scroll, it moves with the background, and anything longer than 400px height, it cuts off.  the 2nd popup scrolls by itself, the background stays, this is the correct outcome, the same as Browser.

I use these two popup just to show that the Refresh() created windows doesn't scroll correctly in tablet devices.

<div id="divEleWrapper">
    @(Html.Kendo().Grid<ElementViewModel>()
.Name("gridEle")
.Columns(cols =>
{
    cols.Bound(e => e.EleNum)
        .ClientTemplate("<span id='btn_#=EleID#' onClick='showDetail(#:EleID#)'>#:EleNum#</span>");
 
    cols.Bound(e => e.EleNum)      
        .ClientTemplate("<span id='btn2_#=EleID#' onClick='showDetail2(#:EleID#)'>#:EleNum#</span>");
     
})
.DataSource(dataSource => dataSource
    .Ajax()
    .Read(read => read.Action("GetElements", "Rating", pi).Type(System.Web.Mvc.HttpVerbs.Get))
)
)
   
 
</div>
<div>
     
    @{Html.Kendo().Window()
        .Name("winStandard")
        .Title("Detail")
        .Visible(false)
        .Modal(true)
        .Width(600)
        .Height(400)
        .Draggable()
        .Scrollable(true)
.Render();
    }
 
    @{Html.Kendo().Window()
        .Name("winStandard2")
        .Title("Detail")
        .Visible(false)
        .Modal(true)
        .Width(600)
        .Height(400)
        .Draggable()
        .Content(@<text>
        @{Html.RenderAction("GetStandard", "Standard", new  { eID = 54805 });}
        </text>).Render();
    }
    
</div>
 
<script>
    function showDetail(eID) {
        var dialog = $("#winStandard").data("kendoWindow");
        dialog.refresh({
            url: "./Standard/GetStandard",
            data: { eID: eID }
        });
        dialog.center().open();
    }
 
    function showDetail2(eID) {
        $("#winStandard2").data("kendoWindow").center().open();
    }
 
</script>

Please advise
Thank you

HSO
Top achievements
Rank 2
 answered on 21 May 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
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
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?