Telerik Forums
Kendo UI for jQuery Forum
6 answers
227 views

Hi all

I have an in-cell editable grid which I have managed to make so only several columns are editable. However, those non-editable columns are still selectable and when using tab, the tabbing does not skip these cells. Is there any way to make it so the tab order only selects the editable cells?

Also, when I enter one of the editable cells, the cursor puts itself at the start of the value and leaves the cell contents unselected. Is there any way to automatically select the cell's contents on enter?

Regards

Brad

Brad
Top achievements
Rank 1
 answered on 10 Jun 2015
6 answers
229 views

I need to create tabs dynamically, with the same structure but different data. When I clone a tab, the events (dropdownlist specifically do not work).

var tabpanel = $('[data-name="tabpanel"]').data("kendoTabStrip");
        if (typeof tabpanel === 'undefined') tabpanel = tabpanel = $('[data-name="tabpanel"]').kendoTabStrip().data("kendoTabStrip");
        
        $.each(addresses, function (key, value) {
            var tabHeader = value["AddressTypeDescription"];
            var tab = $('<div>').attr('name', tabHeader);
            $(tabpanel.contentHolder(0)).children().clone().appendTo(tab);

            value['phonetypes'] = phonetypes;// data for dropdownlist
            value['addrtypes'] = addrTypes; //data for dropdownlist
                        
            var vm = kendo.observable(value);
            kendo.bind(tab, vm);

            //Need to do this otherwise the input values will not get passed
            tab.children().find('input').each(function () { $(this).attr('value', this.value);})
            tabpanel.insertAfter({
                text: tabHeader,
                content: tab.html()
            }
                , tabpanel.tabGroup.children(":nth-last-child(2)")
            );
            
        });

 

snippet of the markup for the dropdownlist

<select class="form-control" data-role="dropdownlist" data-bind="source: addrtypes, value: AddressTypeID" data-text-field="text" data-value-field="value" name="ContactAddress.AddressType"></select>

Shawn
Top achievements
Rank 1
 answered on 09 Jun 2015
1 answer
127 views

Hi All, 

Is there a way to bind extra event to the 'create' toolbar button?  I want to populate data before or after into grid column after a new row was insert by kendo. 

I tired the following for the toolbar button but with no luck

​edit: function (e) {
        e.container.find(".k-grid-add").on("click", function (e) {
        //populate data here
        });                        
  } 

 and this

var grid =  $("#grid").kendoGrid({...});

