Telerik Forums
Kendo UI for jQuery Forum
0 answers
90 views
Does anyone know how to add tooltips for EACH "InsertHtml" item?  Example: I want something like this.


    $(document).ready(function () {
        $("#editor").kendoEditor({
            tools: [
                "bold",
                "italic",
                "underline",
                "strikethrough",
                "fontName",
                "fontSize",
                "foreColor",
                "backColor",
                "insertHtml",
            ],
            insertHtml: [
                { text: "Request.FirstName", value: "#Request.FirstName#" toolTip: "Inserts users first name" },
                { text: "Request.BirthDay", value: "#Request.BirthDay#" toolTip: "Inserts users date of birth" }
            ]
        });
    });
Kevn
Top achievements
Rank 1
 asked on 25 Sep 2012
2 answers
152 views
Edit: I have a typo in the thread title, it should be "Remote view..." not "Remove".   

I am writing a mobile web app that leverages the Kendo UI Mobile 'Application' object.  In one part of the application I am walking a user through selecting a vehicle (year first, then make, then model, etc).  Each of these selections is on it's own page.  Each list is retrieved from a back-end service.  The 'make' depends on the 'year' selected, and the 'model' depends on 'year' and 'make'.  I had built a small utility function that would parameterize the URL I send to the Kendo application's navigate() method and it was working great on version 2012.2.710.  However, in another area I ran into this bug (http://www.kendoui.com/forums/framework/mvvm/bug-nested-array---source-binding.aspx) and was forced to upgrade to 2012.2.913.  This fixes the bug but now there's some code in the navigate() method that strips of any query parameters from the url.  

So, I was doing this:
app.navigate('/Home/SelectMake?year=2012');

and now (version 913) Kendo ends up basically doing this:

app.navigate('/Home/SelectMake');
 
So my question is this: Is there a recommended way to load remote views with parameters?  If not, why was the code added that strips the query parameters when navigating (as this breaks my code now)?

Thanks.
Jeremy Wiebe
Top achievements
Rank 1
 answered on 25 Sep 2012
4 answers
276 views
I have found that if you put a paginated grid with auto height in the panelbar, when you change pages and the grid height changes, the panelbar doesn't keep up with the grid size changes. I suppose I could maybe detect when the grid page changes and somehow refresh the panel its in to fit maybe?
Chris
Top achievements
Rank 1
 answered on 25 Sep 2012
0 answers
143 views

<div>
<form name="form" >
<input type="text" name="msg" value="Your message"/>
<input id="btnsumbit" type="submit" />
</form>
</div>
<div>
<iframe id="guestFrame1" name="guestFrame1" width="500px" height="150px" frameborder="1"   src="http://localhost/kendosample " >
</
iframe>
</div>
<script>
var win = document.getElementById("guestFrame1").contentWindow           
document.forms.form.onsubmit = function ()
{
win.postMessage(this.elements.msg.value, "*")
return false
}
</script>
Please let me know, how to apply the above same logic in kendo window

Prakash
Top achievements
Rank 1
 asked on 25 Sep 2012
0 answers
85 views
Hallo,

have i the chance to set the Field Name of a Grid.Column at runtime? 
Like this:

$("#grid").kendoGrid
   ({
    dataSource:
    {....
        columns:
        [{
            field:"ReadData.php?DataToRead=LastName"
            width: 90
        }]
    }
})

Howard
Howard
Top achievements
Rank 1
 asked on 25 Sep 2012
1 answer
541 views
I'm asking this question again after spending additional hours trying to get this to work without success.   I have a Grid using Ajax binding to display a dropdown list of items in a grid from a collection in the model.    The items are on the server in a List<SomeItems> collection.      This list is not in the model the grid itself is bound to - it is coming from a separate source.    I'm really tired of mucking around with something that is very easy to do in every other tool kit I've ever used.   

My code currently looks like this.   I get no drop down list in my grid at all.  I get an edit box.
@(Html.Kendo().Grid<Models.AutomationDevicePartsMapping>()
       .Name("GridAutomationDevicePartsMapping")
       .Columns(columns =>
                    {
                        columns.Bound(p => p.QuantityMultiplier).Title("Quantity");
                        columns.Bound(s => s.PartNumberName)
                            .Width(300)
                            .ClientTemplate(Html.Kendo().DropDownList()
                                                .Name("PartNumberxyz")
                                                .Events(ev => ev.Change("AutomationDeviceMappingDDLChanged"))
                                                .BindTo(ViewBag.MeterParts)
                                                .DataTextField("Text")
                                                .DataValueField("Value")
                                                .HtmlAttributes(new {style = string.Format("width:{0}px", 200)}).ToClientTemplate()
                                                .ToHtmlString()
                            );
                    })
       .ToolBar(toolbar => toolbar.Create())
       .Editable(editable => editable.Mode(GridEditMode.InLine))
       .Pageable()
       .Sortable()
       .Scrollable()
       .Selectable(s => s.Mode(Kendo.Mvc.UI.GridSelectionMode.Single))
       .DataSource(dataSource => dataSource
                                     .Ajax()
                                     .Model(model => { model.Id(p => p.AutomationDeviceId);
                                     model.Field(p => p.PartNumberName).Editable(false);
                                     })
                                     .Create(update => update.Action("CreateNewAutomationDevicePartsMap", "AutomationDevice").Data("AutomationDeviceID"))
                                     .Read(read => read.Action("GetAutomationDeviceMaps", "AutomationDevice").Data("AutomationDeviceID"))
                                     .Update(update => update.Action("UpdateAutomationDevicePartsMap", "AutomationDevice"))
                                     .PageSize(50)
       )
 
       )
Vladimir Iliev
Telerik team
 answered on 25 Sep 2012
10 answers
428 views
This only happens in IE 9. I'm using the kendo silver style.  I have a custom action in a grid.  On mouseover and mouseout, the grid body height expands (right above the footer, but below the scrollbar).  The template for the custom button also seems to remove the filtering options for the other columns.

Here it is in action (if you use IE 9!):
http://jsfiddle.net/xeyaT/

Do you guys have any idea why or how this might happen?
Nick
Top achievements
Rank 1
 answered on 25 Sep 2012
0 answers
129 views
Hi,

In div that will be content for modal window I have kendo menu, kendo DropDownList  and textarea. They render on page load OK.

When I press link that opens a modal window, that uses mentioned above div as its content, it opens window with kendo menu and textarea, but kendo DropDownList has dissapeard and can't be found. 

I have attached MVC default sample project with sample code in Home\Index page that demonstrates this behaviour. 
Rihards
Top achievements
Rank 1
 asked on 25 Sep 2012
1 answer
496 views
Does possible making in grid have sub column like in the image?
I tried grid inside grid but it's not working and only display the inside grid
anyone can help how can approach or any suggestion what would better to do in my problem?
            <script>
$(function() {
$("#grid").kendoGrid({
dataSource: {
transport: {
read: "customgridtest.php",
update: {
url: "update.php",
type: "POST"
},
destroy: {
url: "delete.php",
type: "POST"                            
},
create: {
                                url: "create.php",
                                type: "POST"
                            },
},
error: function(e) {
alert(e.responseText);
},
schema: {
data: "data",
model: {
id: "Customer",
fields: {
Customer: { editable: true },
Order: { validation: { required: true} },
Price: { validation: { required: true} }
}
},
}
},
columns: [
{ field: "Customer", title: "Customer"},
{ field: "Order" , title: "Order"},
{ field: "Price", title: "Price"},
{
/*
$("#grid").kendoGrid({
dataSource: {
transport: {
read: "customdata.php",
},
schema: {
data: "data",
}
},

columns: [
{ field: "Region", title: "Region"},
{ field: "District" , title: "District"},
{ field: "Territory", title: "Territory"},
],

})
,
*/
},
],
navigable: true,   // enables keyboard navigation in the grid
});
});
            </script>
Iliana Dyankova
Telerik team
 answered on 25 Sep 2012
0 answers
229 views
I would like to add model-level validation. So far I can only see kendo-ui supports field-level validation. I want model-level validation (or class-level or entity-level whatever you call it) as the validation rule does not apply to an individual field / property but applies to the entire model. As a consequence, when invalid, the validation message cannot be associated with the input control for an individual field. It must be placed in a validation-summary in a location of my choice. All of this is to happen in a custom popup edit template of a grid. Validation is to be triggered by the Update button on the custom edit popup. Is this possible at all?
Remco
Top achievements
Rank 1
 asked on 25 Sep 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?