Telerik Forums
Kendo UI for jQuery Forum
1 answer
147 views
Hello,

we just faced a strange behavior with the Kendo UI Grid. We populated a Grid with no datasource at first. After some user action we change the datasource via jQuery like this: 

grid.kendoGrid({
dataSource : {
transport : {
read : {
url : "DrilldownReportApiRandom?type=" + type + "&id=" + id,
dataType : "json"
}
},
schema : {
data : "data",
total : "total"
}
}
});

We got one hidden column in the grid and after applying the datasource, the data of the hidden column will be shown, but not the colum title itself. This column gets the title of the first visible column, and the last correct column is missing the title. Strange uhh? 

Can anyone explain why?

The grid looks like this:

<kendo:grid name="grid_drilldown_adgroup" pageable="true">
<kendo:grid-pageable buttonCount="10" pageSizes="true"></kendo:grid-pageable>
<kendo:dataSource pageSize="10" serverPaging="true"></kendo:dataSource>
<kendo:grid-columns>
<kendo:grid-column hidden="true" title="campaignId" field="campaignId"></kendo:grid-column>
<kendo:grid-column template='<a class="adgroup_column" group="#=group#">#=group#</a>' title="group" field="group" ></kendo:grid-column>
<kendo:grid-column title="bidSMImpressions" field="bidSMImpressions" ></kendo:grid-column>
<kendo:grid-column title="bidSMClick" field="bidSMClick" ></kendo:grid-column>
<kendo:grid-column title="bidSMClicksPerBidSMImpression" field="bidSMClicksPerBidSMImpression" ></kendo:grid-column>
<kendo:grid-column title="bidSMCostPerBidSMClick" field="bidSMCostPerBidSMClick" ></kendo:grid-column>
<kendo:grid-column title="bidSMCost" field="bidSMCost" ></kendo:grid-column>
</kendo:grid-columns>
</kendo:grid>

Thanks in advance.

Jan
Dimo
Telerik team
 answered on 29 May 2014
3 answers
279 views
I am using the following code to dynamically set the report source for the HTML5 / MVC viewer. Unfortunately although I can change the current report using the dropdownlist - when the report loads the parameter area stays disabled, do I cannot modify the report parameters from their defaults. Seems to be a CSS issue - how can I fix?

Regards

Ian

@model CLOCS.Models.ReportsViewModel
 
@{
    ViewBag.Title = "Reporting";
}
 
<h2>Reports</h2>
 
@*<div class="form-group">*@
    @Html.LabelFor(model => model.SelectedReportName, htmlAttributes: new { @class = "control-label col-md-2" })
    <div class="col-md-10">
        @Html.Kendo().DropDownListFor(m => m.SelectedReportName).Name("reportDropDown").BindTo(Model.ReportClassNamesList).OptionLabel("Select Report")
        @Html.ValidationMessageFor(model => model.SelectedReportName, "", new { @class = "text-danger" })
    </div>
@*</div>*@
 
 
@section styles
{
    <link href="ReportViewer/styles/ReportViewer-8.0.14.225.css" rel="stylesheet" />
<link href="/kendo/styles/kendo.common.min.css" rel="stylesheet" />
<link href="/kendo/styles/kendo.blueopal.min.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
 
    <style>
        #reportViewer1 {
            position: absolute;
            left: 5px;
            right: 5px;
            top: 180px;
            bottom: 5px;
            overflow: hidden;
        }
    </style>
}
 
 
@section scripts
{
    <script>
        $(document).ready(function () {
            $("#reportDropDown").change(function () {
                var value = $(this).val();
                if (value && value != "") {
                    var viewer = $("#reportViewer1").data("telerik_ReportViewer");
                    viewer.reportSource({
                        report: "CLOCS.Reporting." + value + ", CLOCS.Reporting"
                    }
                    );
                    viewer.refreshReport();
                }
 
 
            });
 
        });
    </script>
    <script src="ReportViewer/js/ReportViewer-8.0.14.225.js"></script>
}
 
@(Html.TelerikReporting().ReportViewer()
       .Id("reportViewer1")
       .ServiceUrl("/api/telerikreports/")
       .TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
       .ReportSource(new TypeReportSource() { TypeName = "CLOCS.Reporting." + Model.SelectedReportName + ", CLOCS.Reporting" })
       .ViewMode(ViewModes.INTERACTIVE)
       .ScaleMode(ScaleModes.SPECIFIC)
       .Scale(1.0)
       .PersistSession(false)
)
Stef
Telerik team
 answered on 29 May 2014
3 answers
441 views
Hi there,

I got some problems with grouping in my grid and couldn't find a proper solution yet.
What I need is to be able to group my elements in the grid AND also do lazy loading (IQueryable, ToDataSourceResult,...). I already tried a couple of things, but I didn't come up with a solution.
If I have one property to group by, I do so on serverside like "queryable.GroupBy(x=> x.MessageCategory)" but then I run into this error:
"Invalid property or field - "MessageCategory" for type: IGrouping`2"

If I do "request.Groups.Clear()" afterwards, I do get a sqlexception, because I cannot select x columns but only group by one.

So is there any possibility to do a grouping serverside, with lazy loading?

When I configure my grid to ".ServerOperation(false)", grouping works fine, but then I do not have any paging(lazy loading) anymore.

Thank You!
Daniel
Telerik team
 answered on 29 May 2014
4 answers
261 views
I'm trying to find the right settings to get a Bar Sparkline to fill a div with just the bar image and no padding, white space or anything else around it. I've set the following, which gets close, but clips some of the image. Is there a way to do this?

<div id="files-format-chart" style="width:1120px;line-height:30px;cursor: pointer;"></div>

