Telerik Forums
Kendo UI for jQuery Forum
2 answers
441 views
Maybe i am just old.. but i have worked on this thing all day with no love.

This is my latest:

$(document).ready(function () {
            var selectedRegionId;
            var dsCategories;

            $("#selectCategory").width(180).kendoComboBox({
                dataTextField: "CostDriverCategoryName",
                dataValueField: "CostDriverCategoryId",
                dataSource: dsCategories
            });


            dsCategories = new kendo.data.DataSource({
                transport: {
                    read: "/CostDriver/GetCostDriverCategoriesByRegion/" + $("input[name='region']").val(),
                    data: $("input[name='region']").val()
                }
            });

            $("#selectCommodity").width(180).kendoComboBox({ enabled: false });

            $("input[name='region']").click(function () {
                // alert(selectedRegionId);
                dsCategories.read();
            });
        });



I have a few issues:

1. HOW do you make the "data" parameter in the transport read work for a GET call to an ASP.Net MVC JsonResult controller method? I have searched the docs and these forums. I see people avoiding the wrapper and calling using jquery Ajax directly.. but seriously,, this datasource is a wrapper for Jquery ajax calls.. does it not work????

2. My result is a JSON object that looks like:

[{"CostDriverCategoryId":2,"CostDriverCategoryName":"Chemicals","ShortName":null},{"CostDriverCategoryId":3,"CostDriverCategoryName":"Currency","ShortName":null}
]

What do i need to do to have this result actually bind to the combobox as i defined in the combobox itself? I can get the result from the read by passing the data value right in the URL itself. Fine.. But it does not bind to the combobox.

Thanks.

Nohinn
Top achievements
Rank 1
 answered on 07 Sep 2012
1 answer
669 views
Here below is my code.  How do you get the primay key value.  I can see the correct field in the debugger under
this._data._key.ID=3 this is correct, I just need some help getting that value.  I have searched the forums but couldn't find a working example

Thanks.

function BindData (myArray){
     
         $(document).ready(function() {
 
            $("#grid").kendoGrid({
                dataSource: {
                    data: myArray,
                    pageSize: 10
                },
                   change: onChange,
                selectable: "multiple",
                navigatable: true,
                groupable: true,
                sortable: true,
                pageable: {
                    refresh: true,
                    pageSizes: true
                },
                columns: [ {
                    field: "firstname",
                    width: 90,
                    title: "firstname:"
                },
                {
                    field: "lastname",
                    width: 90,
                    title: "lastname:"
                }                   
                ]
            });
        });
    }
       function onChange(arg) {
                    var selected = $.map(this.select(), function(item) {
                        return $(item).text();
                    });
 ;
 
                     
                    sources.people.select(1)
                  kendoConsole.log("Selected: " + selected.length + " item(s), [" + selected.join(", ") + "]");
     
                }
OnaBai
Top achievements
Rank 2
 answered on 07 Sep 2012
2 answers
407 views

Hi,

I want to change the default text for update and cancel commands when inline editing (edit and destroy commands are not problem). How can I do that?

Also, is it possible to have both inline and popup editing in the same row (but with different commands) ?

Thanks

(sorry for my bad english:)

OnaBai
Top achievements
Rank 2
 answered on 07 Sep 2012
1 answer
137 views
I have a treeview like this structure
A
  1
  2
  3
B
  4
  5
  6

When I select 1, and 2 and click on delete button, the nodes should be deleted. Please suggest me. Thank you.
Nohinn
Top achievements
Rank 1
 answered on 07 Sep 2012
1 answer
103 views
Hi,

I have scenario when we stretch the column width, I want to call a custom method just after stretch complete. That method should reapply the ellipsis (call the plug in ) for long text. How can I achieve  this functionality? I have created a fiddle for this with link http://jsfiddle.net/ravisingh/dWbeP/34/ 



Nohinn
Top achievements
Rank 1
 answered on 07 Sep 2012
