Telerik Forums
UI for ASP.NET MVC Forum
3 answers
1.8K+ views
Hi

I have one requirement
i am displaying 12 months in grid, and i have one text box and button
when they type april and click button grid should reorder from april to march

Senthil

Viktor Tachev
Telerik team
 answered on 01 Feb 2019
2 answers
537 views

When uploading a CSV file containing nordic characters such as Å,Ä,Ö the spreadsheet fails to accurately represent them. 

This also does not work in your demo https://demos.telerik.com/aspnet-mvc/spreadsheet/server-side-import-export when uploading a file that looks like this:

1.Id,Namn,Förslag,Åtgärd
2.0,Åsä Löåfv,Lorem ipsum,Lörem ipsåm

Row  #1 is the header of the CSV, Row #2 is example data. As you can see in your own demo, importing this file into the spreadsheet does not work, the ÅÄÖ characters get represented as ? which later breaks other stuff in my application (when parsing the spreadsheet). Any idea on how to maintain these characters?

 

aron
Top achievements
Rank 1
 answered on 01 Feb 2019
1 answer
151 views

Hey guys,

I really hope this makes sense, i want to give my users a quick way to view their organizations structure and additionally add items via a context menu in the tree view.

I have attached an image which shows what i want to achieve, i have manually built the attached structure but i need to achieve the same by binding to remote data and additionally implement lazy loading (If possible).

  • At the root level i only have companies (companies do not have sub companies).
  • When expanding on the company, you will see a list of branches (Branches can have an infinite number of sub branches).
  • When expanding on the Branch, you will always see a department list and sub branches (departments do not have sub departments).
  • When expanding on the sub branch, you will always see a department list and possibly more sub branches.

How do i bind the treeview to these 3 different lists?

I would also like to create a context menu for the treelist items.

  • When right clicking on the Company Node, i want to show a context menu to Add, Edit or Deactive Company as well as Add Branch.
  • When right clicking on a Branch i want to show a context menu the Add Sub Branch, Edit or Deactive Current Branch.
  • When right clicking on a Department i want to show a context menu to Add,Edit or deactivate the department.

The problem with the context menu is how do you know what type of node you are clicking on? (Company, Branch or Department)

 

Dimitar
Telerik team
 answered on 01 Feb 2019
1 answer
232 views

Hello,

is there a way to achieve a google-like suggestion dropdown list in Grid?

I have a normal grid, with a "Create" function in its toolbar. The column accepts any strings, which are saved in the database.
I attached a screenshot of the grid.

Is it possible to have a dropdown list under the cell, where the cursor is active?
The cell got to accept any strings, in case a Company name is not saved earlier in the database.

What I'm trying to achieve is to suggest the user what strings were saved in the form in the past.

The grid is nothing fancy:

@Html.Label(WorkPermitLabels.NonContractedCompanyName, new { @class = "control-label" })
@Html.Hidden("NonContractedCompany", "")
@(Html.Kendo().Grid(Model.NonContractedCompanies)
        .Name("nonContractedCompanies")
        .Columns(col =>
        {
            col.Bound(v => v.Name);
            col.Command(v =>
            {
               v.Edit();
               v.Destroy();
            });
         })
        .Editable(e => e.Mode(GridEditMode.InLine))
        .HtmlAttributes(new { @class = "control-label col-sm-12 col-md-6" })
        .Sortable()
        .ToolBar(toolbar => toolbar.Create())
        .DataSource(datasource =>
            datasource
               .Custom().Schema(schema => schema
               .Model(mod =>
               {
                  mod.Id(v => v.NonContractedCompanyID);
                  mod.Field(v => v.Name);
               })
         )
        ))
@Html.ValidationMessageFor(m => m.NonContractedCompanies, "", new { @class = "text-danger" })

 

Thank you for your help.

Gábor


Konstantin Dikov
Telerik team
 answered on 01 Feb 2019
4 answers
1.0K+ views

Hi there,

 I am trying to get an MVC Kendo UI Grid on the sorting event of a particular column to sort by a different property in the bound model class.  Is this possible - I've tried defining the Sortable comparer (http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.sortable.compare) but can't seem to get the syntax working.  Below is my cshtml view code - for the SampleResultsOverview column I need the sort value to be bound to a different property on the site model instead - the property is called SampleResultsOverviewSortOrder.

Many thanks, Mark.

 

 .Columns(columns =>
    {
        columns.Bound(site => site.UPRN).Title("UPRN");
        columns.Bound(site => site.AddressWithPostcode).Title("Address");
        columns.Bound(site => site.Contact).Title("Contact");
        columns.Bound(site => site.Telephone).Title("Telephone");
        columns.Bound(site => site.SampleResultsOverview).Title(@RecActionHeader).Encoded(false).Sortable(
            compare: function (a, b) {
            return numbers[a.name] - numbers[b.name];
        );
        columns.Template(site => { }).ClientTemplate(" ").Title("Site Documents");
    })

Alex Hajigeorgieva
Telerik team
 answered on 31 Jan 2019
5 answers
3.9K+ views
I want to add a clickable icon to the end of a textbox, I'm using the razor so I don't want to create the textbox via normal html, I want to use the razor helpers. How can I add the icon to the end of the textbox programmatically with javascript or jquery?
Dimitar
Telerik team
 answered on 31 Jan 2019
3 answers
215 views

Is there a way to use a template for popup editing in a treeview ?

By default, the popup displays all the model's fields but i want to hide some.

I can't figure out how to do that.

Thanks for your help.

 

Alan.

Alan F
Top achievements
Rank 1
 answered on 30 Jan 2019
1 answer
177 views

What would be easiest way to do this..?

Would it represent a performance hit (for grid with 25 columns)?

Georgi
Telerik team
 answered on 30 Jan 2019
1 answer
171 views

Hi,

I have a problem with scroll in mobile view of inline edit kendo grid with infinity scroll.

When I am trying to scroll rows are getting selected.

I have attached a file to view my problem. In the same way to view this below link on iphone or ipad.
"https://demos.telerik.com/kendo-ui/grid/events" .

Could you please help me out.

 

Thanks for helping me.

Boyan Dimitrov
Telerik team
 answered on 29 Jan 2019
3 answers
1.2K+ views
Every time I auto format a page in Visual Studio that has Kendo MVC Razor code, it adds an extra tab to all lines (expect the first one). It's been like this for several months.
Vessy
Telerik team
 answered on 29 Jan 2019
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
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
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
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
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?