|
title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
|
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
|
x
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
|
| Saturday, December 05, 2015 | |
|
In my continuing trials with customizing the heck out of a Kendo UI Grid, let's look at how to get the data that's being displayed. There doesn't seem to be a way to intercept the data (filters, maybe? Remember that I'm still new to this thing) and push it into another object, but you can grab it from the grid like this (taken from this SO answer...) var displayedData = $("#YourGrid").data().kendoGrid.dataSource.view();And here's a description of the different objects the grid exposes (aka, there are alternatives to `view`): _pristineData Labels: kendo, noteToSelf, telerik posted by ruffin at 12/05/2015 06:54:00 PM |
|
| Tuesday, December 01, 2015 | |
|
Clued in after reading this... I've got a place where I want to return entities mixed in with folders in a grid, in this case a Kendo Grid. I want to have the two "types" of data mixed in display, however, which means this isn't as clean as it could be. I've got pretty typical fields for the first query, and then I'm kinda kludging the folders into the same object model, like so...
I'm not absolutely sure how I feel about this as a production-worthy strategy... It's obviously taking a dog and making it quack like a duck, which is tres hipster. The problem is that Kendo Grid allows you to have hierarchies, but expects everything on the same hierarchical level to be of the same object type. (My vote is to write a custom table renderer that'd support the concept of folder levels mixed in with entities, but that's understandably not the route this contract is taking. Still, it's so often just as difficult to get a third-party library to work as you need it as it'd be to make your own widget that exactly covers your own use cases.) Regardless, what's neat to me is that the compiler's smart enough to know these are the same anonymous types and allows you to (apologies for the Yoda'd blog title. SEO BABY! /sarcasmTinge) Labels: c#, noteToSelf, telerik, TIL posted by ruffin at 12/01/2015 05:11:00 PM |
|
| Monday, November 30, 2015 | |
Hey, Telerik~ A quick word to the wise: It's probably worth including a link to where you actually explain that syntax everywhere you have a The info at their API docs for column templates is okay, but not great. The info at their templating explanation is pretty crucial for you to understand live examples of customizing grid display. The four grid column template/rendering formatsLet's quickly list the different ways to produce column names and values.
Quick critique ;^)Though I don't mind overloading parameters, at some point, it seems like you should've sunk your time into one or the other -- either allow functions or develop some crazy templating system. Personally, I prefer number four over three, as it doesn't require any Telerik-specific knowledge. Telerik has an interesting way of creating sort of simplest case examples, but would benefit from a sort of kitchen sink style demo that slowly builds on itself of the grid. "Here's a grid with a straight column, a column with a formatter, and a column with template." You know, like this: Composite example with each column renderer type
See, Telerik? Was that so hard? (They have so many examples this is probably in there somewhere, but it sure isn't where I'd expect it: At the top of Just for fun, let's also return to the Instead, the answer is that you deserialize it yourself, on the client, in JavaScript, then reserialize into something easy to hand to your controller. I'm going to reorganize everything into a
Kinda ugly default, but a reasonable way to customize things. Labels: javascript, noteToSelf, telerik posted by ruffin at 11/30/2015 01:01:00 PM |
|
|
| |
|
|
All posts can be accessed here: Just the last year o' posts: |
|||||||||||||||||||||
|
||||||||||||||||||||||
|
|
|
|