Telerik Forums
Kendo UI for jQuery Forum
4 answers
382 views
Is there any way there i can exclude the field containing remove button.

i did something like this.
$("input:file").kendoUpload({

            async: {

                autoUpload: true
            },
            select: onSelect

        });
     });  
    function onSelect() {
        $('.k-button').click();
        return $("#personal_image_submit_add").trigger("click");
    }

i did    $('.k-button').click(); to remove the field. but it doesn't work. Need suggestion in this regard.
Saqib
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
49 views
I want to use the inside of the kendoui project loading effect, how should I do? 
Seaman
Top achievements
Rank 1
 asked on 26 Mar 2012
7 answers
174 views
It was mentioned that current Kendo UI customers attending the keynote event today with be upgraded to Kendo UI Complete.  Does this apply to Telerik Premium Collection for .NET customers which Kendo UI is already a part of the collection?
Clint
Top achievements
Rank 1
 answered on 26 Mar 2012
0 answers
93 views
We tried to do this with a list before we realized it doesn't support Virtualization  yet.

We are trying to use the kendo ui Datasource+ a control, to render a template as a series of divs with virtualization.

Is there a way to remove the table tags from the grid control?

Virtualization  seems to be implemented on the controls not the datasource so I assume theres no way to use it with just the dataprovider? or maybe tell the data provider to page, but append vs load new data? 

this is the plugin we are tring to add  http://isotope.metafizzy.co/ 


Thanks,

-Andrew


Andrew
Top achievements
Rank 1
 asked on 26 Mar 2012
1 answer
170 views
Hi everyone,
I'm trying to put JSON object received by an AJAX Call, but i don't really know how to use it properly, when i try to convert it into an Object or trying to use it with no modification i don't get anything on the web page.

Here is my JSON message : 
[{"id":"3","views":"0","title":"Video1","description":"Video1.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/videos\/Video1.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"2","views":"0","title":"Video2","description":"Video2.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/videos\/Video2.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"1","views":"0","title":"Video3","description":"Video3.mp4","created_at":"2012-03-21 10:00:00","updated_at":"2012-03-21 10:00:00","link":"\/upload\/videos\/Video3.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"},{"id":"4","views":"0","title":"Video de test","description":"31.mp4","created_at":"2012-03-21 00:00:00","updated_at":"2012-03-21 00:00:00","link":"\/upload\/videos\/31.mp4","add_by":"1","category":"1","convert":"0","group_fkid":"1"}]

Can someone explain me the right way to use it with no error ?

Thanks,
Tyler
Alexander Valchev
Telerik team
 answered on 26 Mar 2012
2 answers
206 views
Suppose I have this markup:
<div id="myID">
    <div data-role="tabstrip">
        <ul>
            <li>tab1</li>
            <li>tab2</li>
        </ul>
        <div>
            Content tab 2
            <select data-role="dropdownlist" data-source='{"transport":{"read":"some-url"}}' />
        </div>
        <div>
            Content tab 2
        </div>
    </div>
</div>


When I bind this to a viewmodel

kendo.bind("#myID", viewModel);

then the dropdownlist is initiate twice (and as an effect two requests are done to the server).

This is caused by the fact that kendo.bind iterates through all child elements and calls bindElement for each element (which is ok). The bindElement function looks if the element has a data-role attribute, if so it calls bindingTargetForRole which calls kendo.init(..).
This kendo.init() does a jQuery query for all child elements with a data-role attribute including itsself and initializes each child element.

So in my example when kendo.bind calls bindElement for the tabstrip, the creation of the tabStrip widget causes the dropDownList widget also to be created.
But then kendo.bind iterates further and calls bindElement for the select element and then again the dropDownList widget is created.

I guess this should not be done twice.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
0 answers
96 views
Hi,

Below is the code where i use kendo window to show a window where user can enter email address and on clicking send it fires c# button click event.
But that doesn't happen, the button click event doesn't fires. What could be the issue??
Also to make avoid other problems, i have set the causesvalidation to false.

<div id="Emailwindow">
        <div id="mainPart">
        <fieldset>
        <legend><asp:Literal ID="ltrlLegendText" runat="server"></asp:Literal></legend>
        <table cellspacing="10">
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="lblmsgtoShow" EnableViewState="false" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <span class="redstar">*</span>
                    <asp:Label ID="lblEmail" runat="server" Text="Your Email ID:">
                    </asp:Label>
                </td>
                <td><asp:TextBox ID="txtSendEmail" EnableViewState="false" Width="250px" runat="server"></asp:TextBox></td>
                     
            </tr>
            <tr>
                <td></td>
                <td><span id="EmailMsg" enableviewstate="false" runat="server"></span></td>
            </tr>
            <tr>
                <td></td>
                <td align="left">
                    <span class="mandatoryMsg">Fields marked (<span class="redstar">*</span>) are mandatory</span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td align="right">
                    <asp:Button ID="btnSendEmail" CausesValidation="false" runat="server"
                        Text="Send" Width="80px" onclick="btnSendEmail_Click" />
                </td>
            </tr>
        </table>
        </fieldset>
    </div>
Rohit
Top achievements
Rank 1
 asked on 26 Mar 2012
5 answers
189 views
Hi everyone !

To begin, thank you to Team Kendo UI framework for this First, thank you to Team KendoUI framework for this really powerful.

I am facing a problems for viewShow, even with the different possibilities of use:

Here are the different ways that I used to use viewShow, and nothing appears in the event console 

var app = new kendo.mobile.Application(document.body, {
  transition: "slide",
      hideAddressBar: true
  });
app.bind("viewShow", function(e) {
    console.log(e);
  });
 
OR
 
var app = new kendo.mobile.Application(document.body, {
  transition: "slide",
  hideAddressBar: true,
  viewShow: function (e) {
    console.log(e);
  }
  });

Someone can explain me why i encounter this problem ?

Thanks,
Tyler
Tyler
Top achievements
Rank 1
 answered on 26 Mar 2012
10 answers
614 views
kendo.bind() binds the element and all child elements to the viewModel by calling bindElement.
bindElement calls first unbindElement so that works fine if you call kendo.bind() multiple times, e.g. when you want to bind another model to your markup.
But bindElement also creates widgets if an element has a data-role attribute.
unbindElement on the otherhand does not destroy the element. So bindElement will again create the widget when you call kendo.bind() a second time. Should there not be a check if the widget is already created?

So
1) In the bindElement (or somewhere deeper) should bet checked if the widget is already created and if so do not create again
2) Add a parameter to kendo.unbind() to optionally destroy the widgets.
        a) This would be a perfect oppertunity to destroy dom elements like the popup of a dropdownlist ( see http://www.kendoui.com/forums/ui/dropdownlist/how-to-clean-up-dropdownlist-lists.aspx#1991068)
        b) By making it optional you have the oppertinity to keep all your widgets and just only bind a new (view)model to your markup.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
4 answers
118 views
When you want to click on the scrollbar to scroll, the popup is closed.
You can reproduce it in your own demos:
http://demos.kendoui.com/beta/web/dropdownlist/remotedatasource.html

In the current version it is working fine:
http://demos.kendoui.com/web/dropdownlist/remotedatasource.html

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 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
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?