Telerik Forums
UI for ASP.NET MVC Forum
0 answers
117 views
hi,
i have an issue about uploading file using kendoWindow.
The content is loaded from a partial view, and since the form contains an input[type=file] element, its 'enctype' attribute should be 'multipart/form-data', so it can't be an ajax form, just be a basic html form. The issue is that when i submit the form, the whole page is replaced with returned content from the handler function in related controller code. How to make the page stayed not replaced & refreshed partly?
thanks for replying.
jimbung
Top achievements
Rank 1
 asked on 27 Oct 2012
1 answer
232 views
I am looking for the clarification for the below questions for Web version on KendoUI. 

1.> Drag and drop of Image is supported in the Web Kendo UI Editor control? 

2.> Web Kendo UI Editor control support for inserting Image and Videos. 

3.> Web Kendo UI Editor control  support on PAD browser? 

help us to clarify above questions. 

Dustin
Top achievements
Rank 1
 answered on 26 Oct 2012
3 answers
2.6K+ views
Hi,

I am using the kendo ui ASP.NET MVC Razor helper. Everything works great, except the progress spinner doesn't show during the initial grid load or during a refresh. This leads to a pretty poor user experience if it takes a few seconds for data to load.

Can I force the progress spinner to display during initial load / refresh somehow to provide a better user experience?

Here is how I have things setup:

@(Html.Kendo().Grid<Models.IndividualModel>()   
                .Name("IndividualsGrid")
                .Columns(columns =>
                {
                    columns.Bound(c => c.Id)
                            .ClientTemplate("<a href='/viewMember.aspx?MemberID=#=Id#'>View</a>")
                            .Width(45)
                            .Filterable(false)
                            .Groupable(false)
                            .Sortable(false)
                            .Title("");
                    columns.Bound(c => c.Id)
                            .ClientTemplate("<a href='/editMember.aspx?MemberID=#=Id#'>Edit</a>")
                            .Width(40)
                            .Filterable(false)
                            .Groupable(false)
                            .Sortable(false)
                            .Title("");
                    columns.Bound(c => c.FirstName);
                    columns.Bound(c => c.LastName);
                    columns.Bound(c => c.StreetAddress);
                    columns.Bound(c => c.City);
                    columns.Bound(c => c.Phone);
                })
                .Sortable()
                .Scrollable()
                .Filterable()
                .Groupable()
                .HtmlAttributes(new { style = "height: 600px" })
                .ClientDetailTemplateId("HouseholdDetailTemplate")
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .Read(read => read.Action("IndividualSearchResults_AjaxBinding", "Church")
                    .Data("GetIndividualsSearchParameters"))
                    )
            )

function GetIndividualsSearchParameters() {
    var memberTypeFilters = $("#ddlMemberTypes").multiselect("getChecked").map(function () {
        return this.value;
    }).get();
    var ageCategoryFilters = $("#ddlAgeCategories").multiselect("getChecked").map(function () {
        return this.value;
    }).get();
    var genderFilters = $("#ddlGenders").multiselect("getChecked").map(function () {
        return this.value;
    }).get();
 
    var nameToSearch = $('#txtbxSearchByName').val();
 
    return {
        nameToSearch: nameToSearch,
        memberTypes: memberTypeFilters,
        ageCategories: ageCategoryFilters,
        genders: genderFilters
    };
}
 
function BindGrid() {
    grid = $("#IndividualsGrid").data("kendoGrid");
    grid.dataSource.read();
    grid.refresh();
Vladimir Iliev
Telerik team
 answered on 26 Oct 2012
0 answers
127 views
 if you look at the attached image i have a problem with the size of the input boxes compared to the grid. they are soo big they cause stuff not to fit on the page. How can i change thier size?
mike
Top achievements
Rank 1
 asked on 26 Oct 2012
1 answer
147 views
is there a way to add a row?
mike
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
93 views
I was wondering if it was possible to have a grid that was empty that i could add multiple records on and then save those to the correct database table but not display what is already saved. I essentially want to be able to do a bulk add.

thanks.
mike
Top achievements
Rank 1
 answered on 26 Oct 2012
2 answers
194 views

How to perform read action in inCell editing grid after Save Changes button is pressed. After data is saved to database I would like to perform Read action.

Is that possible & how? Where do I put the code? 

I have the newest version of Kendo UI, note that I use helpers (MVC wrappers).

Goran
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
518 views
Hi

I have a requirement where a command column (delete) needs to be visible for a row only if a column value in the row meets certain criteria.
.Columns(columns =>
{
columns.Bound(o => o.PitID).Visible(false);
columns.Bound(o => o.VersionID).Width(50);
columns.Bound(o => o.VersionNote);
columns.Bound(o => o.ReleasedBy);
columns.Bound(o => o.ReleasedDateDisplay);
columns.Bound(o => o.Deletable).Visible(false);
columns.Command(command => command.Custom("Select").Click("showIssue")).Width(100).Title("Select");
columns.Command(command => command.Custom("Delete").Click("Delete")).Width(100).Title("Delete");
}).

The delete command needs to visible only if  Deleteable is true.

thanks
Petur Subev
Telerik team
 answered on 26 Oct 2012
1 answer
105 views
I have a problem where I need to have the foreign key dropdowns disabled while editing. I have used the default Event for edit but it only seem to fire once.

.Events(e => e.Edit("edit"));

Like this.


    function edit(args) {
        var insertMode = args.model.isNew();
        if (insertMode == false) {


            var dropdownlist = $("#KeyFigureId").data("kendoDropDownList");
            dropdownlist.enable(false);


            var dropdownlisttwo = $("#DimensionOneId").data("kendoDropDownList");
            dropdownlisttwo.enable(false);
            
            var dropdownlist3 = $("#DimensionTwoId").data("kendoDropDownList");
            dropdownlist3.enable(false);


            var dropdownlist4 = $("#DimensionThreeId").data("kendoDropDownList");
            dropdownlist4.enable(false);
  
        }
    }

Any chance we could get a separate template for Insert and Edit in the future? (also asked in the webinar).
Petur Subev
Telerik team
 answered on 26 Oct 2012
1 answer
493 views
I want to display a decimal number with 2 decimals. The value is 1.3 but the numeric textbox is showing 130.00. By setting a swedish culture I would expect it to show 1,30 but even if I set en-US as culture or no culture at all it shows 130.00. If I change it to a regular Html.TextBoxFor I get 1,3.

@Html.Kendo().NumericTextBoxFor(model => model.Zone.CostFactor).Format("n2").Culture("sv-SE").Decimals(2)

/Ola.
Georgi Krustev
Telerik team
 answered on 25 Oct 2012
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
ColorPicker
DateRangePicker
Security
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?