Telerik Forums
UI for ASP.NET MVC Forum
2 answers
129 views
Hi,

I wrote some codes like this getting the json data from the controller, which is working correctly:

        var data = new kendo.data.HierarchicalDataSource({
            transport: {
                read: {
                    url: "LoadActivityPermissions",
                    dataType: "json"
                }
            },
            schema: {
                model: {
                    id: "id",
                    children: "items"
                }
            }
        });
        $("#treeview").kendoTreeView({
            dataSource: data,
            dataTextField: "text",
            checkboxes: {
                checkChildren: true
            }
       
But for the checkboxes, the result is

when some of the children nodes' checkboxes are checked, the parent checkbox is still left unchecked (which is blank), but it should be like a " - " in the checkbox, which means some of its children are checked.

This happened only when I get the data from the "url" (controller).
 
In the attached shortcut, the checkbox for "RootActivity" should be filled in a " - ", which means some of its children have been checked.

Could anyone help me with this? It's very urgent for me.

Thanks and regards,

Charles























Blair
Top achievements
Rank 1
 answered on 08 Jul 2014
7 answers
201 views
Hello
I need to make a mouse multi date selection over the calendar and in best case over more then one calendar .
It must be possible  to do something like the image : http://img19.imageshack.us/img19/4718/calendarsp.png
It must be done in one selection by mouse.

1.I now it is not at the moment implemented in calendar , but is there a way to do it using the Drag-Drop functionality by example ..
2.Are there any plans for a multi selection in calendar?
3.How do I remove the functionality of the header ? I don't want to be possible to change the month and year and not by "prevent default" to the events ...
4.Is there a more interesting way to select the month ..currently I use the  .Value(DateTime.Parse("01-01-2013")) to show Jan month. Need something like ShowMonth("jan") or so  , because setting the value place the sellection mark on the specific day , I just need a month displayed with no possibility to change it ..
   
Dimo
Telerik team
 answered on 08 Jul 2014
1 answer
134 views
Hi All

I had some problem when using RadPivotGrid.

How to change those titles with underline?

i got a picture, please link to:
https://www.dropbox.com/s/q1bdw90af7z551i/001.png

Thank you for your help.

BRs
Ricson
ricson
Top achievements
Rank 1
 answered on 08 Jul 2014
5 answers
229 views
Hi there,

I am using the MVC scheduler month view for my project. I wanted to change the color of a day cell if it was a public holiday and am achieving this by using the Slots.each method in Scheduler databound event.

I also need to add a description on the day cell if it is a public holiday, How can i achieve this?

Is there a property that i can access in the slots.each method to set the description or title for the day cell.

Please help.

Cheers,

Chandra
Vladimir Iliev
Telerik team
 answered on 08 Jul 2014
2 answers
250 views
Hy,

I am using Kendo Tree View.

I am doing drag/drop and I need to persist the info to the db. 
Looking via the Kendo Plugin in Chrome.. I see  the  "4"  which was originally "1" after the move.  ( image attached)


Example: also see image attached.
4: Object{13}  //see via Kendo Plugin

I was thinking I could get this  value  for the children under the parent where the items moved (example  0-4 ) and I can pair up the actual id with this index to figure out the sort order for children for persistence.

Is there a way ... like in Grid which has index..... we can do the same in Treeview ?

Thanks.
Rick Nguyen
Top achievements
Rank 1
 answered on 08 Jul 2014
1 answer
99 views
Just browse to the MaskedTextBox demo on a windows phone and you'll see the MaskedTextBox isn't working properly. Not a big issue for us, but wanted to report this one ;) I used  a Nokia Lumia 925 windows phone 8 latest update.
Georgi Krustev
Telerik team
 answered on 07 Jul 2014
3 answers
181 views
Hi I am trying to learn ASP.NET MVC and Kendo so i am a bit new to all stuff about scripting etc and i need your serious help.

I have two questions. I have a one chart with date functions which can be sortable by months, dates and years. I can get  all values from chart with clicking "by months, by years, by dates etc" and than everything is quite okay to this point.

What i want is, I need a simple grid near of my chart. When user click chart's script functions("by months, by years, by dates etc".) user can get a dynamic simple grid with chart's values. How can i do that?

My another question is how can i show, first 6 months of 2014 and last 6 months of 2014 with clicking script functions. How can i add them to ".configuration-horizontal" div.

Thanks for your help.

Mychart:
<td>
 
        <div align="center" id="MyChart">
            @(Html.Kendo().Chart(Model)
.Name("MyChartz")
    .Title(title => title
                                .Text("Aaaaa)")
                    .Position(ChartTitlePosition.Top))
 
   .Legend(legend => legend
        .Visible(true)
        .Position(ChartLegendPosition.Top))
.Series(series =>
{
    series
        .Column(model => model.aaa, categoryExpression: model => model.DateTime).Name("aaa Dosyalar")
        .Aggregate(ChartSeriesAggregate.Count);
    series
       .Column(model => model.bbb, categoryExpression: model => model.DateTime).Name("bbb Dosyalar")
       .Aggregate(ChartSeriesAggregate.Count);
 
})
.CategoryAxis(axis => axis
    .Date()
    .BaseUnit(ChartAxisBaseUnit.Months)
    .MajorGridLines(lines => lines.Visible(false))
)
      .Tooltip(tooltip => tooltip
    .Visible(true)
             .Template("#= series.name #: #= value #"))
            )
 
        </div>
 
    </td>


Script
<script type="text/javascript">
    $(".configuration-horizontal").bind("change", refresh);
 
    function refresh() {
        var chart = $("#chartMesleki258").data("kendoChart"),
        series = chart.options.series,
        categoryAxis = chart.options.categoryAxis,
        baseUnitInputs = $("input:radio[name=baseUnit]"),
        aggregateInputs = $("input:radio[name=aggregate]");
 
        for (var i = 0, length = series.length; i < length; i++) {
            series[i].aggregate = aggregateInputs.filter(":checked").val();
 
        }
 
        categoryAxis.baseUnit = baseUnitInputs.filter(":checked").val();
 
        chart.refresh();
    }
</script>


Hristo Germanov
Telerik team
 answered on 07 Jul 2014
1 answer
69 views
I am a newbie with Kendo MVC helpers.  I cannot find the detail document of Kendo MVC helpers.

For instance, the only document what I found for DropDownListFor() is

http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/helpers/dropdownlist/overview

 

But this document doesn’t list all of method, such as Value(), OptionLabel(), nor explains the arguments of the method.

Where can I find the Kendo MVC helpers’ documents?

 

Thanks.

Dimo
Telerik team
 answered on 07 Jul 2014
1 answer
104 views
Id like to add a button to delete all records referenced in a Kendo paged and filtered grid (all paged records) abiding by any grid filters

Obviously Telerik MVC extensions abstracts the work it does with iqueryable at the controller by the use of the extension ToDataSourceResult and the [DataSourceRequest] DataSourceRequest request parameter

So the questions are,

Is it possible to somehow create a custom controller action and associated front end code to pass the current filtering regime

Is it then possible in the action to delete all records associated with that filtering.

i might have a paged grid with 1000 records (10 per page), filtered by productId, it would be nice to be able to create a custom toolbar button called "delete all", to delete all the matched filtered recordsPlease note, the toolbar button i can do,

however im not sure if you have access to iqueriable and DataSourceRequest mechanism in a way that might make this feasible
Vladimir Iliev
Telerik team
 answered on 07 Jul 2014
1 answer
502 views
I have a grid whereas the columns are defined as: 

.Columns(columns =>
{
    columns.Bound(b => b.Field);
    columns.Bound(b => b.OldValue);
    columns.Bound(b => b.NewValue);
    columns.Bound(b => b.DateImported).Format("{0:dd-MMM-yyyy}");
    columns.Bound(b => b.BuildingChangeValidationStatusType).ClientTemplate("#=BuildingChangeValidationStatusType.Value#").Width(250);
    columns.Command(command => command.Custom("Update").Click("updateValidation"));
    columns.Command(command => { command.Edit(); }).Width(172);
})

The BuildingChangeValidationStatusType client template is defined as: 

@model Rep.Models.BuildingChangeValidationViewModel
@(Html.Kendo().DropDownList()
    .Name("BuildingChangeValidationStatusType") // Name of the widget should be the same as the name of the property
    .DataValueField("Id")
    .DataTextField("Value")
    .BindTo((System.Collections.IEnumerable)Model.BuildingChangeValidationStatuses)
)


I am wanting to pass the model for each row to the client template since each row will contain its own lookup values.  How can I accomplish this? 

Vladimir Iliev
Telerik team
 answered on 07 Jul 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?