Telerik Forums
Kendo UI for jQuery Forum
1 answer
312 views
It appears that the loading of content into the tabstrip divs is sensitive to any whitespace between the <div></div> tags.

So in the example below html-content-snippet.html will not load in either div (in fact it appears the xhr call is never fired).

Perhaps this is by design but it took me a bit to figure this nuance out.

<div id="tabstrip">
    <ul>
        <li>First Tab</li>
        <li>Second Tab</li>
    </ul>
    <div> </div>
    <div>
    </div>
 </div>
$(document).ready(function(){
    $("#tabstrip").kendoTabStrip({
        contentUrls: ["html-content-snippet.html", "html-content-snippet.html"]
    });
 });
Kamen Bundev
Telerik team
 answered on 01 Jun 2012
5 answers
202 views

I use AJAX-enable WCF service  and kendo ui grid

I want filter data but my code not work .

Plz help me to find  problem

thanks

Wcf service method:

 

 

[OperationContract]
        public IEnumerable<PrpductGroup2> ReadGroupProduct()//int id
        {
            Manager.PrpductGroupManager pGroupManage = new Manager.PrpductGroupManager();
            List<Common.PrpductGroup> pGroupMain = new List<Common.PrpductGroup>();
 
            pGroupMain = pGroupManage.Where(g => g.Type != null).ToList();
 
            List<PrpductGroup2> MG = new List<PrpductGroup2>();
            foreach (var item in pGroupMain)
            {
                var mg1 = new PrpductGroup2();
                mg1.PrpductGroup = item.PrpductGroup1;
                mg1.PrpductGroupID = item.PrpductGroupID;
                mg1.Type = item.Type;
 
                MG.Add(mg1);
            }
 
            return MG;
        }


And my script for grid:

$("#GridPrpductGroup").kendoGrid({
            height: 300,
            autoSync: true,
            navigatable: true,
            columns: [
        { command: ["edit", "destroy"], title: " ", width: "210px" },
              { field: "Type", title: "گروه اصلی کالا" },
              { field: "PrpductGroup", title: "گروه کالا" },
              { field: "PrpductGroupID", title: "ردیف" }
 
            ],
 
            dataSource: {
                schema: {
                    data: "d",
                    total: "d.length",
                    serverPaging: true,
                    serverSorting: true,
                    serverFiltering: true,
                    filter: { field: "Type", operator: "eq", value: idForFilter },
                    model: {
                        id: "PrpductGroupID",
                        fields: {
                            PrpductGroup: "PrpductGroup",
                            PrpductGroupID: { editable: false, nullable: true },
                            Type: "Type"
                        }
                    }
                },
                batch: true,
                 
                pageSize: 6,
                transport: {
                    read: {
           contentType:"application/json; charset=utf-8",                       type: "POST"
                    },
                    update:
                       {
         url:"/EveryOne/ForgotService.svc/UpdateGroupProduct",            contentType:"application/json; charset=utf-8",
           type: "POST"
                             },
                    parameterMap: function (data, operation) {
                     if (operation !== "read") {
                          return JSON.stringify({ properties:data.models })
                        }
                    }
                }
            },
            pageSize: 6,
            scrollable: true,
            sortable: true,
            pageable: true,
            editable: "inline"
 
        });

 

 

 

mina
Top achievements
Rank 1
 answered on 01 Jun 2012
2 answers
114 views
Hi,

I am trying to re-use the code supplied in the demo's page
http://demos.kendoui.com/web/datasource/shared-datasource.html

but the dropdown does not work on IE8. Why is that?
 Attached the code just in case.

Thank you
Claudia
Dimo
Telerik team
 answered on 01 Jun 2012
0 answers
164 views
Hi,

I'd like to have more explanations about the free use of Kendo UI.
Actually it's a bit confuse to me since I'm french.
I'm building up a website as an amateur, but obviously I'll generate some money from the ads (mostly to pay hosting costs).
So Can I use the free GPL licence of Kendo UI on my project?
Julien
Top achievements
Rank 1
 asked on 01 Jun 2012
3 answers
161 views
If the treeview is collapsed is it possible to hover over and have the treeview expand to show child items so I can drop my item on, dont want to have to open up the treeview before dragging onto it from my grid.

Thanks
Gregor
Alex Gyoshev
Telerik team
 answered on 01 Jun 2012
0 answers
219 views
Hello,

My issue sounds like this:

I am trying to persist the selected rows of a grid throw paging.

I have the following SourceCode:

dataBinding: function() {
                    //store the uids of selected rows
                    $("#requestGrid .k-state-selected").each(function() {
                        uids.push($(this).data("uid"));
                    });
                },
                dataBound: function() {
//                    selects first grid item
//                    this.select(this.tbody.find(">tr:first"));
                    resizeGrid();
 
                    if (uids.length != 0) {
                        for (var i = 0; i < uids.length; i++) {
                            var currUid = uids[i];
                            //find and reselect the rows via their uid attribute
                            this.tbody.find("tr[data-uid='" + currUid + "']").addClass("k-state-selected");
                        }
                    }
                },

So..., onDataBinding, I save the selected rows, and, onDataBound, I select the previeous selected rows.

The problem is that when the onDataBound event fires, the page of the grid which contains these Id's is not loaded..., so, the class "k-state-selected" won't be added.

Please help.

Later edit

Hmmmm, it seems that the Uid of the grid is not static..., it changes on each databound or databinding...
Nadisan
Top achievements
Rank 2
 asked on 01 Jun 2012
0 answers
227 views
Hi There,


I have created a mobile application using kendo Mobile UI's trial version in asp.net MVC3.
Here I am facing a problem that whenever I click on any anchor tag/button then its url get appended with the current page's url.
eg:
www.testkendoui.com/CurrentPage_Controller/CurrentPage_Action#/www.testkendoui.com/NextPage_Controller/NextPage_Action


And this causes the next page not to work, and it works after refreshing the next page.


I have tried with :
  1.  data-ajax="false" on all anchor tags and forms.
  2.  adding "http://" with the main URL 
but that all does not working.


Any suggestion would be appreciated.. :)


Thanks in advance .. 
Kritika
Top achievements
Rank 1
 asked on 01 Jun 2012
1 answer
46 views
How can i make use of the popup the way it is being shown in http://demos.kendoui.com/web/grid/editing-popup.html in this example of yours.
Suppose i have custom div and i want that to be in popup like that example.
Albert
Top achievements
Rank 1
 answered on 01 Jun 2012
0 answers
140 views
Hi Everyone,

I am having a list view with a
1.Input box(name)
2.File button for searching file in the computer and
3.Button to save the data

If i enter any name in the text box it will have to search the name in the data base whether the name exists or not and
if any name exists it should show an error already a name exists please enter another and
If i have include any file it should display 1 else 0
when i click the save button when success it has to save the data to database otherwise it has to show an error 


Thanks,
Srinivas
srinivas
Top achievements
Rank 1
 asked on 01 Jun 2012
2 answers
96 views
Hi, I just download and tried a few sample of Kendo UI. It looks and works great! Good job telerik folks.

I have 2 newbie question/or request.

1. Can we have a search function under each sub forum? Right now I only find to search the whole website.
2. When you post the sample code in the demo, can you also post the sample code in the server side to make the demo could be run on a single box without external network dependency?

Thx,
David
David
Top achievements
Rank 1
 answered on 01 Jun 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
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
+? 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?