Telerik Forums
UI for ASP.NET MVC Forum
1 answer
106 views
The ASP.NET Ajax tools had an input control that supports text-masks, but I do not see an analogous control in the Kendo suite. Is there a control that allows me to specify text masks that may include non-numerics?
Sebastian
Telerik team
 answered on 11 Dec 2012
2 answers
404 views
hi
My Data doesn't load in tree view.

please see my source code first.

Controler:
public JsonResult LoadOrganizationChart([DataSourceRequest] DataSourceRequest request)
        {
            var employee = EmployeSystemEntityOperator.GetEntityListOf<OrganizationChart>();
            DataSourceResult result = employee.ToDataSourceResult(request);
            return Json(result,JsonRequestBehavior.AllowGet);
        }

View:
@using Kendo.Mvc.UI
@model IEnumerable<Ets.Data.EmployeeSystem.OrganizationChart>
 
@(Html.Kendo().TreeView().Name("treeview")
      .DataTextField("NodeName")
      .DataSource(dataSource => dataSource.Read(read => read.Action("LoadOrganizationChart", "OrganizationChart")))
      )

i trace the result with firebug and attach the image.
i see my data in Firebug --> Net -->XHR --> Json
but my data don't show in tree view.
Any One?? Any Idea???
Hari
Top achievements
Rank 1
 answered on 10 Dec 2012
3 answers
496 views
I'm currently using the grid control with the edit mode set to popup. When I click the add button I get the form based on my model. In this case I have several string fields defined that it turns into input text boxes.  Clicking the first field with the mouse gives focus to the field, when I edit the field it updates the model. Then clicking with the mouse on the next field doesn't cause the field to gain focus and therefore any changes made are not in the model. (if I were to doubleclick the second field it would resolve this problem). Clicking the update button causes only data from the first field to be submitted. 

This issue seems to occur on IE and on touch devices (i.e. IPad, IPhone), however works correctly in Firefox and Chrome. 

This can easily be reproduced on your own demos > Grid > popup editing
Click "Add new record"
With the mouse click and edit the unit price box. Type in a number using the keyboard (not the up/down arrows). 
Then with the mouse click on the product name input box and enter some text. 
With the mouse click "Update"
See that on the grid only the unit price was saved correctly, the product name appears blank. 

Also, if you start with the product name box, click it and add text. Then with the mouse click in the text area of the unit price combo box it did not actually become editable. A second click is required to allow text to be entered. 

I'm currently using version v2012.3.1114 of both 
kendo.web.min.js
kendo.aspnetmvc.min.js

And have tried both 1.8.2 and 1.8.3 versions of jquery. 


Dimo
Telerik team
 answered on 10 Dec 2012
1 answer
311 views
I have a Hierarchy style Kendo grid and the inner grid doesn't seem to accept client templates. (I stripped the code irrelevant grid configuration columns out )  
I really would like the client template to be something like
        <a title="#=AlarmStatusDescription#">#=AlarmStatus#</a>`   but anytime I put anything other than a simple string in the ClientTemplate, the whole grid fails to load.        
   
