Telerik Forums
Kendo UI for jQuery Forum
0 answers
55 views
I have just started to use kendo ui and need some help regarding an issue where once you click on expand icon the row gets saved, also the already opened rows should remain open.
Adeel
Top achievements
Rank 1
 asked on 20 Nov 2012
20 answers
228 views
HI!
I have the following

/// gets the data from the webserver
 GetAllData = function (url, callback, additionParamString){
   var dataSource = new kendo.data.DataSource({
                        transport: {
                            read: {
                                // the remote service url
                                url: url +'&JsonCallback=?',
                                // JSONP is required for cross-domain AJAX
                                dataType: "jsonp",
                                // additional parameters sent to the remote service
                                data: {
                                    q: "html5"
                                }
                            }
                        }
                    });

   return dataSource;

}

function ShowDirectoryForCategory(e){
  var category = e.view.params.id;
  var url = URL_Directory_ROOT +'&category='+category;

   e.view.element.find("#uxDirectoryList").kendoMobileListView({
            template: kendo.template($("#templateForDirectoryListingItem").html()),
            dataSource:GetAllData( url,null,'')
    });  
}

sometimes when calling ShowDirectoryForCategory it crashes the app (I am using xCode via phoneGap 2....) - this is only on a device - if I have it connected I get a memory warning ...
should I be  clearing the data somehow... ?? sometimes there is a "lot" of data there times not..  is there a limit on the size of data transfered>>??

and
Atanas Korchev
Telerik team
 answered on 20 Nov 2012
5 answers
750 views
There is some js in KendoGrid that makes Chrome display the grid border incorrectly.

If I remove the following

if (height) {
                that.wrapper.css(HEIGHT, height);
                table.css(HEIGHT, "auto");
}

everything fits.
Faisal
Top achievements
Rank 1
 answered on 20 Nov 2012
1 answer
241 views
Hi!

I implemented an MVC3 project with a controller that handles ajax POST requests in JSON format. The controller action requires an AntiForgeryToken.

Now I have a problem with a kendo datasource request posted to the server. I followed the samples for the dataSource configuration:

