Telerik Forums
Kendo UI for jQuery Forum
7 answers
80 views
After the last update the sublimevideo.net player no longer works inside a div with data-role="view". It used to work with Q2 release.

Here is an example of the problem. http://www.grapto.com/mobile/publication/65/331?auto=false

There is a problem with the Play button. If i start the video using javascript then everything is ok.
Petyo
Telerik team
 answered on 03 Dec 2012
3 answers
251 views
Hi,

I have a scrollView with HTML DIVs  as its contents. I am having difficulty centering the DIV content. It is fine when I am just using plain images, but once I start using DIVs, then everything gets aligned to the left.

Also, I couldn't get each item closer to each other.

Here's how the code looks like. Can somebody help me on this please? Many thanks in advance!


<!--Scrollview container-->      
        <div id="scrollview-container">
            <div data-role="scrollview" id="scrollview" data-page="1">
                                
                <div data-role="page">
                    <!--What is your nickname-->
                    <div id="YourNickname">
                    <div class="picture_box">
                        <img src="images/conversation/yournickname2.png" class="shareble_image" />
                            <div class="social">
                                <div class="shareit"><img src="images/conversation/shareIt.png" /></div>
                                <div class="facebook"><a href="#"><img src="images/conversation/facebook.png" /></a></div>
                                <div class="tweet"><a href="#"><img src="images/conversation/tweet.png" /></a></div>
                                <div class="instragram"><a href="#"><img src="images/conversation/instragram.png" /></a></div>
                                <div class="download"><a href="#"><img src="images/conversation/download.png" /></a></div>
                            </div>
                     </div>
                     </div> 
                </div><div data-role="page">
                    <!--Most Embarrassing girl moment-->
                    <div id="GirlMoment">
                    <div class="picture_box">
                        <img src="images/conversation/girl-moment2.png" class="shareble_image" />
                            <div class="social">
                                <div class="shareit"><img src="images/conversation/shareIt.png" /></div>
                                <div class="facebook"><a href="#"><img src="images/conversation/facebook.png" /></a></div>
                                <div class="tweet"><a href="#"><img src="images/conversation/tweet.png" /></a></div>
                                <div class="instragram"><a href="#"><img src="images/conversation/instragram.png" /></a></div>
                                <div class="download"><a href="#"><img src="images/conversation/download.png" /></a></div>
                            </div>
                     </div> 
                     </div>
                </div>


            </div>
        </div>
        <!--END: Scrollview container-->




Regards,
Antonio
Petyo
Telerik team
 answered on 03 Dec 2012
2 answers
253 views

I have an application based around a Kendo treeview, which displays fairly complex hierarchical data (with html passed via a kendo datasource).

 

This works fine in IE 8,9 and 10, and also Chrome. However, when using IE7 (or IE8 in compatibility mode), there are two issues:-

  •  If the number of parent items exceeds the div height, the treeview isn't clipped (although the div scrollbar is shown), resulting in the treeview overwriting other interface elements.
  • Initially the expand arrows are shown, but all except the top level arrows have a tendency to disappear when hovered over.

The treeview is defined as a div:-

<div id="AjaxTreeView" style="height:600px; width:490px;" ></div>
</div>

And then initialised on the page load:-

var treeSource = new kendo.data.HierarchicalDataSource({
            schema:{
                model:{
                    hasChildren: "HasChildren",
                   
                     
                    children: "Items",
                    id:"Id"
                    
                }
            }
             
        });
 
         
 
$('#AjaxTreeView').kendoTreeView({
            dataSource: treeSource,
            template: "#=  item.Text # ",
            loadOnDemand: false,
            dragAndDrop: @ViewBag.DragDrop,
            select: onSelect,
            dragstart: onNodeDragStart,
            drag: onNodeDragging,
            drop : onNodeDrop
});

The drag/drop option is set via the .NET MVC view bag, based upon a users permissions.

Unfortunately, IE7 is still the default browser for most of the users who will use this application, and it would be nice to enable the application to work with it, rather than have to get them all to upgrade.

Thanks

AP
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 03 Dec 2012
1 answer
98 views
Hi,

I have used the ThemeBuilder on my page where I have widgets like Rich Text area, Grids, Slider etc. 
Edited and made some changes in appearance and copied and saved the output as a CSS file.
Included it on the page, but the page still takes the old style. Changes in the new stylesheet made with the Themebuilder are not reflecting.

