Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.2K+ views
I am currently using by buttons in .Clientrowtemplate like this

@(Html.Kendo().Grid<Modeldata>()
.Name("Grid")

.DataSource(d => d
.Ajax()
.ServerOperation(false)
.PageSize(5)
.Model(model => model.Id(task=> task.Id))
.Read(read => read.Action("getalltask", "task"))
)

.Columns(columns =>
{
columns.Template(e => { }).ClientTemplate(" ").Title("Action").Width("10%");


})
.ClientRowTemplate(
<td class='edit' style='width:10%'>" +
 <input type='button' id='SubTask' title='Add sub Task' class='btnaddsub' onclick = 'AddSubTask( #: data.Id # );' >" 
)

I want to show or hide this button when the #data.Show# is true.  Please guide me in this.

Thanks in advance.
Dimo
Telerik team
 answered on 14 Apr 2014
2 answers
164 views
I came across this while trying to implement a universal Kendo UI app for phone/tablet based on this how-to:

http://docs.telerik.com/kendo-ui/howto/universal-mobile-apps-html5

When trying to initialize the application from a div instead from the body element, I'm getting an empty page with no output in the console. I have set this up here:

http://jsbin.com/mutes/2/

Now when you remove the wrapping div and initialize the app from the body (or give the body the id of the div), everything works fine.
Roman
Top achievements
Rank 1
 answered on 14 Apr 2014
1 answer
81 views
Dear Sirs,

I am building an application that will allow IM communication between providers and patients.  I am using the following template to show the message:

</script>
<script id="messageTemplate" type="text/x-kendo-template">
                <div class="post-content">
                    <p>Date Of Message: #= date_time_created_to_string#</p>                    
                    <p>To: #= messageReceiverName#</p>
                    <p>From: #= messageSenderName#</p>
                    <p>Message:</p>                    
                    <p>#=message#</p>
                </div>
            <br>
 </script>  

I am using the following code to bind the template to a datasource and add when a new message is added to the data source.  The code is working as expected.  What I would like to happen is when a new message is added is there a way to scroll to that message so that the user does not have to?

        var template = kendo.template($("#messageTemplate").html());
        //var dataSource = new kendo.data.DataSource({data: category});
        messageDataSource = new kendo.data.DataSource({data: theMessages});                        

        messageDataSource.bind("change", function() {
        $("#example").html(kendo.render(template, messageDataSource.view()));
        });

Scott
Kiril Nikolov
Telerik team
 answered on 14 Apr 2014
1 answer
223 views
Sitefinity uses the kendo editor for comments, so it's initalized through their scripts.  Is there some way to set placeholder text onto the editor AFTER the fact?

...suggestions?
Alex Gyoshev
Telerik team
 answered on 14 Apr 2014
4 answers
163 views
Dear friends,

I have an Android Kendo UI Mobile app, and when i set native scroll on a div, not run anything. Not scroll.

data-use-native-scrolling="true"

Some help ?

Thx you.
Kamen Bundev
Telerik team
 answered on 14 Apr 2014
1 answer
555 views
Hello,

Recently the feedback item for providing means of styling basic html elements (checkbox, textarea, etc) was marked as completed, and a link was provided to the help topic explaining the basic Kendo css classes:

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/2436405-basic-nice-form-effect-include-text-textarea-check

Would you be able to provide an example of styling a checkbox so that it looks consistent with the currently active Kendo theme?  It was unclear to me which of those classes would achieve that.

Thank you,
Tony 
Sebastian
Telerik team
 answered on 14 Apr 2014
1 answer
110 views
Hi Telerik!

I created two custom command in one View and created two Window for each but I run into a problem

If I click to the button the java script gave me error undefined window.. If I delete one of them it works.

Is there a solution to use more Window in one view or its imposibble?


Thanks in advance

Stewie
Dimo
Telerik team
 answered on 14 Apr 2014
1 answer
147 views
Now I have a TabStrip,this TabStrip has tow items,in first item,there is a tree view,how could i check  or uncheck the TreeView Item When Clicking the Label,and if all children is checked  the parent checkBox  is checked 
yyy111
Top achievements
Rank 1
 answered on 14 Apr 2014
3 answers
174 views
I'm using a Kendo TreeView with checkboxes, similar to the example provided on the demo page here.  It appears that the behavior of the TreeView widget with checkboxes enabled is that checkboxes are only checked when the checkbox itself is not clicked and not when the node is clicked.  In the following jsFiddle, I'd like to, for example, click the text My Documents and have it's associated checkbox, and all child checkboxes checked.

http://jsfiddle.net/13daysaweek/9bSFr/

Is this behavior possible with the TreeView?
yyy111
Top achievements
Rank 1
 answered on 14 Apr 2014
1 answer
115 views
I am now checking the functionalities of Kendo Mobile's widgets and trying to find out how I can use them in the best way to solve my requirements.

In the application that I want to develop, I need a toolbar in which I will have buttons like:

- Add
- Save
- Remove
- Copy
- Cancel

I thought that the best widget that answers my form appearance expectations would be the tabstrip object in Kendo UI Mobil but afterwards I got confused if this widget is the correct solution.The problem is

- Some options (= tabs in this case) should ve unavailable in some cases
- More than 1 option will be available at the same time
- The click needs to trigger a function, not a page change

I also thought may be I could use a buttongroup instead but also for this I am not sure..what would you recommend?
Kiril Nikolov
Telerik team
 answered on 14 Apr 2014
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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
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?