dataSource: new kendo.data.DataSource({
                type: "json",
                transport: {
                    read: {
                        url: "GetZones",
                        dataType: "json",
                        type: "POST",
                        contentType: "application/json; charset=utf-8",
                        data: {
                            __RequestVerificationToken: $("input[name=__RequestVerificationToken]").val()
                        } //sendAntiForgery()
                    },
                    parameterMap: function (options) {
                        return JSON.stringify(options);
                    }
                }};

However in fiddler I get the following error:

{"error":"Invalid JSON primitive: __RequestVerificationToken=cVKwXnuusO7LVzfoTYk2FD4S5BhSstIULlN0uzspliMOByr/OFRMpbaeLT4i84lpqZZPuzNyUzuhqULNEA/WyljOuD17gycOs2yQGfNlHq1GrX7/QcW3l0RC30RAXA9ruyLRuvCBLNOASqsMUSBb4wIyzxMj4mLrZZNdqk4JWyo=."}

I found out that the token is send out twice as you can see in the following request body:

{"__RequestVerificationToken":"cVKwXnuusO7LVzfoTYk2FD4S5BhSstIULlN0uzspliMOByr/OFRMpbaeLT4i84lpqZZPuzNyUzuhqULNEA/WyljOuD17gycOs2yQGfNlHq1GrX7/QcW3l0RC30RAXA9ruyLRuvCBLNOASqsMUSBb4wIyzxMj4mLrZZNdqk4JWyo=","take":10,"skip":0,"page":1,"pageSize":10}&__RequestVerificationToken=cVKwXnuusO7LVzfoTYk2FD4S5BhSstIULlN0uzspliMOByr/OFRMpbaeLT4i84lpqZZPuzNyUzuhqULNEA/WyljOuD17gycOs2yQGfNlHq1GrX7/QcW3l0RC30RAXA9ruyLRuvCBLNOASqsMUSBb4wIyzxMj4mLrZZNdqk4JWyo=

The first __RequestVerificationToken is in JSON format, but the appended 2nd __RequestVerificationToken is not and leads to the error of the MVC service.

How can I suppress the 2nd instance?

Rosen
Telerik team
 answered on 20 Nov 2012
0 answers
77 views

Is possible automatically add a string (?width=300) to the src of an image tag when I insert an image with Editor?

<img src="images/myimage.jpg?width=300 />

The reason is that I’m using imageresizer for my thumbnails and I really like it.

 /Stefan

Stefan
Top achievements
Rank 1
 asked on 20 Nov 2012
4 answers
469 views
Hi i want to enable or disable editing for specified column when editing row in grid.
i can achieve this using telerik like this
var indexCell = $(e.cell).index();
            var grid = $('#' + e.currentTarget.id).data('tGrid');
            if (grid.columns[indexCell].title == "*Country<br>Code" && e.mode == "edit") {
                grid.cancelCell(e.cell);
            }

Thanks
 
Victor
Top achievements
Rank 1
 answered on 20 Nov 2012
0 answers
126 views
Hi,

I am filling the grid with List of model objet,Inside that each model object again i will be having a list of other model object ,i want show few columns in the grid by using the list which is inside the main Model.

Because of the below foreach i am getting the error.

@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(ViewModel => ViewModel.name).Title("name");
foreach (var sec in Model)
{
for (int i = 0; i < sec.SecurityIdentifierModel.Count; i++)
{
string columnName = sec.SecurityIdentifierModel[i].IdentifierType;
columns.Bound(securityViewModel => securityViewModel.SecurityIdentifierModel[i].Identifier).Title(columnName);
}
}
})
.DataSource(dataSource => dataSource
.Server()
.Model(model => model.Id(o => o.Identifier)))
)

Thanks in advance...
Balakrishna
Top achievements
Rank 1
 asked on 20 Nov 2012
2 answers
132 views
Are there any plans to have a table tool in the editor? 
Alex Gyoshev
Telerik team
 answered on 20 Nov 2012
0 answers
106 views
Hi! - I read the article What’s new in Kendo UI Q2.There you find the part: "DataSource Support for TreeView" - (Great stuff!!!). I want to use that functionality with "json" not with odata. - Is that possible? And if yes: Is there a tutorial or a jsFiddle playground?

Thank you in advance
- Jörg

Backe
Top achievements
Rank 2
 asked on 20 Nov 2012
0 answers
107 views
Hi I want to disable certain columns while editing Columns (addDate and ModifiedDate). I was searching something like Telerik isEditable(false) but I cant find it. Here is code of my grid:
@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Title);
        columns.Bound(p => p.Author);
        columns.Bound(p => p.BookGenreId);
        columns.Bound(p => p.ReleaseDate);
        columns.Bound(p => p.ISBN);
        columns.Bound(p => p.Count);
        columns.Bound(p => p.AddDate);
        columns.Bound(p => p.ModifiedDate);
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.InLine))
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()  
    .DataSource(dataSource => dataSource
                .Server()
        // Specify that the ProductID property is the unique identifier of the model
                .Model(model => model.Id(p => p.BookId))
                    .Create(create => create.Action("Create", "Books"))
                    .Read(read => read.Action("Index", "Books"))
                    .Update(update => update.Action("Update", "Books"))
                    .Destroy(destroy => destroy.Action("Destroy", "Books"))
     )
)

Resolved by 

                .Model(model =>
                {
                    //The unique identifier (primary key) of the model is the ProductID property
                    model.Id(p => p.BookId);


                    model.Field(p => p.ModifiedDate).Editable(false);
                    model.Field(p => p.AddDate).Editable(false);
                })
Karol
Top achievements
Rank 1
 asked on 20 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
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
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
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?