Telerik Forums
Kendo UI for jQuery Forum
2 answers
79 views
help me please!
Atanas Korchev
Telerik team
 answered on 24 Jul 2012
1 answer
118 views
When I use modal Window and press Tab Key, focus leave the Window. It's not right. Do you have a solution of this problem? Or I need add the handler "keydown" on document and catch window blur? Thank's.
Alex Gyoshev
Telerik team
 answered on 24 Jul 2012
0 answers
105 views
Any plans to implement one in Kendo UI,

Found this which is the perfect thing we are looking for

http://wijmo.com/demo/explore/#eventscalendar|overview 

But would rather it in Kendo ui?
Jon
Top achievements
Rank 2
Veteran
 asked on 24 Jul 2012
4 answers
269 views
Hi,

I am having problem with dynamically adding tabs.I want to add a new tab when ever i have clicked the addtab in the tabstrip.
Then a new tab with the content is adding.but the thing is it is showing two contents.
I am sending a sample project please have a look and can you provide me an solution or sample 

Thanking You
srinivas
Top achievements
Rank 1
 answered on 24 Jul 2012
1 answer
291 views
I know this does not sound smart but im trying to use KendoUI Jquery grid with MVC and the problem is the parameter of the event create, update is empty

    <script type="text/javascript">
        $(document).ready(function () {
 
            var transport = {
                read: {
                    contentType: "application/json; charset=utf-8",
                    type: "POST",
                    dataType: "json",
                    url: "JQueryGrid/Grid_Read"
                },
                update: {
                    url: "JQueryGrid/Grid_Update",
                    contentType: "application/json; charset=utf-8",
                    type: "POST"
                },
                create: {
                    url: "JQueryGrid/Grid_Create",
                    type: "POST"
                },
                destroy: {
                    contentType: "application/json; charset=utf-8",
                    url: "JQueryGrid/Grid_Destroy",
                    type: "POST",
                    dataType: "json"
                },
                parameterMap: function (data, operation) {
                    return kendo.stringify(data);
                }
            };
 
            var dataSource = new kendo.data.DataSource({
                transport: transport,
                batch: true,
                pageSize: 30,
                schema: {
                    model: {
                        id: "PersonalID",
                        fields: {
                            PersonalID: { type: "number", editable: false },
                            FirstName: { type: "string", validation: { required: true} },
                            LastName: { type: "string", validation: { required: true} },
                            DOB: { type: "date" }
                        }
                    }
                }
            });
 
            $("#grid").kendoGrid({
                dataSource: dataSource,
                height: 250,
                filterable: true,
                type: "odata",
                sortable: true,
                pageable: true,
                editable: "inline",
                toolbar: ["create"],
                columns: [
                    {
                        field: "PersonalID",
                        filterable: false,
                        width: 100
                    }, {
                        field: "FirstName",
                        title: "First Name",
                        width: 200
                    }, {
                        field: "LastName",
                        title: "Last Name",
                        width: 200
                    }, {
                        field: "DOB",
                        title: "Date born",
                        width: 100,
                        format: "{0:MM/dd/yyyy}"
                    }, {
                        command: ["edit""destroy"], title: "&nbsp;", width: "210px"
                    }
                ]
            });
        });
    </script>


        public ActionResult Grid_Read()
        {
            var personalDtos = _personalService.GetAllPersonalByFilters(1, string.Empty);
            return Json(personalDtos);
        }
 
        [HttpPost]
        public ActionResult Grid_Update(PersonalDto dto) //<--- comes empty
        {
            var personalDtos = _personalService.GetAllPersonalByFilters(1, string.Empty);
            return Json(personalDtos);
        }
 
        [HttpPost]
        public ActionResult Grid_Create(PersonalDto dto) 
//<--- comes empty
        {             var personalDtos = _personalService.GetAllPersonalByFilters(1, string.Empty);             return Json(personalDtos);         }

Paul Sheridan
Top achievements
Rank 1
 answered on 24 Jul 2012
0 answers
209 views
Hi All,

I was wondering if something I used frequently in the MVC suite is available in the framework release of the kendoui grid.

Basically I tend to vary the columns/edit function of a grid based on user role = Previously I would do something like this..


