Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views

I set Scheduler to bind with a WebService (c#) like source below,

but WebService  need a date with parameter, how can do ?

and when click prev,next, and datepicher button, how rebind with correct parameter ?

 

 

dataSource: {

batch: true,
transport: {
read: {
url: "/WebServices/LessonsTimeGrid.ashx",
dataType: "json"
},

...

...

Vladimir Iliev
Telerik team
 answered on 22 Sep 2015
2 answers
630 views

I have a hierarchy grid controlled by a TabStrip. I need to pass additional parameters, such as the TabStrip value, to the child Grid read action method.

For example

.Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#", TabStip​Value = value}))​

I know you can pass parameters using a javascript function with

.Data("javascriptFunction")

But I am not sure how to pass the template expression to that function. 

Below is the code I am using​

<div id="dataEntryContainer">
    @(Html.Kendo().TabStrip()
        .Name("sitetabs")
        .Items(tabstrip =>
        {
            bool selected = true;
            foreach (var site in Model.Sites)
            {
                tabstrip.Add().Text(site.Name)
                    .Selected(selected)
                    .Content(@<text>
                    @(Html.Kendo().Grid(Model.Categorys)
                        .Name("grid_" + site.DisplayName)
                        .Columns(columns => { columns.Bound(c => c.Name).Title(""); })
                        .Events(events => events.DataBound("dataBound"))
                        .ClientDetailTemplateId("metricgroup-template")
                        .DataSource(dataSource => dataSource
                            .Ajax()
                            .Read(read => read.Action("HierarchyBinding_Categorys", "DataEntry"))
                        )
                    )
                </text>
                );
                selected = false;
              }
          })
          .Events(events => events.Select("onSelect"))
    )
</div>
  
<script id="metricgroup-template" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<BalancedScorecardManagement.Models.vMetricGroup>()
            .Name("grid_#=CategoryKey#") // template expression, to be evaluated in the master context
            .Columns(columns =>
            {
                columns.Bound(m => m.MetricGroupLabel).Title("");
            })
            .DataSource(dataSource => dataSource
                .Ajax()
                .Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#" }))
            )
            .Events(events => events.DataBound("dataBound"))
            .ClientDetailTemplateId("metric-template")
            .ToClientTemplate()
    )
</script>
Blake
Top achievements
Rank 2
 answered on 22 Sep 2015
3 answers
700 views

I have a hierarchy grid controlled by a TabStrip. I need to pass additional parameters, such as the TabStrip value, to the child Grid read action method.

 For example 

.Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#", TabStipKey = key }))​

 

I know you can pass parameters using a javascript function with 

.Data("javascriptFunction")

But I am not sure how to pass the template expression to that function. 

 

Below is the code I am using

<div id="dataEntryContainer"><br>    @(Html.Kendo().TabStrip()<br>        .Name("sitetabs")<br>        .Items(tabstrip =><br>        {<br>            bool selected = true;<br>            foreach (var site in Model.Sites)<br>            {<br>                tabstrip.Add().Text(site.Name)<br>                    .Selected(selected)<br>                    .Content(@<text><br>                    @(Html.Kendo().Grid(Model.Categorys)<br>                        .Name("grid_" + site.DisplayName)<br>                        .Columns(columns => { columns.Bound(c => c.Name).Title(""); })<br>                        .Events(events => events.DataBound("dataBound"))<br>                        .ClientDetailTemplateId("metricgroup-template")<br>                        .DataSource(dataSource => dataSource<br>                            .Ajax()<br>                            .Read(read => read.Action("HierarchyBinding_Categorys", "DataEntry"))<br>                        )<br>                    )<br>                </text><br>                );<br>                selected = false;<br>              }<br>          })<br>          .Events(events => events.Select("onSelect"))<br>    )<br></div><br><br><script id="metricgroup-template" type="text/kendo-tmpl"><br>    @(Html.Kendo().Grid<BalancedScorecardManagement.Models.vMetricGroup>()<br>            .Name("grid_#=CategoryKey#") // template expression, to be evaluated in the master context<br>            .Columns(columns =><br>            {<br>                columns.Bound(m => m.MetricGroupLabel).Title("");<br>            })<br>            .DataSource(dataSource => dataSource<br>                .Ajax()<br>                .Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#" }))<br>            )<br>            .Events(events => events.DataBound("dataBound"))<br>            .ClientDetailTemplateId("metric-template")<br>            .ToClientTemplate()<br>    )<br></script>​

Blake
Top achievements
Rank 2
 answered on 22 Sep 2015
1 answer
115 views

Hi everyone

 I have a kendo grid with a custom popup editor. 

 On this editor I have a async upload to add more files, but when adding files it never fires the update ActionResult. I have to manually change some values of the other model fields before it fires?

 I have even set a model value via jQuery when a file is uploaded, but it seems it ignores changes via jquery.

 Please advise.

 Thank you.

Alex Gyoshev
Telerik team
 answered on 22 Sep 2015
1 answer
141 views

Hi,

I'm trying to create a timeline of meeting schedules based on grouping buildings, floors and room. I was able to group floors and rooms but how can i include building into the picture as seen in the attached image.

 

Vladimir Iliev
Telerik team
 answered on 22 Sep 2015
3 answers
341 views

Hi! 

I want to use this example:
http://docs.telerik.com/kendo-ui/web/scheduler/how-to/custom-edit-and-event-templates
But in ma case I want 'Owner' to be selected in edit mode, ie. when I click some event I see (in edit mode) 'Owner' is not selected, although on main schedular it shows as e.g "Alex".

Could you tell me how can I do this?

Vladimir Iliev
Telerik team
 answered on 22 Sep 2015
6 answers
1.0K+ views

Hi! Is there a suggested way to keep the selected row of a grid after an operation of filtering, grouping or sorting? 
I've searched for something similar and the suggestion that I've found is to keep the grid state on a cookie, but I think that's too much, I mean, for save only a row (maybe only an ID) use a cookie is too expensive.

Thank you,

Mattia

Anca
Top achievements
Rank 1
 answered on 22 Sep 2015
1 answer
82 views

If a value does not exist in the list, is there a way to type in the textbox and add a new answer that way? The answer would display in the textbox just like if you had selected one from the list (with the 'x' next to the item). Basically, I am looking for a way to specify an 'other' value.

 

Thank you.

Matt

Kiril Nikolov
Telerik team
 answered on 22 Sep 2015
3 answers
217 views

Hello. The popup is shifted, when bootstrap theme is applied.

please, open attached "ie.png" to see the problem.

Also it is repeatable on dojo. http://dojo.telerik.com/uqoFa

What is wrong in applied stiels?

 My styles looks like below:

    <link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.common-bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.dataviz.min.css" />
<link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.dataviz.bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/css_kendo/main.css" />

 

 

But it would be enough to fix it in http://dojo.telerik.com/uqoFa 

Thanks in advance.

Petyo
Telerik team
 answered on 22 Sep 2015
3 answers
185 views

Hi,

I'm using drawing.drawDOM to create a PDF. I have to make a table of contents in the beginning of the PDF. I've got two issues:

- How do I link to another section of the PDF? <a href="#conclusion">Conclusion</a> and then later <a name="conclusion"></a> doesn't seem to work :-/

- How do I figure out on which page a specific part of the document is being rendered? In my TOC I would like to say "Conclusion....page 22".

I hope you can help me :-)

Thanks!

Kiril Nikolov
Telerik team
 answered on 22 Sep 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?