$("#files-format-chart").kendoSparkline({
    type: "bar",
    chartArea: {
        opacity: 0,
        margin: 0
    },
    plotArea: {
        opacity: 0,
        margin: 0
    },
    series: /*array of series*/,
    valueAxis: {
        max: /*max value of series data to avoid space*/
    }
});




Josh
Top achievements
Rank 1
 answered on 28 May 2014
2 answers
685 views
Hi,

Is it possible to change the style of splitter arrow like make it bigger, more intuitive? Also, how to increase the width of the divider between the panes. wanted to make it more wider.

Thanks,
Deepak
Will
Top achievements
Rank 1
 answered on 28 May 2014
2 answers
415 views
I have a mobile app.
One of the views structure looks like this:
(the view's data-stretch attribute is set to false! otherwise my whole layout goes crazy)

Large ScrollView:
  -> page1:
         -> a chart      
         -> and below a grid
  -> page2:
         -> some buttons, a date picker
         -> a chart      
         -> and below a grid
  -> page3:
         -> a ListView:
                  -> some text
                  -> an input
                  -> a small ScrollView with some pictures 
I have issues with the last small ScrollView. I initiate this ScrollView only when it's into view (when the large ScrollView scroll event fires on third page).
The problems is it doesn't have any size, but when I resize the browser window the pictures show up and everything works ok.
If I statically define the ScrollView with no databinding, it also works without having to resize the browser window.
Below is the code generated when i dinamically initiate the scrollview. The problems seems to be with the second div which has height:1px
<li>
                    <div id="meterImageGallery" data-role="scrollview" class="km-widget km-scrollview"><div style="height: 1px; -webkit-transform-origin: 0% 0%;"><div class="km-virtual-page" style="width: 326px; -webkit-transform: translate3d(-326px, 0px, 0px);"></div><div class="km-virtual-page" style="width: 326px; -webkit-transform: translate3d(0px, 0px, 0px);">
<img class="meter-image" src="../ViewerService.svc/GetObjectImageById?id=485">
</div><div class="km-virtual-page" style="width: 326px; -webkit-transform: translate3d(326px, 0px, 0px);">
<img class="meter-image" src="../ViewerService.svc/GetObjectImageById?id=1067">
</div></div><ol class="km-pages"><li class="km-current-page"></li><li></li><li></li></ol></div>
                </li>




Kiril Nikolov
Telerik team
 answered on 28 May 2014
1 answer
146 views
Actually, Kendo is a best framework of JS, I always like to use it. but I even don't know how to replace one of kendo's widgets's CSS by myself. please help me out. thanks
Sebastian
Telerik team
 answered on 28 May 2014
1 answer
613 views
Hey,

on my main page, i'm using a kendo scheduler widget which works as expected. Here i'd like to customize the edit popup with special fields i need. Here a short look at the scheduler source:

var kScheduler = new kendo.ui.Scheduler($("#scheduler"), {
    dataSource: dsScheduler,
    editable: {
        template: kendo.template($("#schedulerTemplate").html())
    }
});

And here is my template source:

<script type="text/x-kendo-template" id="schedulerTemplate">
    <label>Beginn:</label>
    <input name="start" type="text" required data-type="date" data-role="datetimepicker" data-bind="value: start,invisible: isAllDay" />
    <input name="start" type="text" required data-type="date" data-role="datepicker" data-bind="value: start,visible: isAllDay" />
    <br />
 
    <label>Ende:</label>
    <input name="end" type="text" required data-type="date" data-role="datetimepicker" data-bind="value: end ,invisible:isAllDay" />
    <input name="end" type="text" required data-type="date" data-role="datepicker" data-bind="value: end ,visible:isAllDay" />
    <br />
 
    <label>Titel:</label>
    <input name="title" type="text" required data-type="string" data-bind="value: title" />
    <br />
 
    <label>Beschreibung:</label>
    <textarea name="description" data-type="string" data-bind="value: description" />
    <br />
 
    <input id="combobox_AppointmentOwner" name="appointmentOwner" />
    <br />
 
    <label>Ganztägig</label>
    <input type="checkbox" name="isAllDay" data-type="boolean" data-bind="checked:isAllDay">
    <br />
 
    <label>Öffentlich</label>
    <input type="checkbox" name="PublicEvent" data-type="boolean" data-bind="checked:PublicEvent">
    <br />
</script>

The "combobox_AppointmentOwner" is the DOM element i'd like to bind to a kendo ComboBox. But the widget doesn't initialize and makes a combox out of the input field. On my main page i have a kendo ComboBox which is working properly, so this here is about initializing a kendo widget inside a template. What's the secret to solve this problem?

Regards,
Michael
Petur Subev
Telerik team
 answered on 28 May 2014
4 answers
639 views
After either creating or saving a record in a kendo grid, I need that record selected so that I can populate (or clear) a couple of child grids.  This code doesn't work:

    function gridJobRequestEnd(e) {<br>        if (e.type == "update" && e.response.Data != null) {<br>            var gridJob = $("#gridJob").data("kendoGrid");<br>            var job = gridJob.dataSource.get(e.response.Data[0].JobKey);<br>            var tr = $("[data-uid='" + job.uid + "']", gridJob.tbody);<br>            gridJob.select(tr);<br>        }<br>    }

I have verifed (using alerts) that the JobKey is as expected and "tr" is a valid row.  However the row is never selected.  Is there another way to do this?
Dimiter Madjarov
Telerik team
 answered on 28 May 2014
1 answer
122 views
HI 

Is there any way to implement Multi Level Child Grids using asp.net MVC 4 Kendo UI?

I have been trying but the nearest i can get is 3rd Level child. which is kind of hard coded way.

Please let me know 

Thanks
Vladimir Iliev
Telerik team
 answered on 28 May 2014
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
Drag and Drop
Map
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?