Telerik Forums
Kendo UI for jQuery Forum
0 answers
141 views
Hi All,

Is it possible to specify the column data type (for filtering/sorting purposes) in the Grid Columns array, rather that the DataSource Schema?  I know I can do it with a Schema - but I would like to just manage one collection of columns and would like to fully configure the Grid in one spot.

My initial thought is no - since the Schema is applied to the DataSource, I would imagine all datatype definitions have to be done at that level rather than the Grid level - but I thought I would ask!
Matt
Top achievements
Rank 1
 asked on 24 Jan 2012
1 answer
226 views
Hi All,

I am binding a Grid to a local DataSource.  It is working great UNTIL I add the groupable: true property to the Grid config.  Once I do that I get the following error in Firebug:
Uncaught TypeError: Cannot call method 'replace' of undefined
d.extend._Deferred.f.resolveWithj
v
d.support.ajax.d.ajaxTransport.send.c

The error suggests that I am trying to use an Ajax transport, but I never specify that.  Do I need to somehow specify a local datasource implicitly?

I am getting this error when I init the grid, before I add data to my datasource.  Everything else works really well (sorting, row templates, etc).

Here is my DataSource:
$.xxxx.voice.localData.agentHGDS = new kendo.data.DataSource({
    data: $.xxxx.voice.localData.agentHGData /* This is my data array*/
});

Here is my Grid:
var rowTemplate = "<tr class='s#= HGInfo.CurrentState #'>" +
        "<td>${ AgentInfo.CSLAgentId }</td>" +
        "<td>${ AgentInfo.CSLAgentName }</td>" +
        "<td>${ HGInfo.Number }</td>" +
        "<td>${ $.xxxx.utils.getCSLStateDisplay(HGInfo.CurrentState) }</td>" +
        "<td>${ $.xxxx.utils.formatJSONTimeCasual(HGInfo.CurrentStateDateTime) }</td>" +
        "<td>${ HGInfo.GroupCalls }</td>" +
        "<td>${ AgentInfo.OutboundCalls }</td>" +
        "<td>${ HGInfo.OpportunitiesMissed }</td>" +
        "</tr>";
 
 
$("#grid-id").kendoGrid({
    dataSource: $.xxx.voice.localData.agentHGDS,
    sortable: { mode: "multiple" },
    height: 250,
    groupable: true, /* if I take this line out, the error goes away and all is right with the world */
    rowTemplate: rowTemplate,
    columns: [{ field: "AgentInfo.CSLAgentId", title: "AgentId", width: 20 },
          { field: "AgentInfo.CSLAgentName", title: "AgentName", width: 20 },
          { field: "HGInfo.Number", title: "HuntGroup", width: 20 },
          { field: 'aaa', title: "State", width: 20 },
          { field: "HGInfo.CurrentStateDateTime", title: "StateTime", width: 20 },
          { field: "HGInfo.GroupCalls", title: "# GroupCalls", width: 20 },
          { field: "AgentInfo.OutboundCalls", title: "# OutboundExt", width: 20 },
          { field: "HGInfo.OpportunitiesMissed", title: "# OppMissed", width: 20} ]
});

Any ideas?  Is it data related (data values I mean).
Matt
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
242 views
I am working on creating a new site and would like to use the Kendo tools for it. One of the design elements presented to me is a "tabbed" window. In this case, the tabs are built into the window title bar and the content of the window changes based on what tab is clicked. Is there a way to get the tab control and the window control to work together so that the tabs cab be put into the title of a window and the content of the window change based on the tabs?
Dimo
Telerik team
 answered on 24 Jan 2012
0 answers
196 views
i have a problem with window popup. Window's content  is open in page not in popup.
You can see online this file on.
1.click on Publish and see the first grid ,there are "Presentation" column .
2.In that column click on "Align" link and see the window is not popup .
http://98.130.153.40/botCreaterNewIdFor.html?id=4e5bb37258200ed9aabc6e61
here is my code
//window code

 $(".facetsProperty").click(function(){
                         var window = $("#windowFacets  "),
                        undo = $("#undo")
                                .bind("click", function() {
                                    window.data("kendoWindow").open();
                                    undo.hide();
                                });
                    var onClose = function() {
                        undo.show();
                    }
                    $("#close4").click( function (e) {
                        window.data("kendoWindow").close();
                    });
                   if (!window.data("kendoWindow")) {
                        window.kendoWindow({
                            resizable: true,
                            width: "500px",
                            scrollable:true,
                            title: "Facets Of Property",
                            close: onClose
                        });
                    }window.data("kendoWindow").open();
                        });           

