Telerik Forums
UI for ASP.NET MVC Forum
1 answer
145 views

Hi

We have implemented the max length validation on cells in spreadsheet control following below link. It works as it stated in the demo. We have 2 questions related to that.

1. Can we suppress the validation popup when user enters more than specified characters? It's not intuitive without the popup but it will work with my 2nd question.

2. Can we stop user from typing more than specified characters in a cell?

https://demos.telerik.com/aspnet-mvc/spreadsheet/validation

Thanks. 

Jocelyn

 

Anton Mironov
Telerik team
 answered on 07 Oct 2021
1 answer
628 views

Hi all,

We have updated the kendo to latest version ie:2021. Now we are seeing a strange behaviour like kendo pager buttons are not coming properly if the Kendo Grid is in a partial view or if it is loaded through Bootstrap Modal Dialog. In normal cases, the pager buttons are working fine.

I have attached an image. Please help me out.

 

Eyup
Telerik team
 answered on 06 Oct 2021
0 answers
214 views

Hi,

I have 2 tables

 

Employee

...................

EId     EName

1             a

2           b

3          c

 

Attachments

.................................

AttachmentId    Attachment Name    EId

1                          C:Emps/abc.pdf        1

2                          C:Emps/edy.word         1

3                          c:Emps/2282.jph            2

 

Currently my requirement is that i am going to implement file upload conttrol in mvc column grid

 

ex:For each row i may upload multiple files

like that i am going to do it for multiple rows

i need sample project related to my requirement

 

for your reference i have provided sample data

 

can you please help me

 

 

 

froger
Top achievements
Rank 1
Iron
 asked on 05 Oct 2021
1 answer
276 views

Hi,

I have one requirement need to implement dropdown tree in kendo ui grid using mvc

 

can any one provide sample code

 

thanks

Anton Mironov
Telerik team
 answered on 05 Oct 2021
1 answer
1.4K+ views

Hi,

I have one table

 

Employee

..............

EId   EName      CompanyId's

1        a              1,2

2        b               2


                @(Html.Kendo().Grid<Emplopyee>
    ()
    .Name("grid")
    .Columns(columns =>
    {
        columns.ForeignKey(f => f.CompanyId,
        (System.Collections.IEnumerable)ViewData["CompaniesList"],
        "CompanyId", "CompanyName")
        .EditorTemplateName("CompaniesEditor").Title("Company Name").Width(200)    

        columns.Bound(p => p.EId).Filterable(false);        
columns.Bound(p => p.EName);
        
    })
     
    .Pageable()
    .Sortable()
    
    .Filterable()
    .HtmlAttributes(new { style = "height:550px;" })
    .DataSource(dataSource => dataSource
    .Ajax()
    .PageSize(20)
    .Read(read => read.Action("GetDetails", "Home"))
    .Model(model => model.Id(p => p.EId))

    )
    )

CompaniesEditor
.......................

(
                 Html.Kendo().MultiSelectFor(m => m)
                        .BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"]).Filter(FilterType.Contains).TagTemplateId("tagTemplate") // Reference to the template.
    )

2

 

my requirement is that need to display comma separated values in grid

 

can any one help me

 

Eyup
Telerik team
 answered on 05 Oct 2021
1 answer
231 views

I have a chart which, depending on a button group selection, will display a different data item in a line series. This is handled server-side, with the chart definition not needing to be changed.

However, I do need to change the name displayed on the value axis and legend name.

I can do this by using the following code:-

var specChart = $("#chortcategorytrendchart").data("kendoChart");

            specChart.options.valueAxis[1].title.text = sName;

            specChart.options.series[1].name=sName;

            specChart.refresh();

 

This works, but I also need to call the chart datasource.read:-

$('#chortcategorytrendchart').data("kendoChart").dataSource.read();

When I do this, the value axis title remains changed correctly, but the series name in the legend reverts to the default setting in the chart definition.

It doesn't make a difference if the read is called before or after the chart refresh.

I am using version 2021.2.511. How can I stop the read call changing the series name back?

Eyup
Telerik team
 answered on 04 Oct 2021
0 answers
564 views

Are there any online examples of where a dropdrownlist control is used inline as a column with the MVC TreeList?

I need the column to be active at all times,.  We don't want to utilize the popup editor.

I tried adding a column with a template like this:

            @(Html.Kendo().TreeList<VendorPortalCatalogItem>()
                  .Name("myClassTreelist")
                  .Columns(columns =>
                  {
                      columns.Add().Field(e => e.Name).Width(220).TemplateId("name-template");
                      columns.Add().Field(e => e.DaysToShipId).TemplateId("dts-template");
                  })
                  .Filterable()
                  .Sortable()
                  .DataSource(dataSource => dataSource
                      .Read(read => read.Action("TreeList_LoadAll", "DaysToShip"))
                      .ServerOperation(false)
                      .Model(m =>
                      {
                          m.Id(f => f.Id);
                          m.ParentId(f => f.ParentId);
                          m.Field(f => f.Name);
                          m.Field(f => f.IconClass);
                      })
                  )
                  .Height(540)
                  )


And my template looks like this:

<script id="dts-template" type="text/x-kendo-template">

            @(Html.Kendo().DropDownList()
                  .Name("DaysToShipId")
                  .OptionLabel("Select days to ship...")
                  .HtmlAttributes(new { style = "width: 100%" })
                  .DataTextField("Text")
                  .DataValueField("Value")
                  .DataSource(source =>
                  {
                      source.Read(read =>
                      {
                          read.Action("ddlDaysToShip_Read", "DaysToShip");
                      });
                  })
                  .Height(400)
                  )

</script>


 

But all this does is throw console error "Uncaught error: Invalid template"

Joe
Top achievements
Rank 1
Iron
Iron
 asked on 01 Oct 2021
1 answer
539 views

Hello,

Is there any way to have a delete confirmation popup or message when the Delete button is clicked in a TreeList?

I've tried using

events.Remove("onRemove");

as shown in the Events demo.  I'm using a JavaScript confirm, but the row is still deleted when I click cancel.

Many thanks,

Richard

 

Patrick | Technical Support Engineer, Senior
Telerik team
 updated answer on 30 Sep 2021
2 answers
809 views

I have a form generated using Html.Kendo().Form.  I would like to be able to export the contents of the form (labels, textboxes, checkboxes) to a new PDF on the click of a button, and then subsequently merge it with another PDF.

Is there a generic method that would enable me to do this, rather than using the PdfProcessing Library to create a new document and then add each of the fields from the ViewModel one by one.

Thank you.

Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
 answered on 29 Sep 2021
1 answer
1.1K+ views

I have a grid with a clienttemplate. How do I filter on the template text instead of the bound field?

                    columns.Bound(e => e.ProjectAddress).Title("Address").Width(150).Filterable(f => f.Extra(false))
                        .ClientTemplate("#=ProjectAddress#<br/>#=ProjectCity#, #=ProjectStateCode# #=ProjectPostalCode#");

I want to filter on address, city, state and zip code not just ProjectAddress.

Thanks.

 

 

 

Ivan Danchev
Telerik team
 answered on 29 Sep 2021
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
Security
ColorPicker
DateRangePicker
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?