Telerik Forums
UI for ASP.NET MVC Forum
1 answer
132 views
I have tried to add an item to treeview when user click expand icon.  But it doesn't work.

Please help.

function onExpand(e) {
  var expandedNode = e.node;
 if (expandedNode.length == 0) {
      expandedNode = null;
}
treeview.append({
text: 'newNode'
}, expandedNode);

}
Yingyi
Top achievements
Rank 1
 answered on 09 Aug 2013
2 answers
262 views
I need to determine whether an item has children or not.
Any easy way to do it?

Thanks.

Yingyi
Yingyi
Top achievements
Rank 1
 answered on 09 Aug 2013
5 answers
219 views
Hi there,

I am currently mocking up a demo of a chart. I have attached an image.

I need to replace the numbers on the right axis with labels.

For example,
0 will be Nil
5 will be Bronze
10 will be Silver
15 will be Gold
20 will be Platinum
25 will be Diamond

How can I show labels for that right axis instead of the numbers?

Regards,
Tony
Iliana Dyankova
Telerik team
 answered on 09 Aug 2013
1 answer
231 views
Hello,
after some initial test with Kendo UI and the reading  a book of Freeman about MVC I've decided to put struff toghether... but I've still some hiden point I've to finish analyzing...

First : Does Kendo UI supports Entity Framework (in the specific case IdeaBlade's Devforce implementation)? I've tried with a single Entity and it was ok, added a relational one and the view doesn't load data anymore...

Second: I've read I can use the Async ActionResult for MVC ...beign a fan of It I was wondering how should I load the data with KendoUI , consider for example this ActionResult

    public async Task<ActionResult>  GetClientiAsync([DataSourceRequest]DataSourceRequest request)
        {
            IQueryable<I_CLIENTI> dataResult = await  clientiRepository.GetAllClientiAsync();
            DataSourceResult res = dataResult.ToDataSourceResult(request);

            return Json(res, JsonRequestBehavior.AllowGet);
        }
Third : On the book I've seen it uses the View(<model>)  returned... in some of your example you use Json to return data passing [DataSourceRequest] and as far I've understood it's in order to bind the kendo object on the View... What have I to use so?

Thanks
Petur Subev
Telerik team
 answered on 09 Aug 2013
4 answers
437 views
hi

i have some specific requiremnet for client... i have to diplay company name on top of ther page and detail in below portion.

i use normal html control on top page and Kendo grid in detail portion. but i don't know how to pass whole model on controller on save.
my model is like below...

public class Company 
     {
        public string Company { get; set; }
        public IEnumerable<Person> Clients { get; set; }
    }

  public class Person
    {
        [UIHint("Integer")]
        public int PersonID { get; set; }
        [Required]
        public string Name { get; set; }
    }


on view page i declare model like this
@model  MyData.Company 
////////
//
@using (Html.BeginForm())
{  
    @Html.EditorFor(x => x.Company);

////

Kendo grid

 @(
        Html.kenogrid(Model.Person)///////

can you please help me or give sample working application based on my this model.


it will vary help full me to develop my mvc application with this control



thanks




javal patel
Top achievements
Rank 1
 answered on 09 Aug 2013
1 answer
371 views
Hi,

I have just installed the Kendo UI for ASP.NET MVC extensions into my VS 2012 and have a small issue.  It seems in general to have installed ok but when I try to create a Kendo project and I'm shown the Project Configuration Wizard, the drop down box directly underneath the Kendo UI for ASP.NET MVC Project Settings title is empty.  When I click on the download button I get a dialogue box saying "Error retrieving latest version information. Please, try again or contact the Telerik team."

Have I done something wrong?  I'm a bit of a newb at this so any pointers would be greatly appreciated.

Thanks.
Jonathan.
Vesko
Telerik team
 answered on 09 Aug 2013
3 answers
118 views
I have 12 calendar on 2 <TR> in my view (6 calendars/TR)
I need the calendar smaller so they all have the style :     .calendar {width: 150px;   height: 200px;}

@(Html.Kendo().Calendar().Name("YearCalendarMay")
.Min(new DateTime(Model.Year.Year,5,1)).Max(new DateTime(Model.Year.Year,5,31))      
 .Footer(" ").MonthTemplateId("cellTemplate").HtmlAttributes(new { @class = "calendar" })                             
        )


I have the problems shown in the picture,probably because I set the Min and Max properties  :

http://img825.imageshack.us/img825/5164/iud2.png


And I try as you suggested to disable the click on title navigation but I'm missing something

$(document).ready(function () {
        $("YearCalendarMay.k-nav-fast").off("click").css("cursor", "default");
        $("#YearCalendarMay.k-nav-fast").on("click", false);
    }); 

I will appreciate some if you can help me please ..
Dimo
Telerik team
 answered on 09 Aug 2013
2 answers
212 views
Hello again,
Can i add checkbox as a column header ,and also as a column in the grid?
and when i check that header column,it checks every row,something like delete all in the yahoo mail,or hotmail?

Thanks in advance for any suggestion,
Regards Daniel
Daniel
Top achievements
Rank 1
 answered on 09 Aug 2013
0 answers
105 views
I just created my own ViewModel for setting up a Line Chart that I configure with the appropriate settings, AJAX Controller, Action, Event javascript functions, Series Names, etc.  This is so I can easily configure the charts and send them to a common line chart partial page.  This seems to work well for me given that I've got a dashboard page with many charts on it and this seems to be a cleaner (and more flexible) way to do it compared to hardcoding each chart and its setup individually (iterate over the collection of ViewModels and create chart partial page for each one).  I was thinking that it would be nice if Kendo had something like this for us to we wouldn't have to create it ourselves.

My next task is the grid and clearly, there is a lot of complexity there.  I'm hoping I can reuse something that already exists.

Thanks in advance.
Ed
Top achievements
Rank 1
 asked on 08 Aug 2013
3 answers
363 views
My Kendo grid is not Ajax binding.  My code mimics what is in your examples exactly, so I can't see the problem.
The grid:
@(Html.Kendo().Grid<LedgerEntryViewModel>()
 .Name("grdItems2")
 .DataSource(datasource => datasource
 .Ajax()
 .Read(read => read.Action("GeneralLedgerEntries", "GL").Data("gridBindingData"))
 .PageSize(10)
 )
 .Columns(col =>
 {
col.Bound(c => c.AccountingEventName).Title("Accounting Event").HtmlAttributes(new {style = "white-space:nowrap;width:50%;"});
 })
 .Sortable()
 .Pageable()
 )

I can see in Fiddler that the controller code is returning the correct JSON to the page: 
public ActionResult GetEntries(string accountType, int? categoryID, int? accountID, int? year, int? month,
 [DataSourceRequest]DataSourceRequest request)
 {
var list = new List<LedgerEntryViewModel>();
 
list = _gridHelpers.GetAccountEntriesWithRunningTotal(accountType, accountID.Value);
 
DataSourceResult result = list.ToDataSourceResult(request);
var json = Json(list, JsonRequestBehavior.AllowGet);
 return json;
 }    
Daniel
Telerik team
 answered on 08 Aug 2013
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
Security
Wizard
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?