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

I'm using kendo html helper mvc with the next code in the View: 

@(Html.Kendo().Grid(Model)
            .Name("Grid")
            .HtmlAttributes(new { })
            .Columns(columns =>
            {
                columns.LoadSettings(new List<GridColumnSettings>() { new GridColumnSettings() { Hidden = true } });
                columns.Bound(c => c.TextCol1).Hidden(true);
                (....)
            })
            .RowTemplate(@<div class="objLst">
            <div class="row">... ... ...</div ></div>)

 

I need to group the elements of the grid using javascript. I have the next code:

var grid = $("#Grid").data("kendoGrid");
grid.dataSource.group({field:"TextCol1" });

 

but when I run the javascript instruction, the application (kendo grid) makes an GET request to the server to group the data. I need that the grouping run only on the client side.

It's possible? Or I should migrate all code to javascript?

Thank you.

 

Konstantin Dikov
Telerik team
 answered on 21 Oct 2016
1 answer
247 views

Is there a way to create a wizard inside a kendo window with postback on each step? 

Tried following this link, but wasn;t able to get : http://developer.telerik.com/featured/step-wise-forms-with-asp-net-mvc-and-kendo-ui/

Grids inside kendo tabs do not work ( no ajax calls being made to populate grids ).

Danail Vasilev
Telerik team
 answered on 21 Oct 2016
3 answers
375 views

Hello!!!

I'm using MVC Scheduler with a all day event template. 

<script id="event-template" type="text/x-kendo-template">
    #if(data.IsControl && hasControlElement(data)) {#
            #= title#
     #}else {#
    <div class="amagat">
    </div>
    #}#
</script>

I want to hide all the events with the template that contains <div class="amagat"/>

I've tried it by javascript and css, but no luck... 

<style>
    .k-event > .amagat {visibility: hidden ; display: none}
</style>

 

I've attached two images with the current result and the desired result.

 

Thanks!!

Veselin Tsvetanov
Telerik team
 answered on 20 Oct 2016
1 answer
163 views

Hi,

I have a requirement where i want only visible columns json data send to server. This is so because user will have ability to hide columns client side. Requirement is create excel at server side with only visible columns.

Regards,

Pankaj

Vasil
Telerik team
 answered on 20 Oct 2016
3 answers
481 views

Hi guys,

I have a few problems with my brandnew grid. The situation is this: I added a grid to an mvc view. I made the grid columns filterable with the filterable: true setting.
The grid also contains a column with a checkbox to enable multiselect and a submit button to process the selection. If I tick a few boxes and process the selection everything works fine. If I use the filter and then select multiple rows to process, the list returned to the controller contains the wrong number of records or no records at all.

Furthermore, only rhe 'contains' option in the filter produces results, if I choose another option I get a grid with no results. I put the code for the View, ViewModel, Controller, the _layout.cshtml and the bundle.config in the attached zip. I'm afraid I couldn't get it in to a working project, because of the necessary data. I hope you'll still be able to figure out what's going wrong.

Cheers,

Mirjam

 

Angel Petrov
Telerik team
 answered on 20 Oct 2016
1 answer
175 views

We've noticed long running requests in the worker processes in IIS, some have been sitting for anywhere between 1 hour to 3/4 hours.

The request URL is:

/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=    

Any ideas what could be causing this?

 

Thanks in advance.

Vessy
Telerik team
 answered on 20 Oct 2016
3 answers
2.7K+ views

Hi all,

I've a dynamic grid (no columns defined). I want to allow the user to change the text in the column header. Ideally, I'd like the user to click the column menu, select Rename. A modal will appear prompting them for the new column title. They enter text, click OK, and that title is applied to the selected column. Any thoughts how I can achieve that?

If it's any help, below is my Razor code that generates the grid.

Thanks in advance!

Steve.

@(Html.Kendo().Grid<dynamic>()
            .Name("StandardTable_" + Model.InstanceKey)
            .ToolBar(toolbar =>
            {
            toolbar.Template(@<text>
                @ToolbarTemplate()
                </text>);
            })
            .Resizable(resize => resize.Columns(true))
            .Pageable(pageable => pageable
                .Input(true)
                .Refresh(true)
                .PageSizes(true)
                .ButtonCount(5)
                .Enabled(true)
                .Numeric(false)
            ).ColumnMenu()
            .Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true))
            .Filterable()
            .Groupable()
            .Reorderable(reorder => reorder.Columns(true))
            .EnableCustomBinding(true)
        .Events(m => m.DataBound("pan.dashDatapart.getGridState(" + Model.DataPart?.DatapartKey + "," + Model.InstanceKey + ")"))
        .DataSource(d => d
            .Ajax()
            .PageSize(pageSize)
            .Read(read => read
                .Action("StandardTableRead", "DashDataparts").Data("pan.dashDatapart.StandardGridRead(" + Model.DataPart?.DatafeedKey + "," + Model.InstanceKey + ")")
            )
        )
)

 

 

 

Kostadin
Telerik team
 answered on 20 Oct 2016
1 answer
449 views

Hi,

 

I am using kendo upload control and I need to upload zip file through only if zip file has only one file inside it other wise i needed to fail the upload.  OnSuccess event of upload I am calling controller action to add validations for the upload file.  How can I send file itself through Ajax to controller action so that i can extract zip file on server side and fail the upload if zip has more than 1 file inside it.

 @(Html.Kendo().Upload()
                              .Name("files").ShowFileList(false)
                              .Async(a => a.AutoUpload(false)
                                  .Save("UploadSingleDocument", "Upload")
                              )
                              .Multiple(false)
                              .Events(events => events
                                  .Select("attachClickHandler")
                                  .Upload("OnUpload").Success("OnSuccess").Error("onError"))
                        )

 

 

Below is my javascript code. e.files[0] is always returning null.

 

 $.ajax({
                url: ('@Url.Action("ValidateDocumentExtension", "Upload")'),
                contentType: "application/json",
                async: true,
                type: "POST",
                data: JSON.stringify({files:e.files[0], fieldlst: webFormFields, fileName: document.getElementById("DocumentName").value }),
                success: function(data) {
                    if (data === 'False') {
                        showNotification("Upload Document", "Invalid Document Extension", "error");
                        flagUpload = false;
                    } else if (data === 'True') {
                        flagUpload = true;
                        if ($("div.k-notification-error").Exists()) {
                            $("div.k-notification-error").hide();
                        }
                        if ($("div.k-notification-info").Exists()) {
                            $("div.k-notification-info").hide();
                        }
                    }
                }
            });

Dimiter Madjarov
Telerik team
 answered on 20 Oct 2016
1 answer
542 views

Hello,

I want to know if it´s posible to  make a Tooltip on a tabstrip on (MVC) .

 

best Regards F.K.

Vessy
Telerik team
 answered on 19 Oct 2016
1 answer
163 views

Hi,

I have requirement of freezing column at the start and the end. for eg. let say, i have 10 column in the grid. from these i want first two columns to be freezed and last column to be freezed. however column should NOT loose their respective position i.e. last column should remain as the last column but in freezed manner. between columns should be horizontal scroll-able. Please guide

 

Pavlina
Telerik team
 answered on 19 Oct 2016
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
+? 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?