Telerik Forums
Kendo UI for jQuery Forum
2 answers
152 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
191 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
73 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
327 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
114 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
87 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
108 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
2 answers
209 views
Hello,
If I write:

<div data-role="view" id="offers" data-layout="general-home" data-title="Offers" data-show="filterOffers">
            <ul id="pull-to-refresh-offers"></ul>
        </div>
        <script id="productsTemplate" type="text/x-kendo-template">
            <div class="content_offers">
            <span class="title">#= NAME #</span>
            </div>
        </script>


and:

function filterOffers(e) {
     
    var scroller = e.view.scroller;
    scroller.reset();
    categoryID = parseInt(e.view.params.CategoryID);
     
    //console.log(categoryID);
     
    var getOffers = new kendo.data.DataSource({
 transport: {
 read: {
 dataType: "jsonp",
                                               
 beforeSend: function(req) {
 $("#pull-to-refresh-offers").hide();
 app.showLoading();
 },
                                               
 data: {
    action: "getOffers",
    CategoryID: categoryID
    }
 }
 },
 change: function() {
 app.showLoading();
                                               
 setTimeout(function() {
                                                          
 app.hideLoading();
 $("#pull-to-refresh-offers").show();
     }, 200);
                                               
                                               
         },
         schema: {
             data: "res"
         }
         });
     
    $("#pull-to-refresh-offers").kendoMobileListView({
               dataSource: getOffers,
               pullToRefresh: true,
               template: $("#productsTemplate").text()
          });
     
}


At the second time that I run the pull to refresh the "Pull to refresh" label is duplicate (see attached image)
Alexander Valchev
Telerik team
 answered on 29 Sep 2012
4 answers
415 views
Does anyone know how to stop a popup template from loading when the page does?  I really want to utilize my Edit, Add, and Delete ActionResults.  When I add .AutoBind(false) to my Grid, I get an error stating: "Cannot set AutoBind if widget is populated during initialization".  I REALLY don't want the widget to be populated during initialization.

Here's my grid on my Index.cshtml page:

@model IEnumerable<PosPayAndBankRec.Models.AccountListItem>

@{
    ViewBag.Title = "Account List";
}

<div id="grid"></div>

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .ToolBar(p => p.Create())
    .Columns(columns =>
    {
        columns.Bound(p => p.SourceName).Groupable(false).Title("Source");
        columns.Bound(p => p.BankName).Title("Bank");
        columns.Bound(p => p.AccountName).Title("Account");
        columns.Bound(p => p.AccountNumber).Title("Acct #");
        columns.Bound(p => p.AccountFolderName).Title("Folder");
        columns.Bound(p => p.RamQuestBankNumber).Title("Bank #");
        columns.Bound(p => p.AccountID).Hidden(true);
        columns.Command(p => p.Edit());
        columns.Command(p => p.Destroy());
    })
    .Pageable()
            .Editable(c => c.Mode(GridEditMode.PopUp).Enabled(true).DisplayDeleteConfirmation(true).Window(window => window.Title("Account")).TemplateName("AccountPopup"))
    .Sortable()
    .Scrollable()
    .Filterable()   
    .DataSource(dataSource => dataSource   
        .Ajax()
                .Sort(sort => sort.Add(p => p.BankName))
        .ServerOperation(false)
        .Model(model => model.Id(p => p.AccountID))
        //.Model(d => d.Id("AccountID"))
        .Update(update => update.Action("Edit", "Account"))
        .Create(create => create.Action("Create", "Account"))
        .Destroy(destroy => destroy.Action("Delete", "Account"))
     )
)


Here's my AccountPopup.cshtml:

@using System.Collections
@model PosPayAndBankRec.Models.AccountListItem

@{
    ViewBag.Title = "Account";
    SelectList sources = new SelectList("");
    SelectList banks = new SelectList("");
    if (Model.Sources != null)
    {
        sources = new SelectList(Model.Sources, "SourceID", "SourceName");
        banks = new SelectList(Model.Banks, "BankID", "BankName");
    }
}

<table id="table">
    <tr>
        <td>
            Source
        </td>
        <td>
            @Html.DropDownListFor(m => m.SourceID, sources)
        </td>
    </tr>
    <tr>
        <td>
            Bank
        </td>
        <td>
            @Html.DropDownListFor(m => m.BankID, banks)
        </td>
    </tr>
</table>

Rosen
Telerik team
 answered on 29 Sep 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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
Gauges
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
ScrollView
PivotGridV2
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
+? 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?