Telerik Forums
Kendo UI for jQuery Forum
2 answers
1.0K+ views
Hello Community,

  I have a syntax problem, which even with extensive internet search, I found no solution.

I want to create a grid with a function bound to the "DataBound" and the "DataBinding" event.

My Syntax is like this (incomplete snippet here, but correct:working)
@(Html.Kendo ().Grid<mvcEw.Models.WeldersModel> (Model)
                                        .Name ("MasterGrid")
                                        .Events (events => events.DataBound ("gridDataBound"))
                                        .HtmlAttributes (new { style = "height:100%;" })
...

But this binds only the "DataBound" Event. How can I add here additionally the "DataBinding" Event? An additional row like
       .Events (events => events.DataBinding ("gridDataBinding"))
direct under the first .Event row gives syntax and runtime error. I'm stuck here.

All Samples in the net bind only one event like this and I don`t want to bind afterwords via JavaScript. All declaration should be together for this grid.

In hope for help
  Thomas
Vladimir Iliev
Telerik team
 answered on 11 Feb 2013
1 answer
50 views
Hi,
If I'm in for example the asp.net wrapper/grid category and searches for 'window' I'm getting 18000 < results and the first page of results are not results from the current category I'm in.
So when searching, it should first search in the current category and after that, if I want to, I can expand to search in the whole website.

You already have this functionality on the main telerik.com website so why haven't you this function here?

Regards,
Mattias
Dimo Mitev
Telerik team
 answered on 11 Feb 2013
5 answers
292 views
I have two html pages
default.htm With LoginView
Views/Home.htm With HomeView

in javascript when login is successfull In trying to navigate to HomeView with this sintax
app.navigate('Views/Home.htm');
and produce this url
http://localhost/Default.htm#ViewsHome.htm

that is incorrect and shows a blank page only

but if I navigate with a link
<a data-align="right" data-role="button" class="nav-button" href="Views/home.htm">Home page</a>
produce this url
http://localhost/Default.htm#HomeView

and shows all the markup.

I've tried all the url variations and still doesn't know what's happening please help me.
Alexander Valchev
Telerik team
 answered on 11 Feb 2013
1 answer
464 views
This code fails if the Guid is in uppercase:

 datasource.bind("change", function (e)
    {
        var element = datasource.get('90a11073-cbfe-4442-9330-9b94d83d53a2')
        ok(element);
        start();
    });

How can I make the id in the schema case insenstive?

Thanks,
Pedro
Daniel
Telerik team
 answered on 11 Feb 2013
2 answers
102 views
my sample xml is 

<id> 
  <r rn="1">
   <vw n="address" v="Mycomp" />
   <vw n="description" v="AdminOU" />
   <vw n="identifier" v="1" />
 </r>
 <r rn="2">
     <vw n="address" v="Mycomp" />
   <vw n="description" v="SASDesignOU" />
   <vw n="identifier" v="2" />
 </r>
 </id>

i have 3 columns in my grid , 
{
                type: 'xml',
                data: '/id/r/vw',
                model: {
                    id: 'rn',
                    fields: {
                        id:     '@rn',
                      address:   { field:    '@v'},
                      description: '@v',
      identifier  : '@v'
                        
                    }
                }
            }

since my <element> having duplicated in the <r> node, the output is coming as

address        description     identifire
---------         --------------     -----------
Mycomp       Mycomp         Mycomp

AdminOU       AdminOU       AdminOU
  1                    1                    1

like that is coming, but i need the grid row values should be [ mycomp, adimin ou, 1],  in <vw> element i have @n, based upon the attribute value can i load the grid as i wish.. can u please help me regarding this

Selvamani
Top achievements
Rank 1
 answered on 11 Feb 2013
3 answers
187 views
Hi All,

Will kendo controls be supported in Metro UI? In our current project, we are going to use kendo controls in Metro UI. For sample purpose, I have created Metro UI with 3 kendo controls like kendo upload, kendo dropdown and kendo listview. But kendo controls are not properly rendering in Metro UI. For your reference, I am adding the screenshot of it. Immediate help would be appreciated.

Regards,
Partha.
Atanas Korchev
Telerik team
 answered on 11 Feb 2013
1 answer
154 views
I'm trying to create a drag/drop order-able list built on KendoUI and I am running into trouble determining the position of the draggable object in relation to other objects in the list

How would you determine the following:
  • The Draggable's position relative to its container?
  • The position of a DropTarget relative to the same container
The idea being that I can determine when an object move above (or below) another object and then swap their positions in the list.

Here is a jsfiddle containing the prototype
http://jsfiddle.net/raltman/KDRtT/1/
Petyo
Telerik team
 answered on 11 Feb 2013
6 answers
1.5K+ views
Hello All,

I am working with the New Kendo UI Web Controls and so far they have been fairly easy to integrate into my existing application. I know Kendo UI is new and there are a bunch of things in the works but I was curious if there was a way to make a custom command.


My Grid Golumns are set up as follows

columns: [                        
                        { field: "subcatid", width: 90, title: "Subcatagory" },
                        { field: "title", width: 90, title: "Title" },
                        { field: "order", width: 90, title: "Order" },
                        { field: "author", width: 90, title: "author" },
                        { field: "lastupdate", width: 90, title: "Last Update" },
                        { field: "usecms", width: 90, title: "Use Update" },
                        { field: "alturl", width: 90, title: "Alt URL" },
                        { field: "active", width: 90, title: "Active" },                                    
                        { command: ["edit", "destroy", "View"], title: "&nbsp", width: 90 }
        ],

Doing this creates a new Button with the Commands called "View" I would like this button to redirect to a page when clicked. I am using the following bits of JQuery to call the function, however I would much rather add a class descriptor to this button that is unique to View Commands to replace the selector with $('.k-grid-view') Is there an easy way to do this?

$('td .k-button:last').live('click', function ()
{       
        var itemToView;
        var grid = $("#grid").data("kendoGrid");
        var gridData = grid._data;
        var uid = $(this).parent().parent().attr('data-uid');

        $(gridData).each(function () {
            var item = this;

            if (item.uid == uid.toString())
                itemToView = this;
        });

        window.location.replace(itemToView.view);
    });

ps view is not a column but exists in the model

Thanks

- Josh
Rosen
Telerik team
 answered on 11 Feb 2013
1 answer
179 views
Hi, 

I was trying to create data grid, One column is Dropdownlist.  I want  to pass the dynamic  datasource from the Model. where Model is List<object>  . But the ForeignKey cloumn accepts only SelectList as second parameter. But I want  to make this dynamic i.e model.

See Below)

Current Functionality :

  columns.ForeignKey(s => s.FaceId, SelectList)

I need like   columns.ForeignKey(s => s.FaceId, x => x.FacesList)

Please suggest me to achieve this  functionality.

Thanks
Reddy
Brad Fulton
Top achievements
Rank 1
 answered on 09 Feb 2013
2 answers
174 views
Using Ajax as the data source for a KendoUI Grid on a MVC4 application.  I have no problem updating the data automatically every few seconds using "dataSource.read()".  Is it possible for that update to happen without the grid showing the "spinning" icon that indicates that it is fetching data?  I would like the updates to happen seemlessly.  (The grid is read only.)

I would appreciate any thoughts or to point me in the right direction.

Thanks,
Steve
steve
Top achievements
Rank 1
 answered on 09 Feb 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
Dialog
Chat
DateRangePicker
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?