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

Hi,

I have a need to paste text containing template fields into the editor via jquery with the user be able to tab between the template fields with the template field being "selected" when they are on that field

For example, the user may choose to have the following text pasted into the editor:  "Please enter the {{date}} and {{time}}.".  The template fields are {{date}} and {{time}}.   After the data is pasted, the cursor needs to be positioned in the first template field with the template field selected (hilighted).  In this example, {{date}} would be selected allowing the user to replace the template text with data that they type in.  The user could then press the tab key to move to the next template field - in this example, it would be the {{time}} template field.   The goal, for example, is to be able to paste in 20 lines of boilerplate code and simply tab to the items that need to be changed.

I have this working for a simple TextEdit field, but I now need similar  functionality for a Editor field.

I know how to paste the template string via $('#Content').data('kendoEditor').value(results.Content) but I don't know how to trap the tab key and "select" fields.

Thanks in advance,

Scott


Ianko
Telerik team
 answered on 17 Dec 2019
5 answers
593 views

Hi!

I want to create TreeList with custom columns count. There is my code:

@(Html.Kendo().TreeList<dynamic>()
    .Name("treelist")
    .Columns(columns =>
    {
        foreach (System.Data.DataColumn column in Model.Columns)
        {
            var c = columns.Add().Field(column.ColumnName);
        }
    })
    .Filterable()
    .Sortable()
    .DataSource(dataSource => dataSource
        .Read(read => read.Action("Read", "Home"))
        .Model(m =>
        {
            var id = Model.PrimaryKey[0].ColumnName;
            m.Id(id);
 
            //m.ParentId(); what i should do here???
 
            foreach (System.Data.DataColumn column in Model.Columns)
            {
                var field = m.Field(column.ColumnName, column.DataType);
                if (column.ColumnName == id)
                {
                    field.Editable(false);
                }
 
            }
        })
    )
)

HomeController returns:

public ActionResult Read([DataSourceRequest] DataSourceRequest request)
        {
            DataTable products = DataCache.FullTable;
 
            if (request.Aggregates.Any())
            {
                request.Aggregates.Each(agg =>
                {
                    agg.Aggregates.Each(a =>
                    {
                        a.MemberType = products.Columns[agg.Member].DataType;
                    });
                });
            }
 
            return Json(products.ToDataSourceResult(request));
        }

I see examples on GutHub, but i don't find anything about dynamic binding.

Tsvetomir
Telerik team
 answered on 16 Dec 2019
1 answer
141 views

Is there a way I can use a Url.Action in a column template so the  can appear similar to the foreign key function in the grid.

Class TimeFrame

{     

}

columns.Add().Field(e => e.TimeFrameId).Template("@Url.Action("GetTimeFrame","TimeFrame", new {Id = #:TimeFrameId#})");

Tsvetomir
Telerik team
 answered on 16 Dec 2019
1 answer
187 views

Failed to execute command.

System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at Telerik.VSX.Internal.ProjectManagement.ProjectFileLocator.GetProjectItemPathsRecursive(String projectItemName, ProjectItems projectItems, String pathSoFar, IList`1 accumulatedResults)
   at Telerik.VSX.Internal.ProjectManagement.ProjectFileLocator.GetProjectItemPaths(String projectItemName)
   at Telerik.VSX.Web.MasterPageProcessing.Locator.RazorMasterPageLocator.GetMasterPagePresent()
   at Telerik.KendoUI.Mvc.VSX.MasterPageProcessing.ProjectSettingsReader.EnsureMasterPageDetectedInitialized()
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.GetConvertProjectPreWizardData(IScenarioDef template)
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.ProjectConversion()
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartConvertWizard()
   at Telerik.KendoUI.Mvc.VSPackage.CommandExecutor.Execute(UInt32 commandId)
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

 

Trying to figure out why I'm getting this illegal path exception, I'm not sure if it's related to my master page or what. Is there any way to do this manually?

Aleksandar
Telerik team
 answered on 16 Dec 2019
2 answers
129 views

Hello,

I try to test Spreadsheet/Server Import/Export DEMO sample (https://demos.telerik.com/aspnet-mvc/spreadsheet/server-side-import-export?_ga=2.260585796.857884645.1576085626-503251310.1571757701) and use certain functions in our MVC project but turned out got 'MimeTypes' does not exist in namespace error. Does that dll not included in Kendo UI or it only included in recent version?  I also try to use Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll but nowhere to find it.

Could I get someone's help? Thanks.

Nencho
Telerik team
 answered on 13 Dec 2019
2 answers
365 views
Is there a setting where I can hide the toolbar that shows up below with Clear and Upload buttons when user selects a file in Async mode? I'm triggering the upload in javascript, don't need user pressing these buttons.
Nikita
Top achievements
Rank 2
Iron
Iron
 answered on 10 Dec 2019
1 answer
228 views

Hi All,

How to change pager buttons style. Please see image attached

Any additional code? Im using this

.Pageable(pageable => pageable
 .PageSizes(true)
 .ButtonCount(2))

 

Thanks!

Ryan

Nikolay
Telerik team
 answered on 10 Dec 2019
3 answers
2.1K+ views

Hi All,

How can I make my add button and search alignItem = space in between

Wanted to make add button placed at left  corner and the search on the right corner of the toolbar.

Search position is okay but cant set the add button be on the left corner.

Please see pic attached

.ToolBar(toolbar =>
    {
        toolbar.Create();
        toolbar.Search();
    })

 

 

Thanks!

Ryan

Ivan Danchev
Telerik team
 answered on 10 Dec 2019
5 answers
617 views

Hi All,

How to remove cell border on my footer template

please see attached

columns.Bound(column => column.Email).ClientFooterTemplate("<input id='dropDownList'></input>");
columns.Bound(column => column.FirstName).Width(130);
columns.Bound(column => column.LastName).Width(130);

 

Thanks,

Ryan

Viktor Tachev
Telerik team
 answered on 10 Dec 2019
3 answers
210 views

I have a combobox that has to display very many rows so I have decided to use virtual. Now I have to display for each row 6 fields in a table and I saw there was an example https://docs.telerik.com/kendo-ui/knowledge-base/dropdownlist-with-embedded-table. After playing around and trying to make it work I saw in the documentation that Combobox auto-width does not work with virtual.

Is there an alternative to this?

I tried to set myself the width of the popup but for some reason the kendo ui code changes it back or the display ignores the value.

Aleksandar
Telerik team
 answered on 05 Dec 2019
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?