Telerik Forums
Kendo UI for jQuery Forum
3 answers
418 views
Hello,

I hope you guys can help me, 

I want to be able to use the Kendo UI grid and connect it to a sharepoint list. 

I'm really new to programming and using any sort of third party applications.

Any help would be greatly appreciated.

Thanks,

P
DanKline
Top achievements
Rank 2
 answered on 10 Jun 2013
11 answers
426 views
Is the source for the demo Aeroviewr available?
I'd love to learn from it.

Thanks!
Blake Versiga
Top achievements
Rank 1
 answered on 09 Jun 2013
1 answer
6.2K+ views
Hallo Kendo Team.
I have got incomming data, which contains null values. For example FirstName is empty (null).
Kendo grid display "null", but it is funny FirstName. I want to display "" (nothing) instead of "null".
Is there any way how to do it? ( without changing incoming data)
Thnx. uf.
Brady
Top achievements
Rank 1
 answered on 09 Jun 2013
2 answers
154 views
We are experiencing an issue with the pager on both the grid view and the list view so I suspect it is a problem in the configuration of the dataSource. Here is an example:
http://jsbin.com/ifokup/3/

If you add any number of items to the grid it does not page properly. If you run dataFieldSource.page(1) it does update but again only on what is in the dataSource at the time of running that line of JS code.
Robert Kaucher
Top achievements
Rank 2
 answered on 09 Jun 2013
2 answers
78 views
I would like to create an Outlook 2013 style "pee" for a SharePoint task list.
Here is an image with the basic style I am after:
http://blogs.office.com/cfs-filesystemfile.ashx/__key/CommunityServer-Components-ImageFileViewer/CommunityServer-Blogs-Components-WeblogFiles-00-00-00-00-55/5125.calendar2.png_2D00_550x0.png

The "peek menu" would allow the user to complete the task or change the due date. I am not certain if the Window or Tooltip control would be better suited for this. Is there any guidance for when I might wish to use one over the other?
Robert Kaucher
Top achievements
Rank 2
 answered on 09 Jun 2013
7 answers
459 views
Hi,
I have a Kendo grid that looks like :
@(Html.Kendo().Grid<UserHolidayRightDto>()
.Name("gridHoliday")
.ToolBar(tool=>tool.Create())
 
.Columns(columns =>
{
columns.Bound(p => p.Date).Format("{0:MM/dd/yyyy}").Title("Date added");
columns.Bound(p => p.ValidForYear).Title("For year");
columns.ForeignKey(p => p.RightTypeId, (System.Collections.IEnumerable)@Model.HolidayRightsView, "Id", "Name").Title("Right type").HtmlAttributes(new{@Id="HolidayRightsDropDown"});
columns.Bound(p => p.Days).Title("Days");
columns.Bound(p => p.Comment).Title("Comment");
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(172);
})
.Scrollable(s=>s.Height(200))
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Events(e=>e.Edit("edit"))
.Events(e=>e.DataBound("onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
// .Batch(true)
// .ServerOperation(false)
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.ValidForYear).Editable(false).DefaultValue(@DateTime.Now.Year);
model.Field(p => p.Date).Editable(false);
})
.Events(e=>e.RequestEnd("UpdateWindow"))
.Read(read=>read.Action("ReadData","HolidayRights",new {id=@Model.Employee.PersonID}))
.Create(update => update.Action("EditingInline_Create", "HolidayRights",new {personId=@Model.Employee.PersonID}))
.Update(update => update.Action("EditingInline_Update", "HolidayRights"))
.Destroy(update => update.Action("EditingInline_Destroy", "HolidayRights"))
 ))

I would like to make my foreign key column editable in create mode and disabled in edit mode.  I've tried solutions like :
$("#HolidayRightsDropDown").attr("readonly", true);

and
var d = document.getElementById("HolidayRightsDropDown");
 d.disabled = true;

but without success.

Any suggestions?
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Jun 2013
1 answer
487 views
After some research and combining of two forum posts, I managed to get this working. I know there are others working on this.

first, implement a resize handler when the splitter is resized.
$("#workSplitter").kendoSplitter({
    orientation: "horizontal",
    panes: [
        { collapsible: false, size: "20%" },
        { collapsible: false, size: "80%" }
    ],
    resize: function () {
        window.setTimeout(function () {
            if (tabExists("Transactions")) {
                resizeGrid("#mainGrid");
            }
            resizeGrid("#activityGrid");
        }, 1);
    }
});