Below are my stylesheets on the page and the last one is the output CSS file of the ThemeBuilder.

<apex:stylesheet value="{!URLFOR($Resource.kendoMetro, '/kendoNew/styles/examples-offline.css')}"/>
        <apex:stylesheet value="{!URLFOR($Resource.kendoMetro, '/kendoNew/styles/kendo.common.min.css')}"/>
        <apex:stylesheet value="{!URLFOR($Resource.kendoMetro, '/kendoNew/styles/kendo.metro.min.css')}"/>
        <apex:stylesheet value="{!URLFOR($Resource.kendoMetro, '/kendoNew/styles/kendo.dataviz.metro.min.css')}"/>         
        <apex:stylesheet value="{!URLFOR($Resource.kendoMetro, '/kendoNew/styles/kendo-theme.css')}"/>  

Thanks,
Vishnu
Dimo
Telerik team
 answered on 03 Dec 2012
1 answer
213 views
Hi,

I am new to this kendo ui. so i am facing some issues in this. Any sort of suggestion would help me to complete this part. I am having two questions in below code

 I am having a popup class outside of kendo ui(social networking login popup) which is working fine in all parts of the page.But if i keep that class inside kendo ui, popup is not working. I want to know if kendo ui does not allow out side class to use inside it.

Other one is in the below code near user_id field can how can i use iframe in popup style to call links from different websites

