Telerik Forums
Kendo UI for jQuery Forum
3 answers
283 views
I am new to Kendo UI as well as MVC 4 ... i am trying to use this Kendo UI calender in a view but its not showing up... what am i missing ... I am using basic MVC 4 template in Visual studio 2010 and included all js and styles in it

I have given proper js and css links in _Layout.cshtml

Plz help
Kushal
Top achievements
Rank 1
 answered on 07 Sep 2012
3 answers
742 views
is it possible to programmatically apply a filter to the grid onload?
i.e. the filter when loaded already has a filter applied?

thanks 
John
Top achievements
Rank 2
 answered on 07 Sep 2012
0 answers
96 views
Hello,
I use Kendo Grid. I need create template filter for each column. How I can do it?
Iliya
Top achievements
Rank 2
 asked on 07 Sep 2012
2 answers
471 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
701 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
439 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
162 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
109 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
461 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
536 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
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
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?