Telerik Forums
Kendo UI for jQuery Forum
1 answer
133 views
Can't Send Start/End Date to Server

When, I save my event the start and end dates don't get posted to the server. I can override the save event and do something like this. 
e.event.start = kendo.toString(e.event.start, "u"); The values are then saved and the records it successfully added to the database.

Why does this happen? 

Vladimir Iliev
Telerik team
 answered on 24 Jul 2014
1 answer
149 views
Example of Post from Scheduler MVC Controller
I need an example of how to setup a SchedulerDataSource so that it is posted to the server. Currently the data is sent in the query string. 

create: {
      url: "/Event/SaveEvent",
      contentType: "application/json",
}

I tried adding type:POST to the create action but that didn't work. 
Vladimir Iliev
Telerik team
 answered on 24 Jul 2014
4 answers
252 views
Is it possible to support the TAB key when an item is partially selected so that it will resolve to the highlighted item?  For example if my MultiSelect contains an item "Apple" and I start typing "App", I would like to be able to hit TAB and have it resolve to the highlighted item which would be "Apple" in this case.

Thanks,
Blake
Blake
Top achievements
Rank 1
 answered on 23 Jul 2014
0 answers
258 views
Hi, I'm using Kendo UI for the web (i.e., not a mobile app, just HTML). I'm looking to load a PDF from an external link into a window when a button is pushed on a mobile device. The problem is, on my Android device, when I load the PDF into the window (with iframe), the browser just downloads it like a normal browser download...and the window remains empty.

Question: is the Window an appropriate way to do this? I'm open to other suggestions...I just need to display a PDF, not have it downloaded by the browser download functionality.

Another approach I could take is to load a byte stream of the PDF from the server and somehow render it from there...but I guess that would require a widget that understood how to render PDFs.

Any ideas? My current code is below:

        $(".search-result-button-area button").click(function() {
            var url = $(this).attr('data-theUrl');
        
            $("#window1").kendoWindow({
                actions: ["Custom", "Pin", "Refresh", "Maximize", "Minimize", "Close"],
                draggable: true,
                modal: true,
                pinned: false,
                resizable: true,
                title: "The Thing",
                content: url,
                iframe: true
            });
        });

<div id="window1"></div>



Rider333
Top achievements
Rank 1
 asked on 23 Jul 2014
1 answer
2.1K+ views
Hello,

I understand how the DataSource.read() functionality works; I send a JavaScript plain object and the parameters and values are sent to the server. That all works well. I also understand how the data object works under the read transport; that won't work in this instance, because the ViewModel that has the data I need upon search isn't created until after the DataSource itself. I don't want to use require.js if I don't have to :)

But, what if I have a DataSource that has server paging (I use the skip and take parameters on the server to process the request) and I send a plain object when I read? How do I persist the query parameters after I go to the next page in a Data Grid?

For instance:

*** DataSource ***

var rfqDataSource = new kendo.data.DataSource({
  schema: { model: { id: "RFQ" }, data: "RfqQuotes", total: "total" },
  transport: { read: { url: window.rfqQuotePath, dataType: "json" } },
  serverPaging: true,
  pageSize: 15
});

*** Call to read the datasource after a search button is clicked ***

rfqDataSource.read({ customer: rfqModel.customer, startDate: rfqModel.startDate });

The Grid that is bound to the DataSource filters correctly, but as soon as I go to the next page, the read parameters are lost. Better yet, if I'm on page two of the Grid before I do a search, and do the search, the Grid may show no results at all depending on how many pages of actual data are returned.

So, I want to be able to send parameters to the API and persist those parameters until I search again or clear the search parameters.






Alexander Popov
Telerik team
 answered on 23 Jul 2014
2 answers
4.3K+ views
can some one tell me how to set the grid row height? thanks 
I tried using a row template but doesn't work.

<script id="rowTemplate" type="text/x-kendo-tmpl">
            <tr style="height=10px">
                <td> etc


also tried
$("#grid").kendoGrid({
                columns: [
                    { title:"col1", field: "COL1", width: 100, height:10 },

thank in advance
Dimo
Telerik team
 answered on 23 Jul 2014
1 answer
204 views
I copied the demo code for grabbing selected nodes. This is bound to dataSource.bind("change", function). Is there anyway to specify what kind of change to the dataSource. In my case, I want to bind specifically to a check or an uncheck of a checkbox. I would like it to discern between that and appending nodes to the tree and other changes to the dataSource.
Alex Gyoshev
Telerik team
 answered on 23 Jul 2014
2 answers
271 views
In grid documentation I found collapseGroup and expandGroup method.
I need some custom action when user collapse or expand group. In documentation I found detailCollapse and detailExpand event, but not groupCollapse and groupExpand.
Is there any way to catch this 2 events?
Matjaz
Top achievements
Rank 1
 answered on 23 Jul 2014
2 answers
303 views
Hi,

I am trying to implement cascading drop down on client side. 

I have two data sources. one for Organizations and second one for Locations. Organizations json has Id and Name. Locations json has Id, Name and OrganizationId (reference to Organizations). Once the user selects Organization in the first drop down I want to show relevant values in the second drop down. Also, user can directly select a location with out selecting an organization.

I am trying to populate the Locations drop down along with a custom attribute to to indicate the organization that it belongs. I am trying to use Attr binding and its not working. I am not sure If I am using it the right way.

Data Source: 
var locations = new kendo.data.DataSource({
    schema: { model: { id: "Id" } },
    transport: {
        read: {
            url: '/Org/Locations',
            datatype: 'json',
            type: 'GET'
        }
    }
});

Model:
var homeModel = new kendo.observable({
    organiztion: organizations,
    location: locations,
    selectedOrg: null,
    selectedlocation: null,
});

View:
<input name="Locations"
                       data-role="dropdownlist"
                       data-bind="source: location,value: selectedLocation, attr:{org:OrganizationId},"
                       data-value-primitive="true"
                       data-text-field="Name"
                       data-value-field="Id" />

Output that I am expecting is something like this
<select>
   <option value="10" org="2">USA</option>
</select>
Alexander Valchev
Telerik team
 answered on 23 Jul 2014
10 answers
1.9K+ views
Hello,

I am referring to SchedulerCustomEditor Project and in CustomEdiotTemplate.cshtml file i am adding a button and on click of button i want to load another Pop up window with a grid. The Moment i add window open code in button click Event the custom Editor Pop up stops coming.
Atttached the

Attached my template file and TestClick Event to Show Pop up window

Thanks

Anamika
Anamika
Top achievements
Rank 1
 answered on 23 Jul 2014
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
Drag and Drop
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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?