var grid = Html.Telerik().Grid<StaffRoleGridItem>()
        .Name("OStaffRoles")
            .DataBinding(db =>
            {
                db.Ajax()
                    .Select("_ListUsers", "Ajax", new { type = Model.Type });
            })
            .Columns(c =>
            {
                c.Bound(o => o.Id).Hidden();
                c.Bound(o => o.Name).Title("User/Group Name");
                c.Bound(o => o.Role).Title("Role in Project");
            });
                 
    if ((POModel.ViewMode)ViewBag.Mode == PMOBaseModel.ViewMode.CREATE)
    {
        grid
            .DataKeys(keys => keys.Add(o => o.Id))
            .ToolBar(cmd =>
                {
                    cmd.Insert().ButtonType(GridButtonType.Text).ImageHtmlAttributes(new { style = "margin-left: 0" }).Text("Add New Role");
                })
            .DataBinding(db =>
                {
                    db.Ajax()
                        .Insert("_InsertUser", "Ajax", new { type = Model.Type })
                        .Update("_EditUser", "Ajax", new { type = Model.Type })
                        .Delete("_DeleteUser", "Ajax", new { type = Model.Type });
                })
            .Columns(c =>
                {
                    c.Command(cmd =>
                    {
                        cmd.Edit().ButtonType(GridButtonType.Text);
                        cmd.Delete().ButtonType(GridButtonType.Text);
                    }).Width(190);
                })
            .Editable(e => e.Mode(GridEditMode.InLine))
            .ClientEvents(ev => ev.OnEdit("onRoleEdit"));
    }
    grid.Render();

Calling the .Render() function of the MVC grid late gives me the option to change its nature based on the roles attributed to the user.

Does anyone know of a method to do something similar to this in the clientside JS for the grid?

any help appreciated.

Paul Sheridan
Top achievements
Rank 1
 asked on 24 Jul 2012
2 answers
151 views
$("#grid").kendoGrid({
        dataSource: {
            type: "json",
            transport: {
                read: "http://localhost:8888/mysite/xml/sample.json"
            },
            schema: {
                model: {
                    fields: {
                        id: { type: "number" },
                        data: { type: "json" }
                    }
                }
            },
            pageSize: 5
        },
        height: 250,
        pageable: true,
        columns: [{
                field:"id",
                title: "Record ID",
                filterable: false
            },
            {
                field: "data",
                title: "Data String"
            }
        ],
    });

and I have json data in this format:

[
   {
      "id":0,
      "data":[
         {
            "source":"Lotus Domino XML Mail",
            "title":"Mr SYDPER",
            "path":"/NSF//Marketing/Travel Itininery"
         }
      ]
   },
   {
      "id":1,
      "data":[
         {
            "source":"Lotus Domino XML Mail",
            "title":"Re: CMI statement for",
            "path":"/Marketing/Mark"
         }
      ]
   }
]

How do I have my data column display the data in the grid?

Thanks
Akif Kamal
Top achievements
Rank 1
 answered on 24 Jul 2012
7 answers
306 views
Loading content with querystring parameters

content:
"../../content/web/window/ajax/ajaxContent.html?op=b3A9bGlzdCZpZD03MTUwNmY4Ni1jODk3LTQ3MjItYjcxNy01OTgxNWNiZmQxNmI="

The problem since Kendo Window is loaded as an XHR, the rquestUrl is not visable to the script running inside the Content.html (i.e. location.search) page.  Ideas on passing parameters to Kendo Windows?
Kamen Bundev
Telerik team
 answered on 24 Jul 2012
8 answers
207 views
Is there an EmptyText property in the combobox like you have in the silverlight combobox?  If not, what is the best way to go about duplicating that functionality?  In the old days I would just set it and clear it in the gotfocus / onfocus events, is that how it shoud be done here or is there an easier way?
Georgi Krustev
Telerik team
 answered on 24 Jul 2012
1 answer
120 views
Hi,
I'm using custom errors where retrieving data from server. 

dataSource = new kendo.data.DataSource({
      type: "json",
      serverPaging: true,
      serverSorting: true,
      serverFiltering: false,
      error: function (e) {
    // display custom error
      },
      ...
});

If an error occurred on the server when retrieving data, server respond with some error message which is handled in your success function.

success: function(data) {
    var that = this,
        options = that.options,
        hasGroups = options.serverGrouping === true && that._group && that._group.length > 0;
 
    data = that.reader.parse(data);
 
    if (that._handleCustomErrors(data)) {
                 
        // should dequeue request!
        // that._dequeueRequest();
         return;
    }
 
    ...
 
    that._dequeueRequest(); // only called if any data is retrived
    that._process(that._data);
}

but there is no that._dequeueRequest(), so any new request is not started. 

Thanks in advance! 

Rosen
Telerik team
 answered on 24 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?