I've tried 
ClientTemplate(#:AlarmStatus#)
.ClientTemplate(#=AlarmStatus#)
.ClientTemplate(<div class="myclass"></div>) with a separate <script type="text/html" id="myclass">#=AlarmStatus#</script>


   

  
@(Html.Kendo().Grid<AccountModel>()
                   .Name("Accounts_#=Id#")
                   .Columns(columns =>
                                {         
    columns.Command(command => command.Custom("Details").Click("showDetails")).Width(75);
    columns.Bound(o => o.AccountName).Width(150);                 
    columns.Bound(o => o.AlarmStatus).Width(100).ClientTemplate("#:AlarmStatus#");`
            
                                    })
                       .DataSource(dataSource => dataSource
                           .Ajax()
                           .Model(model =>{model.Id(p => p.AccountId);})
                           .Read(read => read.Action("DetailRead", "Csr", new { personId = #=Id#" }))
                       )
                       .Editable(editable => editable.Mode(GridEditMode.PopUp))
                       .ToClientTemplate()
               )


Chad
Top achievements
Rank 1
 answered on 08 Dec 2012
2 answers
183 views
Hi,
here i am attaching Grid image file,please try to give possible solution as soon as possible.i want to set backGround color of row(which consist all 0's) as well as i need to hide total row values (which consist 0)...

Thanks&Regards,
parsanamoni.
Atanas Korchev
Telerik team
 answered on 07 Dec 2012
1 answer
137 views
I have a scrolable, pageable grid which I add to MVC view via html kendo helper with selectable page size

@(Html.Kendo().Grid(Model.AvailableEmployees).Name("EmployeeGrid").Columns(cols =>
{
    cols.Bound(...).
    ClientTemplate("<input type=\"checkbox\" class=\"check_select\" data-id='#= data.ID #' />").
    HeaderTemplate("<input type=\"checkbox\" id=\"headerCheck\" />").Sortable(false).Filterable(false).Width(50);
    cols.Bound(...).HeaderTemplate(...).Width(150);
...
})
.HtmlAttributes(new { style = "width:90%;" })
.Pageable(
    pager => pager.PageSizes(new int[] { 20, 50, 100 })
)
.Sortable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
.Selectable
            (selectable => selectable.Mode(GridSelectionMode.Multiple)))

However, when the grid renders it always displays 10(???) users per page on initial render.  And chages it to correct number once you start changing the options on the page size dropdown.  How to make it display the correct number on the first render?
Vladimir Iliev
Telerik team
 answered on 06 Dec 2012
1 answer
138 views
I have a grid that is generated by a template.  How do I reference that grid from my javascript? I am trying to do this to enable editing of a column value on Create but not on Edit.  If there is an easier/better way to do that, I would appreciate your help. Either way, I'd still like to know how to reference the other grid.

My template name and grid name are setup as follows:
<script id="npisTemplate" type="text/kendo-tmpl">
<%: Html.Kendo().Grid<MyModel>()
.Name("Abc_#=PersonId#")
//.............
</script>
And I have tried various ways of referencing it but all generate an error:
<script>
      $("#Npi_#=FacilityAbbreviation#").kendoGrid()...  // error
      $("Npi_#=FacilityAbbreviation#").kendoGrid()...  // error
</script>

Thanks in advance for your help
Petur Subev
Telerik team
 answered on 06 Dec 2012
3 answers
164 views
Project Type: ASP.Net MVC4

In _Layouts folder:
@Styles.Render("~/Content/kendo")

In Bundles config:
 bundles.Add(new StyleBundle("~/Content/kendo").Include(
                        "~/Content/kendo/2012.3.1114/kendo.common.min.css",
                        "~/Content/kendo/2012.3.1114/kendo.default.min.css"));

It is working, when in web.config <compilation debug="true" targetFramework="4.0"/>

But rendered as blank file on browser when <compilation debug="false" targetFramework="4.0"/>


Atanas Korchev
Telerik team
 answered on 06 Dec 2012
1 answer
198 views
In my database menu items are configured in database with user access rights.
I want to add menu item logic to my Controller action or say want to create complete Menu object in controller and generating Kendo menu in View().

How to do that? Is it possible ?
Daniel
Telerik team
 answered on 06 Dec 2012
2 answers
194 views
I've got a Grid with a Custom popup template that contains an Editor control. When clicking the update button with HTML the page doesn't close and when debugging the controller action the breakpoint is never hit as an exception occurs during model binding (I think). When just entering plain text with no markup the model binding works correctly, the window closes and everything is peachy. I've attached a sample project to demonstrate. Try saving with just normal text and then try using HTML in the editor.
Any resolution\work around\ explanation of what I'm doing wrong would be appreciated.

Rob
Robert
Top achievements
Rank 1
 answered on 05 Dec 2012
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
Dialog
MultiColumnComboBox
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?