4 answers
443 views
This is my code in c#:
public JsonResult SearchRolResults()
        {
            var rol = new Rol { Name = "RolAjax", Domain = "WAF", Id = 123456789 };
            return this.Json(rol);
        }

My code in JS adn HTML:

<ul id="add_window_listview"></ul>

$("#add_window_listview").kendoListView({
        dataSource: {
            transport: {
                read: {
                    url: "/Person/SearchRolResults",
                    type: "GET",
                    dataType: "json",
                    contentType: 'application/json; charset=utf-8'
                }
            }
        },
        template: "<li>${Name} (${Domain})</li>"
    });

The C# ActionMethod is called but the listview not populate !!
How i can debug this scenario??
How i can view the dataSource in debug mode?? (I use chrome now)

Thanks.
Mythox
Top achievements
Rank 1
 answered on 07 Sep 2012
1 answer
511 views
HI :
I'm new on Kendoui, I have searching for a couple of days and I getting crazy, can someone help me to know how can I add a button, on each element of a Listview (PHP/Json) result, to open a modal window, where the customer can enter his reservation information, as Date, Adults and Childrens, here is my JavaScript code:
 

<script>
     $(document).ready(function() {
            var dataSource = new kendo.data.DataSource({
                    pageSize: 8,
                    transport: {
                        read: "tours_lista.php",
                             dataType: "jsonp"
                    },
                    schema: {  
                        data: "data",
                        total: "data.length"
                    }
                     
                });
 
            $("#pager").kendoPager({
                dataSource: dataSource,
                 
                 
            });
 
            $("#listView").kendoListView({
                dataSource: dataSource,
                   
                template: kendo.template($("#template").html())
            });
             
        });
</script>

Here is my HTML code :

<div id="intro" >
        <H3>TOURS</H3>
    <div id="listView"></div>
    <div id="pager" class="k-pager-wrap"></div>
    <script type="text/x-kendo-tmpl" id="template">
      <div class="product">
           <a class="t-link"  href="inicio.php?action=detalle&tourid=${recid}"><img  src="controlc/test/${main_pic}" title="Ver detalles de ${tit_esp}" /></a>
            <h3>${tit_esp}</h3>
            <dl>
                <dt>Adulto: </dt>
                <dd>$ ${rate_adult}</dd>
                <dt>Niño: </dt>
                <dd>$ ${rate_child}</dd>
                 
            </dl>
             <div style="text-align:right;float:right;border:0px solid red;padding-top:7px;padding-left:5px;width:250px;height:30px;">
             </div>
        </div>
    </script>
    </div>
     <!-- end .intro -->

Attached is an image that explain a little mor what I need to do. In advances, thank you !!

Hector
Nohinn
Top achievements
Rank 1
 answered on 07 Sep 2012
0 answers
50 views
Hi,

Cant see why this project isn't showing any data in my grid ? (bin folder removed due to size constraints)
Can anyone advise ?...

Thanks - Paul.
Paul
Top achievements
Rank 1
 asked on 07 Sep 2012
2 answers
249 views
Hello everyone!

What's the best mobile emulator either as a "Standalone" or Browser plugin? What do you use to test your mobile app against Android and iPhone simulation?

Thanks!
Kamen Bundev
Telerik team
 answered on 07 Sep 2012
0 answers
101 views
Hi,

 
       Kendo Grid Tag All, Just Tags the records of the Current Page.... It doesn't Tag all the Records...

i.e Suppose paging is enabled for a Kendo grid (per page 25 records and we have 250 records overall). Now if we click on a button tagAll, It just Tags the records in page 1 (25 records) not all the 250 Records....
How to overcome this scenario.

Currently... paging is done on client side... can the above issue be resolved using server side paging.. If yes, then how can we Implement a server side kendo grid paging along with tagging/Untagging all records.

                              Thanks in Advance
Jayalakshmi
Top achievements
Rank 1
 asked on 07 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?