Telerik Forums
UI for ASP.NET MVC Forum
2 answers
2.1K+ views

Hi All,

          I am using kendo grid for reporting purpose. But in my report i am using one date column for filtering purpose. My problem is when i use isequal to date filter empty grid is showing.why ?. Actually data is available in model. I attached to file. Please look into that

Kojoe
Top achievements
Rank 1
 answered on 05 Aug 2020
4 answers
69 views

Hello,

I want to load document(.docx) and replace some content, 

here is code:

RadFlowDocument document;
using (Stream input = System.IO.File.OpenRead(templatePath))
{
    document = provider.Import(input);               
}
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

1. Replace text: I use :

editor.ReplaceText("#Name#", "AAAAAAA");

 

Georgi
Telerik team
 answered on 05 Aug 2020
5 answers
156 views

I have a form with autocomplete the works fine until I post the form and it comes back. Then when entering data in the field, it does go to the server to filter, but does not show a dropdown.

Is there a way to reset the autocomplete on the form return?

Larry
Top achievements
Rank 1
 answered on 04 Aug 2020
8 answers
3.7K+ views

I have a PartialView that contains two linked Kendo ListBoxes and some other Textboxes and some hidden fields. I want to render the form inside of the Kendo Dialog. I can find examples of inserting these types of controls here: http://demos.telerik.com/aspnet-mvc/dialog/treeview-integration 

But I am trying to using this partial form a bound MVC form to update the object model.

How do I render a PartialView in a dialog?

Georgi
Telerik team
 answered on 04 Aug 2020
6 answers
1.0K+ views

Hello

 

I have a grid containing a list of work items with a detail template displaying details about each item. The detail template is a tabstrip where one tab contains the date and text for the last action taken on that work item. I'm having trouble setting the date in a datepicker.

Here is the code for the tab: 

 

items.Add().Text("Last action").Content(@<text>
   #var ldate=kendo.toString(lastActionDate, "yyyy-MM-dd")#
   <div class='cssLastAction'>#=ldate#
      <div>lastActionDate">@(Html.Kendo().DatePicker().Name("#=ldate#").Value("#=ldate#").ToClientTemplate())</div>
        <textarea rows="10" class="textArea" id="lastAction" name="lastAction" data-bind="value:lastAction">#= lastAction #                 </textarea>
    </div>
 </text>
  );

I have removed some unnecessary code to keep it readable. First I take my lastActionDate from the model and format it to a string, after that I just write the result on the screen   #=ldate# to see that I get a value.

I then also write it as name for the datepicker, again to see that i get the value when inspecting the datepicker .Name("#=ldate#")

Last of all i also write it as the value of the datepicker .Value("#=ldate#")

The problem is that when I inspect the datepicker it doesn't even have a value attribute.

BUT if I instead hardcode a value .Value("1950-01-01") everything works fine.

Why is it that ldate work in the name field but not in the value field for the datepicker and why does the hardcoded value work but the variable parsed as a string doesn't?

Best regards

Jonas

Anton Mironov
Telerik team
 answered on 03 Aug 2020
4 answers
980 views

Hi,

 

I've placed an MVC wrapped DateTimePicker inside a kendo template, but the problem I'm having is setting the value.  Here's the code I'm using:

 

(Html.Kendo().DateTimePicker()
                .Name("activeTime-#=Ordinal#")
                .Min(new System.DateTime(1970, 1, 1, 0, 0, 0)) // Epoch
                .Format("MM-dd-yyyy HH:mm")
                .TimeFormat("HH:mm")
                .HtmlAttributes(new { style = "width:100%" })
                .Value("#: kendo.toString(ActiveDT, 'MM-dd-yyyy HH:mm') #")
                .ToClientTemplate()
            )​

 This loads a DateTimePicker inside the list view, however the value of the picker is always blank.  I've tried a few things to fix it (deferring, outputting a javascript date object instead of a string, changing everything to create the datetimepicker through javascript rather than the wrapper) and I'm at a bit of a dead end, I was just wondering where exactly I'm going wrong.

 

Thanks,

Kevin

Nikolay
Telerik team
 answered on 03 Aug 2020
4 answers
528 views

I have a Kendo PanelBar and Menu declared in my MVC Layout and they slow down my page render by about 10 seconds each.  These used to be Telerik controls for MVC 3, and I made minimal code changes to convert them to the Kendo controls for MVC 5.  The old Telerik version does not experience these slow load times.  I know that my PopulateSiteMapAttribute is not the issue, as that code takes 0 seconds to run.  Can you give me any clues as to what might be causing this slowness?

 

If I remove this block from my MVC Layout, the page renders 20 seconds faster:

@{ Html.Kendo().Menu()
         .Name("TopNavigation")
         .HtmlAttributes(new { @class = "topNavigation" })
         .BindTo("PA.web.mvc.sitemap", (item, node) =>
         {
             if (!string.IsNullOrEmpty(node.ControllerName) && !string.IsNullOrEmpty(node.ActionName))
             {
                 item.ControllerName = node.ControllerName.ToLower();
                 item.ActionName = node.ActionName.ToLower();
                 item.Text = node.Title.Substring(0, node.Title.IndexOf("|"));
 
                 item.HtmlAttributes.Add("class", node.Title.Substring(node.Title.IndexOf("|") + 1));
 
             }
         })
         .Render();
}
Neli
Telerik team
 answered on 31 Jul 2020
1 answer
57 views

Hello, when I edit events the order of ressources changes.

is possible to fix this order ?

Ivan Danchev
Telerik team
 answered on 30 Jul 2020
1 answer
329 views

Hallo,

I am just having this Problem and i don't know why !!

This is also happening in one of you Demos too.

Here is the Link :

https://demos.telerik.com/aspnet-mvc/scheduler/selection

 

In case it is working fine on your Side, I'll attach a Pic of the Issue (see the Link above).

Thanks in advance

Martin
Telerik team
 answered on 30 Jul 2020
1 answer
102 views

Drag and drop feature is not behaving as expected. When trying to drag and drop an item from one place to another, it always gets dropped at the end of the targeted parent node and not at the desired place. As a result it becomes the last node of the parent. Can't move a node in between two nodes.

 

 

Aleksandar
Telerik team
 answered on 27 Jul 2020
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?