//display  grid data in templates

 <table class="publish0 tableGrid" >
                <thead>
                    <tr>
                        <th>Property ID</th>
                        <th>Data Type</th>
                        <th>Presentation</th>
                          <th>Prompt</th>
                            <th>Source</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td colspan="4"></td>
                    </tr>
                </tbody>
            </table>
            <script id="templatePublish0" type="text/x-kendo-template">
            <# for (var i=0; i< messages[0].property_groups[0].bot_property_group_view[0].properties_in_view.length; i++) { #>
                <tr>
                    <td>
       #= messages[0].property_groups[0].bot_property_group_view[0].properties_in_view[i].property_id #
    </td>
    <td>&nbsp;</td>
    <td> <a href="\\#" id="windowFacets displayText5"  class="k-group facetsProperty " onclick="javascript:toggle5();">
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[6].name #
    </a> </td>
        <td>
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[0].value #
    </td>
        <td><a href="\\#" id="windowSource displayText4"  class="k-group sourceProperty " onclick="javascript:toggle4();">
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].value_source.source_type #
</a>    </td>
    
                </tr><# } #>
            </script>

//pop up code it is hide by default , when user click on "#=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[6].name # " link then it is open but now it open in page not in popup.

 <div id="windowFacets">
        <div id="gridFacets"></div>
        <p align="center">
          <input type="button" value="OK" id="close4" class="k-button"/>
          &nbsp;
          <input type="button" value="Cancel" id="close" class="k-button"/>
        </p>
      </div>
Mahesh
Top achievements
Rank 1
 asked on 24 Jan 2012
3 answers
342 views
Hi, I've been playing around with Kendo UI and am currently testing loading a grid from a HTML table. I also am also testing with and without a row template. One problem that I'm having is I want to include some Javascript that dynamically creates a button when the page loads (for each row). I'm using this in a lot of other places on my site and I'd just like to do the same thing here. I can't seem to include any sort of script tag in the HTML table or when using the row template, it all gets removed. The important thing isn't so much showing a button, but just the ability to execute Javascript inside of a column in each row. Any way to do this?
John Thompson
Top achievements
Rank 2
 answered on 24 Jan 2012
3 answers
420 views


Hi everyone! I'm testing this new API and i really like it, but I'm trying to put a personal button in a kendoGrid field, but i don't really know how to made this.

I look in the documentation, and anything in it help me to solve my problem.

I've tried to put some HTML in it, but i didn't find an associated type for HTML insertion.

So how can i instantiate a button in my kendoGrid.

Thank you !
 
Amol
Top achievements
Rank 1
 answered on 24 Jan 2012
2 answers
91 views
Can I get an example of how to do this in MVC 3, as I tried implementing the example into my mvc 3 application, and cannot get it to work.
Mark
Top achievements
Rank 1
 answered on 24 Jan 2012
0 answers
128 views
Hello All,

I am new to kendo ui. I have used grid and used template. It is very fine with mozila but in IE8 it show that it has error on line 3 of kendo/js/jquery.min.js

on IE it is now showing drop of kendo ui.

I have no clue to resolve this issue.

Please tell me solution if any one already faced this issue.

Thanks in advance

Regards,
Ashok
Ashok
Top achievements
Rank 1
 asked on 24 Jan 2012
0 answers
113 views
On alpha-numeric strings, I'm kinda glued to an "Asciibetical" sort due to how strings are sorted.

Does the datasource control have any injection points to override the default sort comparer for strings?
Joel
Top achievements
Rank 1
 asked on 24 Jan 2012
0 answers
245 views
Hi again,
There's an issue with the k-textbox style in the black theme. The color is set to #FFFFFF, and since the bg is also white, the text is invisible.
You can appreciate that easily in the validator demo if you switch to the black theme:
http://demos.kendoui.com/web/validator/index.html

Also, i see in the fourm that k-textbox is the suggested class to style regular textboxes similarly to other kendo input controls, but they don't really look similar in some cases, you can see in the same demo that the regular textboxes look quite different to the autocomplete (border, hover effects...).
Should I be using another class or is this something that needs to be fixed?

Thanks!

Andrés
Andrés
Top achievements
Rank 1
 asked on 24 Jan 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?