Telerik Forums
Kendo UI for jQuery Forum
1 answer
170 views

Requirements

Kendo UI for ASP.NET MVC Q2 2012 SP1


jQuery v1.7.1


IE8, FF18


Components/Widgets Grid



PROJECT DESCRIPTION 
I'm trying add a grid column with a Razor ActionLink to pass two parameters to a controller action and display the record details in a new view.  The Grid loads the data, but my "view" link does not show up in the Grid.

This works with the MVC3 Razor WebGrid, but I cannot get it to work with the Kendo Grid. 

Here is my Grid layout:
@(Html.Kendo().Grid(Model)            //The grid will be bound to the Model which is the Products table
          .Name("ApplicationPersonal") //The name of the grid is mandatory. It specifies the "id" attribute of the widget.
      .Columns(columns =>
      {
          columns.Bound(p => p.Id);   //Create a column bound to the "ProductID" property
          columns.Bound(p => p.LastName).Title("Last");   //Create a column bound to the "ProductID" property
          columns.Bound(p => p.FirstName).Title("First"); //Create a column bound to the "ProductName" property
          columns.Bound(p => p.appid).Title("APP ID");   //Create a column bound to the "UnitPrice" property
          columns.Bound(p => p.Email).Title("Email");//Create a column bound to the "UnitsInStock" property
          columns.Bound(p => p.HomePhone).Title("Phone");//Create a column bound to the "UnitsInStock" property     
          columns.Bound(p => p.DOB).Title("DOB");//Create a column bound to the "UnitsInStock" property   
          columns.Template(p =>
       {
        
           @Html.ActionLink("view", "ViewApplicant", "Admin", null, null, null, null, new { appid = p.appid, uid = p.Id });
           
       });
              
      })
                     
)

Thanks.
Hassan
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
95 views

So, on the KendoEditor there is a Tooltip field. as the title states, this field only populates the Alt attribute. This only works as a tooltip in IE <= 7. It should be populating the Title attribute (or, perhaps both for compatibility) or be renamed to match what it actually does.

Alexander Valchev
Telerik team
 answered on 09 Nov 2012
4 answers
178 views
The issue is simple.  Without uncommenting the code that you will notice in the fiddle, binding to a viewmodel (kendo.observable) that contains a kendo.data.DataSource simply fails.  

http://jsfiddle.net/dotBomb/PMXWU/

Why?

Form binding clearly doesn't work the same way as kendoGrid binding, which I have working using a kendo.data.DataSource.  Seriously frustrating.  Not to mention when I wire this up to a transport with URLs, trying to sync the datasource via the sync() method, after editing data, fails miserably.  

Note: the collective opinion on the kendo web ui forums is that anything other than the simplest of scenarios usually fails.  I share this opinion.  

Dan


Daniel
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
96 views
Is there a way to zoom the bubbles on mouse over and shrink back to original size when the mouse goes away. 
Thanks.
scorp
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
148 views
I want the calendar to be "view only" (bound with MVVM)

Is there a way to perhaps disable it?  disabled="disabled" doesnt do anything
Guillermo
Top achievements
Rank 1
 answered on 09 Nov 2012
2 answers
228 views
I'd like to have a datetimepicker that displays the date and time by default but only displays the date if the time is midnight. It should update the format when the value is changed. I can format the value when the datetimepicker is created to one or the other format, but if the time changes, I can't seem to update the picker's format. Any ideas on how to do this?

http://jsbin.com/ekilok/1/

$(document).ready(function () {
  var dateFormat = "{0:M/d/yy}";
  var datetimeFormat = "{0:M/d/yy h:mm tt}";
  var d = new Date(2012, 11, 8, 11, 20);
  var d2 = new Date(2012, 11, 8);
    
  $('#StartWithDate').kendoDateTimePicker({
      value: d,
      format: (d.getHours() === 0) ? dateFormat : datetimeFormat,
    change: function(e) { /* what goes here */ }
  });   
  $('#StartWithDateTime').kendoDateTimePicker({
      value: d2,
      format: (d2.getHours() === 0) ? dateFormat : datetimeFormat,
      change: function(e) { /* what goes here */ }
  });   
});
Sypher
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
73 views
I am looking to have a validation message only be populated when needed. So I have an observable object with 3 fields: Value, IsValid, and Message. IsValid is dependent on Value, and Message is dependent on IsValid.

