Telerik Forums
UI for ASP.NET MVC Forum
3 answers
124 views
please see the print of my browser. I could not download de offline version of mvc trial.
Yana
Telerik team
 answered on 11 Sep 2014
1 answer
261 views
Hi all,

I have a discount % field that's a nullable int, and uses an up/down editor.  Users want to show "None" in the field when the value is null, and want to be able to select "None" in addition to values 0 - 100 when editing the field.  Is there a feature in place to display a default value for null?

As it stands, it shows empty in the grid, and you can clear the text in the editor to revert back to null.  It works functionally, but may not satisfy the request.

If the feature doesn't currently exist, what would be the best way to go about enhancing the up/down control to enable it?

Thanks!
Alexander Popov
Telerik team
 answered on 11 Sep 2014
2 answers
261 views
Hi,

When running the Create, Read, Update, Destroy events. I want to pass in the value of  $("MasterAccountID") to the controller. I can't figure out how to do with, without writing the JavaScript manually.

<input type="textbox" name="MasterAccountID"  id="MasterAccountID" />
@(Html.Kendo().Grid<Ownership>() // Specify the type of the grid
                .Name("Ownership")
                .Columns(columns =>
                {
                    columns.Bound(o => o.AccountName);
                    columns.Bound(o => o.AccountNumber);
                    columns.Bound(o => o.Percent);
                    columns.Bound(o => o.Status);
                    columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
                })
 
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .ServerOperation(true)
                    .PageSize(20)
                    .Model(model =>
                    {
                        model.Id(o => o.AccountNumber);
                    })
 
                    .Read(read => read.Action("Ownership_Read", "Owner", [PASS TEXTBOX VALUE]))
                )
        )
Dimiter Madjarov
Telerik team
 answered on 11 Sep 2014
1 answer
87 views
We use the Grid View and the associated popup editor templates to good effect.

However, there are a number of situations where we need to be able to view or edit a specific item on the Grid but without necessarily going via the Grid.

e.g. You have a:
Grid with associated Editor Windows for Events, Actions and other items
A list of Notifications which includes links to any of these, and shown via a UL list

Each one needs to link to the specific Action, Event etc, not to a grid of multiple Actions, Events etc. Ideally, we're looking for a View that will support editing and viewing, both directly from a Grid and not from a Grid.

Has anyone had experience of doing this and any recommendations for achieving it.

Thanks,

Chris.
Dimo
Telerik team
 answered on 11 Sep 2014
2 answers
133 views
Hi,

I'm looking for a way to detect that a user has keyed in an invalid date into a date time picker control where having a blank/nullable date IS valid.  Currently, I cannot tell the difference (looking at a model object) if a user cleared the date or typed the word "dog" into the text box rather than a valid date format because both appear as null.  I've tried using the element's change event, but it doesn't fire if the initial value is null (blank), which makes since if it evaluates "dog" as a null (there would be no change for its initial value of null).  

I thought perhaps a validator was the correct way of handling this.  When I change an item in my observable array the change event is fired by the array, I then called myValidator.validate() method, but it always returns true.  Also, the validator itself runs AFTER the observable array's change method. Since myValidator.validate() returned true, I save the data to the server.  Once the validator does fire, it validates the date field and thinks it is invalid.  This leaves me with a word like "dog" sitting in my date time picker and a null getting sent to the server.

How can I tell my user that "dog" isn't a proper date and prevent it from going to the server?

Dave
Dave
Top achievements
Rank 1
 answered on 10 Sep 2014
2 answers
362 views
I picked the Row filtering mode because my users want to be able to see the filters all the time, but there's a bit of a problem.

The second the user starts typing something into a filter, the page starts to refresh itself. If a user were typing "SalesOrder," by the time the page loads, only the 's' would show in the filter. I do not want this behavior. I want the user to be able to finish typing, then either tab out of the filter they were typing in or click somewhere else or click one of the filter options like "Contains" or "Starts With" AND THEN the page can load.

Is there something I'm missing in the code to do that? I can get a lot of records by filtering, and I can't afford for the page to load every time a user types in one character.

Please help! :(

​    @(Html.Kendo().Grid(Model)
        .Name("TransactionGrid")
        .DataSource(dataSource => dataSource
            .Server()
            .Model(model => model.Id(o => o.TransactionID))
            .PageSize(1000)
        )
        .Columns(columns =>
        {
            columns.Bound(r => r.TransactionID).Title("ID").Hidden();
            columns.Bound(r => r.MessageType);
            columns.Bound(r => r.SourceSystem.Name);
        })
        .HtmlAttributes(new { style = "width:100%;" })
        .Resizable(resizing => resizing.Columns(true))
        .Pageable()
        .Groupable()
        .Filterable(filtering => filtering.Mode(GridFilterMode.Row))
        .Sortable(sorting => sorting.Enabled(true))
        .Selectable(selecting => selecting.Enabled(true))
        .Scrollable(s => s.Height(600))
    )
Ray
Top achievements
Rank 1
 answered on 10 Sep 2014
1 answer
139 views
I am using a DropDownList in a Grid.    I have nullable fields using the DropDownList.   I am having a problem deleting items that have been selected in the DropDownList.    Here is an example.    We have a nullable field for DepartmentID in a table and we have entered and saved data using the DropDownList.   Now we want to delete the DepartmentID field (or make it null again).   I have tried using the {delete} key, but that does not work.   I have tried trying to capture the {delete} key on the KeyPress in JavaScript and manually change the DepartmentID, but the {delete} key gets trapped before getting to my JavaScript so I cannot do it from JavaScript.    How do you reset the DepartmentID field back to Null?

Thanks, Larry
Alexander Popov
Telerik team
 answered on 10 Sep 2014
1 answer
168 views
Is it possible to change the title of a panel bar in jquery after the control has been created?
I want to enable a user to change the title of a panelbar.  The panel bar will be created, within the panelbar will be a textbox that the user can enter new title for the panelbar.
Dimiter Madjarov
Telerik team
 answered on 10 Sep 2014
1 answer
883 views
I have been programming for many years now, but I am new to the web development world.   Is it possible to call a Controller ActionResult (get) method from javascript?    I have a grid with a dropdownlist.  I have the grid setup to use the change event.   I have javascript for the onChange event.   In this javascript I would like to make a call to a controller to retrieve information based upon the selection that was just made with the dropdownlist.   Is this possible?
Sebastian
Telerik team
 answered on 10 Sep 2014
1 answer
1.0K+ views
Hi,

I want to know is there any way to set group column by clicking on any other check box on same page outside the grid.

<div id="grid"></div>
<input type="checkbox" id="chkOrderGroup" />

//script

$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { field: "age",
      groupFooterTemplate: "Total: #= count #"
    }
  ],
  dataSource: {
    data: [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 30 }
    ]
  }
});
  $(document).ready(function () {
      $('#chkOrderGroup:checkbox').change(function () {
            var g = $("#grid").data("kendoGrid")
            var objGroup = g.dataSource.group;
         // *******************************  Require code to set  column with name  "age"  as group column when check box is checked *****
      });

Require code to set  column with name  "age"  as group column when check box is checked.
Dimiter Madjarov
Telerik team
 answered on 09 Sep 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
Window
ListView
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
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
Licensing
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
AICodingAssistant
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?