grid.data().kendoGrid.bind('edit', function (e) {

     e.container.find('.k-grid-add').click(function () {

         //populate data here

});

TIA

Kiril Nikolov
Telerik team
 answered on 09 Jun 2015
1 answer
300 views

Hello,

I am using MVC razor and need to show " No Data Available " message for Charts when there is no data available or chart is empty.

Is this possible in Kendo MVC Charts. Any pointer will be helpful.

-Thanks

Hemant

 

 

Iliana Dyankova
Telerik team
 answered on 09 Jun 2015
3 answers
2.1K+ views

Hi, I'm trying to rotate the category axis labels so they appear like the attached mockup.  Please let me know how I can achieve this.

Thanks,

--Ed

T. Tsonev
Telerik team
 answered on 09 Jun 2015
12 answers
2.4K+ views
Hi,

I'm trying to export a long webpage to a PDF with multiple pages. I started building on the example in the demo here http://demos.telerik.com/kendo-ui/pdf-export/page-layout but have not been able to create a PDF with more than one page.

The documentation says that you should create a sub-Group for each pdf-page, to test in a simpler way I expanded another of your examples and create a "root" Group with 2 "p" Groups appended to it. Only the last appended sub-Group is displayed in my PDF though.

Could you please give me an example of how to do this?

var draw = kendo.drawing;
var geom = kendo.geometry;
 
var rect = new geom.Rect([5, 5], [240, 240]);
var path = draw.Path.fromRect(rect).stroke("red", 5);
var rect2 = new geom.Rect([5, 5], [240, 240]);
var path2  = draw.Path.fromRect(rect).stroke("blue", 5);
 
var root = new draw.Group();
 
var p1 = new draw.Group();
root.append(p1);
p1.append(path);
 
var p2 = new draw.Group();
root.append(p2);
p2.append(path2);
 
draw.exportPDF(root, {
  paperSize: "A5",
  landscape: true,
  multiPage: true
 }).done(function(data) {
    kendo.saveAs({
        dataURI: data,
        fileName: "frame.pdf"
    });
});
T. Tsonev
Telerik team
 answered on 09 Jun 2015
1 answer
226 views

I have a grid that will typically have anywhere between 50 to 400 rows. I figured out to export the grid to a one page pdf, however 100+ rows on a 1 page (Letter) pdf is unusable. How do I export to a multi-page pdf, or is that not an option?

 

If I specify PaperSize("Letter") I get a pdf with the top left section of the grid with the rest of the content simply cut-off. The PDF export functionality sounds really usefull, but unless I figure out how to do multiple-page exports, the possible uses will be extremely limited. Am I missing something?

 

 

@(Html.Kendo().Grid(Model)
    .Name("grid")
    .Columns(c =>
    {
        c.Bound(m => m.ExternalID).Title("ID");
        c.Bound(m => m.LocalID).Title("Local ID");
        c.Bound(m => m.GroupDate).Format("{0:d}").Title("Date")
            .ClientGroupHeaderTemplate("Date: #= kendo.toString(value, 'd') #   <button onclick='selectGridGroup(this);' class='btn btn-danger btn-sm'>Delete Items</button>");
        c.Bound(m => m.SubmitDate).Format("{0:d}");
        c.Bound(m => m.SettlementDate).Format("{0:d}").Title("Settle Date");
 
        c.Bound(m => m.FirstName);
        c.Bound(m => m.LastName);
        c.Bound(m => m.Company);
 
        c.Bound(m => m.SettlementAmount).Format("{0:C}").Title("Amount")
            .ClientGroupFooterTemplate("Sub-Total: #= kendo.toString(sum, 'C') #")
            .ClientFooterTemplate("Total: #= kendo.toString(sum, 'C') #");
        c.Bound(m => m.AdjustmentAmount).Format("{0:C}").Title("Adjustments")
            .ClientGroupFooterTemplate("Sub-Total: #= kendo.toString(sum, 'C') #")
            .ClientFooterTemplate("Total: #= kendo.toString(sum, 'C') #");
 
        c.Bound(m => m.InvoiceNumber);
        c.Bound(m => m.Description);
 
        c.Bound(m => m.TransactionStatus);
        c.Bound(m => m.Matched);.
        c.Command(m => m.Destroy()).Hidden();
    })
    .Groupable()
    .ToolBar(t => t.Pdf())
    .Pdf(p => p
        .AllPages()
        .Landscape()
        .PaperSize("Letter")
        .Title(@ViewBag.Title)
        .FileName(@ViewBag.Title + ".pdf")
        )
    .DataSource(d => d.Ajax()
        .ServerOperation(false)
        .PageSize(30)
        .Model(m => m.Id(i => i.Id))
        .Aggregates(a =>
        {
            a.Add(s => s.SettlementAmount).Sum();
            a.Add(s => s.AdjustmentAmount).Sum();
        })
        .Group(g => g.Add(a => a.GroupDate))
        .Destroy(r => r.Action("RemoveTransaction", "Report"))))

Daniel
Telerik team
 answered on 09 Jun 2015
1 answer
82 views
is there a way to make listview on create start from lets say page 5 of datasource so it is possible to scroll top and bottom for new pages. ( lets say datasource has 10 pages of items).
Petyo
Telerik team
 answered on 09 Jun 2015
1 answer
234 views

Hi, we use the grid to allow our user to "save" multiple views.  It can hide-show columns, sort it, freeze them, and switch from one to another.

Everything works fine for now, except for the "locked" column option.

If we modify one column locked property, then we call "setOptions" to change the view, after the next "setoptions", we always get a bug when trying to lock/unlock a column, or show-hide a column too.

You can try it: http://dojo.telerik.com/aJoNa/20

If you go from "opt1" to "opt2" in any order, everything is fine, until you pin a column.  

After, when you changing the option, you can't lock/unlock a column, or show-hide one without error.

Is it something I did wrong?

In our application scenario, we also set the datasource.data, datasource.sort with the "columns", when calling the setOptions.  But this demo show that, only with a set of columns and nothing more, I get the bug.

I documented the error I get in the "dojo".

Thank you

Rosen
Telerik team
 answered on 09 Jun 2015
1 answer
77 views

Is there a solution yet for setting a custom intervals for each step in the slider? I have a requirement for a slider that looks like this

3, 5, 10, 15, 20, 25, 30, 35, 39

Kiril Nikolov
Telerik team
 answered on 09 Jun 2015
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?