http://jsfiddle.net/GExfL/
var viewModel = kendo.observable({
    OrderNumber: {
        Value: '',
        IsValid: function(){
            return (this.get('Value').length >= 8);
        },
        Message: function(){
            if(this.get('IsValid')){
                return '';
            }
            else{
                return 'Text length must be at least 8 characters.';
            }
        }
    }
});

It doesn't appear that this is allowed, but is there an easy way to design the VM to get something similar?

The closest I've come up with is a utility method that is shared by both IsValid and Message (http://jsfiddle.net/GExfL/1/), but it seems a little verbose.
Martin
Top achievements
Rank 1
 answered on 09 Nov 2012
2 answers
142 views
Hello,

I need to get the minimum size of a given pane in the splitter. I see the following behavior...

When I call splitter.min(pane) it enters the following method in kendo.all.js:

function panePropertyAccessor(propertyName, triggersResize) {
return function(pane, value) {
var paneConfig = $(pane).data(PANE);

if (arguments.length == 1) {
return paneConfig[propertyName];
}

paneConfig[propertyName] = value;

if (triggersResize) {
var splitter = this.element.data("kendoSplitter");
splitter.trigger(RESIZE);
}
};
}


In this case, propertyName is 'min', however, in the paneConfig the property is called 'minSize', and therefore this returns undefined.
Dino
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
290 views
When doing server-side paging, I am receiving results from the query string that are confusing.
The documentation for the web control grids server-side paging does not list all of the items that show up in the query string.

For instance there are keys that appear with nested filters:

filter[filters][0][filters][1][field]

and some that are not nested:

filter[filters][1][field]

There is a logical on the first level, that shows up regardless: filter[logic]
but there are also logicals that show up on other levels.

Sometimes the first columns sorting is on the first level, sometimes on the second level of nesting.

1.Is there any documentation available, that describes what the filters query string structure represents, so we can parse it and make SQL statements accordingly?
 http://docs.kendoui.com/api/framework/datasource#serverfiltering  is all I have found so far, and it is not complete.

2. If there is not documentation available, has anyone successfully parsed this data in such a way that works for all cases of multiple columns, some with one filter, two filters, and zero filters?

3. The same filters give different results, if the operator in the first column never gains focus (if you leave it on and, but enter criteria for second filter on first column). Can we assume this is a bug with the control, and can we assume this is only for the first column?

Thank you


***Update***:
 I parsed based on recurring pattern which is assuming #3 above is a special case and seems to be working ok. For anyone else trying to parse serverside filters for the grid control you can assume that all but the first column are in format:

one filter on a column: filter[filters][X][field] where X is column #
two filters on a column: filter[filters][X][filters][Y][field] where X is col # and Y is filter #

for first column see #3 above, you can make special case for that one in your parser.

Even though i got it working for me, I am still interested to see the documentation when it is updated, thanks!

pucsoftware
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
209 views
Hello All,

 I am try to bind kendo grid with json response.

View
var dataSource = new kendo.data.DataSource({              
 
                transport: {
                    read: {
                        url: baseurl + "/Vendor/getData",
                        type: "POST",
                        dataType: "json"
                    }
                }
            });
 
            $("#mygrid").kendoGrid({
                dataSource: dataSource,
                height: 280               
            });
<div id="mygrid">
            </div>

Controller
[HttpPost]
        public ActionResult getData([DataSourceRequest]DataSourceRequest request)
        {
            var vendorRegistrationTask = (IVendorRegistrationTask)new VendorTaskFactory<VendorRegistrationTask>().CreateObject();
            var dataitem = vendorRegistrationTask.getDocument(10);
            DataSourceResult result = dataitem.ToDataSourceResult(request);
             
            return Json(result ,JsonRequestBehavior.AllowGet);
        }

Thanks in an advance.
pucsoftware
Top achievements
Rank 1
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?