<script>
   $(function() {   
                     $("#grid").kendoGrid({
                dataSource: { 
                  transport: {
                        read: "data/jobs.php"
                    },

                    
                 sort: { field: "date_created", dir: "desc" },
                    schema: {
                        data: "data",
                        total: function(response) {
                        return $(response.data).length;
                       
                    }
                    }, 
                   pageSize: 15
                  
                },
                filterable: true,
                groupable: true,
                sortable: true,
                pageable: true,
                height: "525px",
                width: "100px",
                columns: [{ field: "title",title: "Title", template: "<a id='title' href='showbill.php?id=#=data.billorder_id#'>#=title#</a>"  }, 
                             { field: "city",title: "Location"},
                           { field: "date_created", title: "bill Posted" }, 
                           
                       { field: "user_id",filterable: false,title: "Status", template: '#=Getvalue(user_id,billorder_id,bill_applied)#' }  
                // i want to know how can i use iframe to load outside link in a popup style.                                   ]
                                              });
                               }); 


                          function Getvalue(value,id,bill) {
                           
                              var mid = id;
                           if (value > '0')
                           { 
                        var   value = "Applied";
                            return "<b>"+ value + " ON "+ bill + " </b>"; 
                              
                        }
                                else {
                                  var value = "Apply"; 


// this class is not calling any popup. 
                                return "<a href="#" class="outsideclass">"+ value + " ON "+ bill + " </a>"; 

                                                 }
                              }
                        
   </script>
   
Alexander Valchev
Telerik team
 answered on 03 Dec 2012
1 answer
50 views
Is there a way to remove most of the surrounding chrome around the grid. I need a plain grid with a simple bar for the title and results.

Think: Simple banking report
Alexander Valchev
Telerik team
 answered on 03 Dec 2012
0 answers
116 views
UPDATE: Much easier using JQuery

var tabQuery = $('#workTabs  .k-tabstrip-items .k-item .k-link').filter(function () {
        return $(this).text() == tabName;
    });




I am creating Tabs dynamically and need to access the tab later to test if it already exists and add/change content.

I have a function to do this but it only works in IE and not firefox. There must be a better more JQuery way of doing it.
I have tried adding an ID field to the Tab when I create them and then using a selector but this dd not work. Any suggestions?
function findTab(tabs, tabName) {
    var i = 0;
    var foundTab;
    while (true) {
 
        var next = tabs.tabGroup.children("li").eq(i);
        if (next && next.length > 0) {
            var tabText = next[0].innerText;
            if (tabText == tabName) {
                // found
                foundTab = next;
                break;
            }
        }
        if (!next || (next.length == 0)) {
            break;
        }
        i++;
    }
 
    return foundTab;
}
Gary
Top achievements
Rank 1
 asked on 02 Dec 2012
2 answers
3.3K+ views
Hello,

I have a Kendo grid with popup row editing. Each row is updated via an ajax call which takes 3-5 seconds to come back from the server. The problem I'm having is this
* User clicks on Edit for a row, edits fields in popup, hits Update, AJAX call fires and popup closes.
* User clicks edit on another item and is editing fields. At this time the previous AJAX calls success handler fires and does a datasource.read() to refresh the grid. This closes the open popup editor for the item.

So my questions are:

1. Is it possible to set configuration to refresh only a single row on the grid?
2. If not, is there a workaround?

Thanks.
Eric
Top achievements
Rank 1
 answered on 30 Nov 2012
1 answer
190 views
We're trying to get the following scenario to work with no luck - can anyone shed light on this?

We have a jQuery template with a Kendo Autocomplete control inside (an input). The input must be bound to a remote datasource to allow filtering the results on the server. The input is used to pick a code from a set of 20,000+ codes, and the user can select more than one code, thus the input is templated - make sense? The user picks a code, then if another is desired they hit the "another code" button and the template fires off and a new Autocomplete control is born and so on.

We've spent days trying to get this to work but the combination of the Kendo autocomplete inside the jQuery template, plus the remote data source (which never works), plus ultimately binding the selected code to a model via Knockout, all that together paints a very complex picture. 

Here are some scenarios we did get working but none suffice for our project:

- use local data instead of a delegate to remote data. This is not good because it requires us to pull back 20,000+ possible codes onto the client

- binding the selected code to a model via Knockout - this actually works fine

Can anyone shed light? Thanks in advance!
Burke
Top achievements
Rank 1
 answered on 30 Nov 2012
1 answer
599 views
I saw some examples using Kendo UI autocomplete text box with templates. 
http://demos.kendoui.com/web/autocomplete/template.html
However I could not find an example that uses templates on auto completion using
kendo.observable

My approach is that I use MVVM observable to binds the data to an input box as below.

<div id="form-container">
    <h2>
        Advisors</h2>
    Select Advisor:
    <div class="autocomplete">
        <input id="div-template" data-role="autocomplete" data-text-field="AdvisorName" data-filter="contains" data-bind="source: advisorsSource, value: selectedAdvisor" />
    </div>
</div>
 
<script type="text/javascript">
 
    $(document).ready(function () {
 
        var viewModel = kendo.observable({
            advisorsSource: new kendo.data.DataSource({
                minLength: 2,
                template: '<tr>' +
	                    '<td>${ AdvisorCode }</dt><td>${ AdvisorName }</td><td>${ Organisation }</td>' +
        	          '</tr>',
                transport: {
                    type: "json",
                    serverFiltering: true,
                    read: "Home/Advisors",
                    parameterMap: function(options, operation) {
                        if (operation !== "read" && options.models) {
                            return {
                                models: kendo.stringify(options.models)
                            };
                        }
                        return {
                            prefix: options.filter.filters[0].value
                        };
 
                    }
                },
                schema: {
                    model: { id: "AdvisorCode" }
                }               
            })
        });
 
        kendo.bind($("#form-container"), viewModel);
    })
 
</script>

MVC Action:

public JsonResult Advisors(string prefix)        {

                      var list = new List<Advisor>()

                           {

                               new Advisor { AdvisorCode = 002, AdvisorName = "Alex" , Organisation = "Blue Co"},

                               new Advisor { AdvisorCode = 003, AdvisorName = "Foo" , Organisation = "Yellow Co"},

                               new Advisor { AdvisorCode = 004, AdvisorName = "Smith", Organisation = "Green Co" },

                               new Advisor { AdvisorCode = 005, AdvisorName = "David", Organisation = "Yellow Co" },

                               new Advisor { AdvisorCode = 006, AdvisorName = "Alex" , Organisation = "Blue Co"},

                               new Advisor { AdvisorCode = 007, AdvisorName = "Foo" , Organisation = "Yellow Co"},

                               new Advisor { AdvisorCode = 008, AdvisorName = "Smith", Organisation = "Green Co" },

                               new Advisor { AdvisorCode = 009, AdvisorName = "David", Organisation = "Yellow Co" }

                           };

            return Json(list, JsonRequestBehavior.AllowGet);

        }

The auto completion works ok.  However it only shows  AdvisorName. It seems like my template does not work. I need to display multi-column (AdvisorCode, AdvisorName, Organisation) in the drop down, and the search should be based on any of these columns ( not just the AdvisorName). Can you please advise me on how to use the template and make the search based on multiple columns?

King Regards,
Raj

Burke
Top achievements
Rank 1
 answered on 30 Nov 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?