Telerik Forums
Kendo UI for jQuery Forum
1 answer
146 views

Hi,

I am trying to implement ImageBrowser feature of editor of KendoUI web but not able to make a webmethod call. Since I found sample code for MVC implementation and taken reference  of the same but unfortunately not working for me. Below is my code.

HTML:

 <textarea id="editor" rows="10" cols="15" style="height:200px">Test</textarea>

 

JS:

  $(document).ready(function () {
            $("#editor").kendoEditor({
                imageBrowser: {
                    transport: {
                        read: {
                            type: "POST",
                            contentType: "application/json; charset=utf-8",
                            url: "ManageNotes.aspx/Read",
                            dataType: "json"
                        },
                        //destroy: {
                        //    url: "http://localhost/editor/service/ImageBrowser/Destroy",
                        //    type: "POST",
                        //    dataType: "json",
                        //    contentType: "application/json"
                        //},
                        create: {
                            url: "ManageNotes.aspx/Create",
                            type: "POST",
                            dataType: "json",
                            contentType: "application/json"
                        },
                        //thumbnailUrl: "http://localhost/editor/service/ImageBrowser/Thumbnail",
                        uploadUrl: {
                            url: "ManageNotes.aspx/Upload",
                            //data: "{'type':''}",
                            type: "POST",
                            dataType: "json",
                            contentType: "application/json"
                        },
                        imageUrl: "ManageNotes.aspx/Image?path={0}"
                    }
                }
            });
        });

CS:

  [WebMethod]
       // [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
        public static void Read(string path)
        {
          
        }

Attaching same sample code...  Is there anything I'm missing?

 

 

 

 

Alexander Popov
Telerik team
 answered on 03 Aug 2015
5 answers
399 views
Hi,
I'm trying to bind the multiselect widget to a different source depends on the text.
It means that I need to detect every text change and than re-bind the widget's datasource.
How can I achieve that ?
Is there any event for text change ? (not select event)
btw,  My data source is very big so I can not bring it tio the client and use local datasource , In addition I can not bind it to remote data source cause the data is changing very quickly and updating the entire data (into odata format) is very expensive.

Sagi
Kiril Nikolov
Telerik team
 answered on 03 Aug 2015
1 answer
126 views

Hello,

 Can you please help me for the following problem?

I have a Kendo Window. Now I have added one MultiSelectDropDownList inside the content like below.

@(Html.Kendo().Window()
    .Name("window")
    .Title("Add From Pool")
    .Draggable(false)
    .Modal(true)
    .Width(600)
    .Actions(actions => actions.Close())
    .Visible(false)
    .Events(e => e.Open("copyStructure_Open"))
    .Content(@<table>
        <tr>
            <td colspan="2">
                @(Html.Kendo().MultiSelect()
                  .Name("kMultiSelect")
                  .TagMode(TagMode.Single)
                  .DataTextField("Value")
                  .DataValueField("Key")
                  .Placeholder("Select Office")
                  .AutoBind(true)
                  .HtmlAttributes(new { style = "width:300px" })
                )
            </td>
        </tr>
        <tr>
            <td>
                @(Html.Kendo().Button()
                .Name("btnContinue")
                .Content("Continue"))
            </td>
            <td>
                @(Html.Kendo().Button()
                .Name("btnCancel")
                .Content("Cancel"))
            </td>
        </tr>
    </table>)
)

Now I want to bind the MultiSelectDropDownList each time when window opens using below mentioned Ajax Call.

function copyStructure_Open(e)
{
    $.ajax({
        url: 'Employee/GetEmployeesPool',
        type: 'POST',
        success: function (data) {
            e.sender.content(data);
        }
    });
}

But I am not getting the expected result.

Please help me as I am new to this Kendo UI.

Thanks

Prasanta

Boyan Dimitrov
Telerik team
 answered on 03 Aug 2015
1 answer
303 views

What I am looking for is this:

Assuming I have a column defenition like this and I do grouping by drag and drop:

 columns: [{
field: "productField",

title: ​​​​"Product Title", ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

 

aggregates: [

​​​​

"count"],], ​

 

groupHeaderTemplate:

​

"#= title #:#= value # Count(#= count #)"

 

}]

 

 

 

 How do I get the header to look like like "Product Title: This is a product title Count(5)"? I keep getting title undefined. I am able to access the field but not title for that field.

Radoslav
Telerik team
 answered on 03 Aug 2015
1 answer
171 views

My app is written with aurelia. This uses systemjs and modules are ​isolated (no globals). I need to use a helper in one of my kendo template but loading the helper module returns a promise. By the time the ​promise resolves kendo has already ​executed the template (blank).

Is there a way to tell kendo to wait ?  

<script type="text/x-kendo-template">
  <div>
    #
    System.import('template-helpers').then(function(module){
      var h = new module.TemplateHelper();
      h.format(data)
    });
    #
   </div>
</script>

Petyo
Telerik team
 answered on 03 Aug 2015
1 answer
1.5K+ views
Hi I have this issue for a while and all my attempts to resolve it haven't worked out.

It can be demonstrated here: http://dojo.telerik.com/aKaVI

If you have a clear button the clears the value in the numeric textbox then upon entering the old value in the numeric textbox doesn't trigger the change event.

Steps to reproduce:

a) Add the value 5 in numeric textbox and observe the change event
b) Press clear button
c) Add the value 5 in numeric textbox and notice the change event is NOT triggered.

Do you have a solution for this?

As you can see I have tried editing the _old and the _value but it didn't help.

Thanks
Konstantin Dikov
Telerik team
 answered on 03 Aug 2015
3 answers
200 views
Is there any way to use the router along with a route defined in the query string as in the subject?

I am building a SPA within SharePoint 2010 and I MUST access the page using a URL like  domain.com/site/_Layouts/page.aspx  

I have tried using domain.com/site/_Layouts/folder/ by renaming the page default.aspx but that seems to kill the SP Client Side Object Model.

Is it still possible to use the router? And how?
Phil H.
Top achievements
Rank 2
 answered on 01 Aug 2015
3 answers
670 views
Hi, I'm trying to change whether a column is read-only based on a code event - but column remains editable. Here is my code:
dataSource.options.schema.model.fields.date.editable = (status === "Paid");

any suggestions?

Regards,
Jack
Finys1
Top achievements
Rank 1
 answered on 31 Jul 2015
1 answer
113 views

Hello,

Is there a way to have the Kendo Splitter support vertical scrolling of the child content with the added ability to allow for popup content (like hints or "modal pages") to not get clipped by the boundaries of the splitter panes?

See attached drawing.

Is there anything that can be done to the popup content to make them overflow?

Thanks.

 

Iliana Dyankova
Telerik team
 answered on 31 Jul 2015
2 answers
357 views

Hi,

I want to bind multiple data sources to Scheduler to show consolidated view of events. Each data source has its own schema definitions. So how do I define transport and schema attributes for more than one data source?

Thanks,

Suresh

Suresh
Top achievements
Rank 1
 answered on 31 Jul 2015
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?