Telerik Forums
Kendo UI for jQuery Forum
1 answer
497 views
Is there a way to return a model without using get(id) ?

I am using this with the grid, and using a template for the column.  In the template, I use reference the Id to get the model. 

However, when creating a new row with the grid, there is no "Id" set so I need to find another way to access the model.

I can manually access the underlaying data with the "after" code.

But I want to to return the model so I can use .set() -- so that the 'modified' field is toggled -- so that the "save" toolbar button with run the update method.

Before:
$('#gridEmailAddress').data('kendoGrid').dataSource.get(#=Id#).set('StatusTypes[0].Flag',true)

After:
$('#gridEmailAddress').data('kendoGrid').dataItem(this.parentElement.parentElement).StatusTypes[0].Flag=true;


The after version sets the data, but it does not update the modified flag -- so when I click the "save" button the grid toolbar, it does not run the update method.



Brandon
Top achievements
Rank 1
 answered on 20 Dec 2011
2 answers
283 views
I'm simulating checkboxes by using spans that do something when clicked.  Everything is working fine when using existing data because I can use .get(ID) to access the data row and then use .set to toggle the value (which sets the modified flag and all that).  However, when adding a new row to the table, there is no ID, and I can't use the "get" function to access it.  I have a semi-working jsfiddle example. 

Use the "add new cell text message" button, I haven't implemented the default "add row" button. 

Also, how do I have a function I wrote be called after the "Add New Row" button does it's work?


http://jsfiddle.net/brandoncharnesky/KcQ9T/
Brandon
Top achievements
Rank 1
 answered on 20 Dec 2011
0 answers
165 views
Whilst using the drop down list if I assign the data like the first example it works OK, however if I build up a string and then put this in as per the second example it does not work as expected.

***first statement******

 

$("#dropdownlist").kendoDropDownList([{ text: 'Zone 1', value: '0' }, { text: 'Zone 2', value: '10000' }, { text: 'Zone 3', value: '10001'}]);

 

***second statement******

var json = "{ text: 'Zone 1', value: '0' }, { text: 'Zone 2', value: '10000' }, { text: 'Zone 3', value: '10001' }";
$("#dropdownlist").kendoDropDownList([json]);

 

Cliff
Top achievements
Rank 1
 asked on 20 Dec 2011
0 answers
122 views
I am having an issue that when I have a kendo combo box on a page in firefox with a selected value and I link to a new page and then click the browser back button the combo box is blank instead of showing the selected value.  This only happens with Firefox and I have tried Firefox version 7 and 8.  The other browsers I have tried (IE9 and Chrome) worked fine.  To help isolate the problem I also In Firefox tried not calling kendoComboBox on my drop downs and in that scenario when using the back button to return to a page the dropdowns are displayed as expected.

Thanks,
Peter
Peter
Top achievements
Rank 1
 asked on 20 Dec 2011
11 answers
453 views
Hi,

I am new to this forum and Kendo UI.  I have a WCF service that has JSON support running.  I can us jQuery to call the web service and the breakpoints get hit.  I know it works via jQuery.   I wrote the following for the auto-complete and it doesn't fire off the request to the local service.   The aspx page and the service are in the same domain.  I have pasted in the code below.   I have tried jsonp, json, xml and nothing seems to want to hit the service.  The commented out code : WCFJSON() function calls the service and the breakpoint gets hit.  Any ideas?

  $(document).ready(function () {

            // WCFJSON();

            // $("#input").kendoAutoComplete(["Apples", "Oranges", "Grapes"]);

            // return;

             $("#input").kendoAutoComplete({

                 minLength: 10,

                 dataTextField: "Cusip",

                 dataSource: new kendo.data.DataSource({

                     transport: {

                         read: {

                                    url: "Service.svc/GetUsers",

                                     dataType: "jsonp"

                                }

                     }

                  }

                 ),

                     change: function () {

                        //alert("test");

                         this.dataSource.read();

                     }

                    

             });

         });


Thanks,

Steve
Sovan
Top achievements
Rank 1
 answered on 20 Dec 2011
7 answers
506 views
I'm trying to return a response from my save handler:

     Sub ProcessRequest(ByVal context As HttpContextImplements IHttpHandler.ProcessRequest      
        ' Some save logic
         
        context.Response.Clear()
        context.Response.ContentType = "text/plain"
        context.Response.Write("{'result':'result value'}")
    End Sub

but in my success event handler I got null for "e.response". Any help would be appreciated.
T. Tsonev
Telerik team
 answered on 20 Dec 2011
1 answer
87 views
I am trying to show data from a long running calculation in Grid. In order to speed the process up I have broke the data into several calls to a webservce, giving me several groups of JSON data. What is the best way to put that in a Grid? I would like to add each section to the Grid as it returns rather than waiting and having everything pop at the end.

What is the best way of doing this?

I have tried creating a kendo.data.DataSource and then adding the records. The demo shows an add method, but I am getting an error when I call it.
Declared at top of script, the add line is in an anonymous function from a success function on a $.ajax call.
var localDataSource = kendo.data.DataSource;

Error from FireBug Console: localDataSource.add is not a function
Rosen
Telerik team
 answered on 20 Dec 2011
4 answers
165 views
Hi Kendo Team

Is there a way to include all single forum rss feeds in one?
at the moment every forum has its single rss feed, but I want all the kendo forums in one rss feed.

Is there any solution for this?

Many thanks and best regards
Paddy
Iva
Telerik team
 answered on 20 Dec 2011
0 answers
70 views
the instruction at http://www.kendoui.com/get-kendo-ui.aspx  includes this line:
<
script src="jquery-1.6.2.min.js"></script> 

While I downloaded the free trial (personal) version and found there's no this script file in the js folder, should be

<script src="jquery.min.js"></script>  
James
Top achievements
Rank 1
 asked on 20 Dec 2011
2 answers
69 views
I have the following code to bind a chart to data. This code works in IE 9 and Firefox, but throws an error in IE 8. If i remove the second filter item, then it will work in IE 8.  Am I doing something incorrectly?

$("#otherEthnicityChart").kendoChart({
        theme: "metro",
        dataSource: {
            data: indicator14reportData,
            filter: [
                { field: "DataClass", operator: "eq", value: "OtherChart" },
                { field: "Agency", operator: ">", value: "E" },
            ],
        },
        title: {
            text: "Other"
        },
        legend: {
            position: "bottom"
        },
        seriesDefaults: {
            type: "column",
            stack: true
        },
        series: [
            {
                field: "HigherEducationPercent",
                name: "Higher Education",
                color: "#5084EA"
            },
            {
                field: "CompetitivelyEmployedPercent",
                name: "Competitively Employed",
                color: "red"
            },
            {
                field: "OtherEducationPercent",
                name: "Other Education",
                color: "green"
            },
            {
                field: "OtherEmploymentPercent",
                name: "Other Employment",
                color: "purple"
            },
            {
                field: "NotEngagedPercent",
                name: "Not Engaged",
                color: "#F2F471"
            }],
        tooltip: {
            visible: true
        },
        categoryAxis: {
            field: "Agency"
        },
        valueAxis: {
            max: 100,
            min: 0,
            labels: {
                format: "{0}%",
                max: 100
            }
        }
    });
John Hunter
Top achievements
Rank 2
 answered on 20 Dec 2011
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
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?