Telerik Forums
Kendo UI for jQuery Forum
0 answers
184 views
Hi,

I am trying to filter the datasource based on the selection on the grid and populate the treeview.
I am able to filter the data source using the filter property. As this returns Observable objects, I am not able to bind the treeview. In fact, if I mention the datasource of the treeview to this result (which is observable object) nothing happens.

I even tried using query (as shown below) but still no success to bind the treeview
var dsFilter = [{ field: "id", operator: "eq", value: selectedItem.BaseObjId}];

var query = new kendo.data.Query(dataSource);
var data = query.filter(dsFilter).data;

Let me know if I am missing anything or any better approach to do the same?

Thanks…

Regards,
Monish.

Monish
Top achievements
Rank 1
 asked on 01 Oct 2012
2 answers
143 views
Hello

When the combobox opens downwards and when I filter everything works as expected. However, if it open upwards and I start to filter, the result box becomes detached from the input, and it looks pretty messy at least. Please check attached screenshot. What's the workaround ?

Thanks.
Georgi Krustev
Telerik team
 answered on 01 Oct 2012
2 answers
193 views
Hi,
is it possible to create Charts, where i can resize the bars and geht back the new Value?

Like you can see here: http://www.rgraph.net/docs/adjusting_gantt.html

that would be awesome


Thanks
Best Regards
Rene
Harshita
Top achievements
Rank 1
 answered on 01 Oct 2012
0 answers
211 views

I am new to kendoUI and facing a few issues
1. not able to get the grid reference. (for changing the grid properties)
var grd = $("#grid").data("kendoGrid"); // Not working. grd is shown as undefined.

2. DataBound event is not recognized.

Please let me know what i am I missing here.

Please find my code below
<div class="k-content">
@(Html.Kendo().Grid(Model)
      .Name("grid")
      .Columns(columns =>
                   {
                       columns.Bound(company => company.Id).Hidden();
                       columns.Bound(company => company.CompanyName).Sortable(true).Width(120);
                       columns.Bound(company => company.Email).Sortable(true).Width(150);
                       columns.Bound(company => company.CompanyAddressAddress1).Width(120);
                       columns.Bound(company => company.CompanyAddressAddress2).Width(120);
                       columns.Bound(company => company.CompanyAddressCity);
                       columns.Bound(company => company.CompanyAddressStateAbbreviation).Width(80);
                       columns.Bound(company => company.CompanyAddressZip).Width(100);
                       columns.Command(command =>
                                           {
                                               command.Edit();
                                               command.Destroy();
                                           }).Width(180);
                   })
      .ToolBar(toolbar => toolbar.Create())

      .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("CompanyCreate")
                           .Window(window => window.Title("Company Profile").Name("CompanyEdit"))
      )
      .Groupable()
      .Pageable()
      .Sortable()
      .Scrollable()
      .Filterable()
      .DataSource(dataSource => dataSource
                                    .Ajax()
                                    .ServerOperation(false)
                                    .Events(
                                    events =>
                                    {
                                        //events.Change("");
                                        events.Error("error_handler");                                      
                                        events.DataBound("reload_grid");//gives error
                                    }

    )
        .Model(model => model.Id(company => company.Id))
        .Create(update => update.Action("CompanyCreate", "Company", new { act = "Create" }))
        .Update(update => update.Action("CompanyUpdate", "Company", new { act = "Update" }))
        .Destroy(update => update.Action("CompanyDestroy", "Company"))
    .Read(read => read.Action("CompanyRead", "Company"))
    )
      )
<script type="text/javascript">
    // get a reference to the grid
var grd = $("#grid").data("kendoGrid"); // Not working. grd is shown as undefined.
   
       
    $(".k-grid-add").on("click", function (e) {
    
       var insertMode = e.model.isNew(); //gives error
       
        var window = e.container.data("kendoWindow");//gives error
        e.container.kendoWindow("title", "Add new record");//gives error.      
       
    });

 function reload_grid(e) {
        //alert("reload");
    }
</script>.

Praseeda
Top achievements
Rank 1
 asked on 01 Oct 2012
3 answers
94 views
the native mobile widgets such as datetime, date and time are limiting.  i'd like to use the kendoUI datepicker.  Is that supported?
Kamen Bundev
Telerik team
 answered on 01 Oct 2012
1 answer
354 views
Hi,

We're using kendo menu and facing below two issues:

1. The top level main menu shows up properly however on hover of these main menus, the sub menu that shows up has huge width. Can you please let me know what all css classes to override to set the width of sub menu's properly.

On hover of sub menu's, the hover happens only on the text but the sub menu's width is bloated.

2. If we give width of main menu as 100% and set its left css property, it is aligned to left properly however it is not taking 100% width. I'd given 100% width to the parent container (a div element) containing the menu.

Can you please let us know on this, what all css classes to override or anything else we might be missing?
Dimo
Telerik team
 answered on 01 Oct 2012
4 answers
1.7K+ views
Hi :) , 

i'm trying to display my string with json but i'm seeing the tag <br/> instead of the line break:

what i expected:
" this is a 
line break"

what i see:
"this is a<br/>line break"

on my document I've write 
<div>${content}</div>

Someone can help me, please? :) :)
Marco
Top achievements
Rank 1
 answered on 01 Oct 2012
3 answers
131 views
Hi,

Im in the process of reviewing KindoUi to see if it will work for what I need and for the most part things are going well but I ran into a hic-up today when doing some testing.

This happens in android only with stock browser (android 4.0)

What I am doing is creating a simple page with tabs, when I select one of the tabs I have an "onShow" event where I read the JSON object and I create a UL / LI list.

I push this list to a div on the page and then I call $("#dataList").kendoMobileListView(); to format the list. Now this works but I noticed that when I select the tab that fires this event and then transitions the page, right before the page moves it will "blink" (disappear then reaper). I thought this was strange so I looked at the docs and demos and noticed that the demo app did not do this so I started to dig a little deeper into it. I noticed when I did not "format" the list and just pushed the un-styled list to the div that the blinking did not happen, so I thought maybe it was the styling function. I then tried to manually add the classes to the UL/LI, while this did style the elements it still produced the blink. Now I'm at the point where I think its something in the styles but what does not make since is why would it work in the demos then?

I'm kind of at a loss, I hope someone can help.

Thanks

(BTW I am not using a layout template or binding)
Kamen Bundev
Telerik team
 answered on 01 Oct 2012
0 answers
104 views
Hi 
I am looking for the grid customization, as per my design 
http://demos.kendoui.com/web/grid/detailtemplate.html
When u click on the 'name' its popup the window.
and other thing, I want to add same functionality as when u click on the left corner, its expend more table.'

I appreciate your help.

Thanks
faisal
Top achievements
Rank 1
 asked on 01 Oct 2012
1 answer
144 views
on my page i have radsplitter - because kendo split do not work on Crome - it can be not be drag correctly.

Then i filled splitpane with grid. Normall Kendo grid won't simple resize with splitter.
So I added script with resize grid with on pane resize event.
Altoghter, grid height still not display correctly,
On firefox it perfect.
On IE the paging part just goes below window height.
On Crome the paging part is above the window height by 30-40 px.
On safari grid wont resize until grid was clicked.

What is the best way to resize the height of kendo grid when windows or pane is resized?

Best,
Ifdev02
Top achievements
Rank 1
 answered on 29 Sep 2012
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
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?