...Is where I call resizeGrid. He's the code from another post with added parameter for re-use:
function resizeGrid(gridSelector) {
    var element = $(gridSelector),
        dataArea = element.find('.k-grid-content'),
        elementHeight = element.innerHeight(),
        otherElements = element.children().not('.k-grid-content'),
        otherElementsHeight = 0;
    otherElements.each(function () {
        otherElementsHeight += $(this).outerHeight();
    });
    dataArea.height(elementHeight - otherElementsHeight);
}
But, as the grid is in a TabStrip, it will only resize to the size of the Tab it's on. If you want the Grid to re-sizeto 100% of the Splitter Pane,
the TabStrip must re-size to 100% of the Pane width/height.

This I did with CSS (stolen from another post but changed slightly):

#workTabs {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
}
 
#workTabs > .k-content {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 0;
    right: 0;
}
Originally the second set of settings were applied to classes .k-tabstrip and .k-content. This caused big issues with an embedded TabStrip in the detail Template that I did not want resized. So the change to "#workTabs > .k-content" was enough to limit this to the first children only. Setting attributes on class .k-tabstrip  did not seem to be needed.

Hope this helps

Original Post for making TabStrip 100% of Splitter pane.
http://www.kendoui.com/forums/ui/tabstrip/forcing-tabstrip-to-take-up-100-of-it-s-parent-container.aspx#2398868

Original post for making grid 100% of Splitter pane, allowing for other elements
http://www.kendoui.com/forums/mvc/grid/grid-100-height.aspx










Mike
Top achievements
Rank 1
 answered on 08 Jun 2013
2 answers
144 views
I'm having a problem getting my grid to bind to some json data. I've searched the forums for a solution but no luck.

The following code throws an error of 'Unable to get value of property 'length': object is null...':


$("#search-grid").kendoGrid({
    dataSource: {
        transport: {
            read: {
                url: "a URL"
            }
        },
        schema: {
            data: "data"
        }
    },
    columns: [{field:"Name",title:"Name"}]
});
Based on some other forum posts, this is indicative of a bad json response so i copied and pasted the json from the response to a javascript variable and it works so I'm not sure what I'm doing wrong.

This works:
var testdata = { "data": [{ "Name": "TestY" }] };
 
var searchViewModel = kendo.observable({
    init: function () {
        $("#search-grid").kendoGrid({
            dataSource: {
                data: testdata,
                /*
                transport: {
                    read: {
                        url: "a URL"
                    }
                },
                */
                schema: {
                    data: "data"
                }
                 
            },
            columns: [{field:"Name",title:"Name"}]
        });
    }



I've validated my response by other means and it is valid json so I'm not sure what to try next.  Something is "wrong" with it but I don't know what.

here is the raw response:

HTTP/1.1 200 OK
Content-Length: 27
Content-Type: application/JSON
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 07 Jun 2013 20:00:59 GMT
 
{"data":[{"Name":"TestY"}]}


Thanks in advance


Any ideas?
Cody
Top achievements
Rank 1
 answered on 07 Jun 2013
2 answers
224 views
I know that I can set options on a custom widget if I instantiate the widget in code, so that the following should output "foo" to the console.
var MyWidget = kendo.ui.Widget.extend({
    init: function(element, options) {
        kendo.ui.Widget.fn.init.call(this, element, options);
 
        console.log(options.myOption);
    },
    options: {
        name: "MyWidget"
    }
});
kendo.ui.plugin(MyWidget);
 
$("#widgetRoot").kendoMyWidget({ myOption: "foo" });
Is there any way that I can do the same thing using declarative binding? I get as far as
<span id="widgetRoot" data-role="mywidget" data-bind="X"></span>
but there doesn't seem to be anything I can put in for X that gives me access to the options parameter.  I haven't been able to find anything in the blog  posts or documentation to shed light on this.
Jake
Top achievements
Rank 1
 answered on 07 Jun 2013
4 answers
690 views
I want to create a Grid with a Toggle button in the first column.

Each Row describes a layer for a map:

 1) name,  2) size, 3) type, etc.

In column 0, I would like to put a two-state toggle button.

[KEEP/DELETE] (if  this layer already exists)

or a different button if the layer does not exist

[ADD/SKIP] 

I have seen the checkbox in the GRID: http://www.kendoui.com/forums/ui/grid/grid-checkbox.aspx , but I think that to add four columns to the row (and to change it to a radio) would be confusing.

Or is there some other UX idea that I am just blanking out on.

Once the user has determined which rows to keep, delete, or to download, I will go through the .data() and do the appropriate actions.


Dr.YSG
Top achievements
Rank 2
 answered on 07 Jun 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
Chat
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?