Telerik Forums
Kendo UI for jQuery Forum
1 answer
146 views

I have a fully working grid that I can filter per. column , that is you can filter by each column with say "contains" text.

Im wondering if there is a way for me to initialize that with path variables. f.e.

 

http://localhost:54000/home/index?title=something&name=othername 

 

and then the filter in the title column would have its filter text = "something" and the column name would have the filter text = "othername" etc.

 

I have a few columns.

 

Any ideas on how to do this ?

I have a index action in home controller that can reiceive these filter strings, but I dont know how to "set" them in the grid.

I could possibly send them into the view in the viewbag.

 

Regards,

Emil

 

Stefan
Telerik team
 answered on 26 Aug 2016
1 answer
175 views

I have implement grid finally. Previously I could do it with less effort but now by using angular js, it has become really painful. I have posted code. I have my api to load data and api expects parameters. I cannot change api's parameter to  make it inline with the kendoGrid's request object. So I have created own view model and assigned the required parameters.

Current status:

-Data is rendered in the grid.

-Pagination works perfectly.

-Sorting also works but sort is not initialized on one click. I am wondering if there is change function for sort option like it has for pageable. Since I have assigned sort's values to my viewmodel in change() under DataSource, this changes the viewmodel's sort value after grid load. This is of no use for the first time. I have no idea where I am suppose to implement that....

Problems to be addressed:

-I would like to implement the custom filter on the grid rather than the one provided by the grid itself.

-and the sorting problem as mentioned above. 

 

 

 

Stefan
Telerik team
 answered on 26 Aug 2016
2 answers
564 views

Hi I have an ajax call which returns a json string which consists of -

"{"d":[{"path":"/","e_type":"d ","text":"/"},

{"path":"//SQL","e_type":"d ","text":"//SQL"},

{"path":"//SQL/SourceClips","e_type":"d ","text":"//SQL/SourceClips"},

{"path":"//SQL/SourceClips/kjpDNxHD145_MC403.mov","e_type":"f ","text":"//SQL/SourceClips/kjpDNxHD145_MC403.mov"}]}"

 

I am trying to format this so there are 3 folders and one file inside the 3rd folder in the tree view. I want to use a loop so i can reuse this for any data I return.

Currently that is fine as far as printing each item on separate lines but i am trying to nest the last item into the third item.

 

Any help would be very appreciated.

     

 

Paul
Top achievements
Rank 1
 answered on 26 Aug 2016
1 answer
135 views

I have a fully working grid that I can filter per. column , that is you can filter by each column with say "contains" text.

Im wondering if there is a way for me to initialize that with path variables. f.e.

 

http://localhost:54000/home/index?title=something&name=othername 

 

and then the filter in the title column would have its filter text = "something" and the column name would have the filter text = "othername" etc.

 

I have a few columns.

 

Any ideas on how to do this ?

I have a index action in home controller that can reiceive these filter strings, but I dont know how to "set" them in the grid.

I could possibly send them into the view in the viewbag.

 

Regards,

Emil

 

Konstantin Dikov
Telerik team
 answered on 26 Aug 2016
3 answers
1.4K+ views

Hi I expended so much time  trying to solve an issue with the dataBound event of the Angular kendo grid,
I finally could see that the error consist that the Angular kendo grid is not recognizing neither the dataSource object nor the pager object in the databound event.

This is the code of the dataBound function that I added to my Angular Kendo Grid:


               dataBound: function () {
                    console.log("I am inside the databound event  of the Grid Source");

                    console.log("printing object this.dataSource"); // Return Undefined
                    console.log(this.dataSource); // Return Undefined

                    console.log("printing object this.pager"); // Return Undefined
                    console.log(this.pager);  // Return Undefined

                    if (this.dataSource.totalPages() === 1) {
                        this.pager.element.hide();
                    }
                    else {
                        this.pager.element.show();
                    }





Timothy
Top achievements
Rank 1
 answered on 26 Aug 2016
7 answers
331 views
Hello. I've noticed something wierd when implementing an eventtemplate for the agendaview.
When an event occurs on two Days (or ends on midnight) the start and end values sent to the template become altered.

For example:
I have an event in our code behind that starts on 2015-01-30 21:00:00 and ends on 2015-01-31 00:00:00.

This event is shown twice in the agenda-view. (I can understand why this happens, even though i think it should be taken into consideration that 00:00:00 might not always be the beginning of a day, but also the end of a day depending on if it is a startvalue or a stopvalue)

The first visual representation of the event is shown on the 30:th which is to be expected.
However the 'end' value has the wrong time. Instead of showing the original value of '2015-01-31 00:00:00' it is showing '2015-01-31 21:00:00'.
In other Words, it has kept the date, but replaced the time with the time of the startvalue.

The second Visual representation of the event is shown on the 31:th, which frankly should not show at all...
This time the startvalue has been altered. It has kept the time but changed the date from '2015-01-30' to '2015-01-31'.

I have a few questions regarding this behaviour:
1. Why does it do this? (It seems very wrong to alter the data that way. If the data is going to be altered then there should be a huge "WARNING"-sticker tied to the eventtemplate-method of the agendaview.)
2. Is it a bug? (For all I know, it might be an unintended sideeffect of some other logic)
3. How can I alter it? (Bottom line: I need it solved!)

Best regards!
Georgi Krustev
Telerik team
 answered on 26 Aug 2016
3 answers
149 views

Is the scheduler is supposed to work on iOS?

 

This demo (demos.telerik.com/kendo-ui/scheduler/index) is entirely non-functional in iOS7 and iOS8 as the tap and double tap events are being ignored. Is there a way to set up a scheduler that works on android, iOS, and Windows desktop? If so, how would you set that up?

Georgi Krustev
Telerik team
 answered on 26 Aug 2016
1 answer
202 views

Hi,

I have an MVC grid view and I'm setting the current sort value of the grid programatically (similar to http://stackoverflow.com/questions/13863111/kendoui-programmatically-setting-grid-sort). I don't wish to actually sort the grid at the time I set the sort so I'm doing something like this 

var grid = $("#ServiceAuth").data('kendoGrid');
grid.dataSource.options.sort = [{ field: "AuthType", dir: "asc" }];

and then when I do actually want to sort the grid:

grid.dataSource.sort(grid.dataSource.options.sort);

Data-wise this sorts the grid correctly, however the new sort isn't reflected on the indicators at the top of the grid. Is there a way to do this so the grid reflects the data sources sort property?

Thanks in advance for your help

 

 

 

 

Daniel
Telerik team
 answered on 26 Aug 2016
1 answer
171 views

hi, 

I'm trying to sort the data in my bar chart and there is a problem with the chart result. The result inside the chart after sorting is not tally with the original data. 

Here is my code in fiddle http://fiddle.jshell.net/seqyee/eku39yj8/

Iliana Dyankova
Telerik team
 answered on 26 Aug 2016
2 answers
226 views
If the user has navigated to a specific route (say .....#/myRoute), how can I get the route without parsing the url?
AppsWiz
Top achievements
Rank 1
 answered on 26 Aug 2016
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
QRCode
ResponsivePanel
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?