Telerik Forums
Kendo UI for jQuery Forum
3 answers
143 views
Hi,
I have a grid that is grouped by my PropertyField-A (lat-lon position), I would like to show PropertyField-B (address) in group header.
How can I do it? Is it possible? If not, can you suggest me some workaround?
I've tried using columns.headerTemplate but I can't access in the template to the properties of my datasource.

Thanks a lot!
Fabio
Daniel
Telerik team
 answered on 10 Jun 2013
1 answer
310 views
Hi,
i have this code:

$("#grid_detail").kendoGrid({

    dataSource: {

        data: orders

    },

    filterable: {

        extra: false,

        operators: {

            string: {

                contains: "Contains",

            }

        }

    },

    sortable: true,

    columns: [

        {

            field: "Buyer",

            title: "buyer",

            width: "40"

        },

        {

            field: "name",

            title: "Article name",

            width: "40"

        },

        {

            field: "paid",

            title: "Paid",

            width: "20",

            filterable: false

        }

    ]

});


now, how can i filter on field buyer, but to use autocomplete, and to show all buyers that are in dataSource ?

I tried with this, on buyer filed, but still nothing.
filterable: function(element){
    element.kendoAutoComplete({
        dataSource: orders,
        dataTextField: "buyer",
    })
}

Any solution for this?


Thanks.
Alexander Valchev
Telerik team
 answered on 10 Jun 2013
44 answers
1.7K+ views
I would like to call some SharePoint 2010 ODATA services but the listdata.svc doesn't support JSONP. It is possible to add parameters to make it work?

The Microsoft ODATA JavaScript API on CodePlex has the option enableJsonPCallback = false and it allows it to work.

Funny how their samples on CodePlex use the Telerik ODATA services.
Ashwat
Top achievements
Rank 1
 answered on 10 Jun 2013
3 answers
390 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
323 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.1K+ 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
135 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
63 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
437 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
428 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
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)
SPA
Filter
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
OrgChart
TextBox
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
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?