Telerik Forums
Kendo UI for jQuery Forum
1 answer
455 views

If I send like this  data: {CusCode:'5555', MktID: "aa"}

0=%7B&1=C&2=u&3=s&4=C&5=o&6=d&7=e&8=%3A&9=%20&10='&11='&12=%2C&13=M&14=k&15=t&16=I&17=D&18=%3A&19=%20&20='&21=a&22=a&23='&24=%7D

When I Use AJAX 

HOW TO USE like this   data: "{Field:'',Text:'',page:1,rows:50000}" and don't enclipe my code

$.ajax({ type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "Service.asmx/M_Portfolio_selMaster",
            dataType: "json",
            data: "{Field:'',Text:'',page:1,rows:50000}",
            async: true,
            success: function (response) {
                var data = (typeof response.d) == 'string' ? eval('(' + response.d + ')') : response.d;
                var tbl;
                data = data.rows;
                if (data.length > 0) {
                    for (var i = 0; i < data.length; i++) {
                        tbl += "<OPTION value='" + data[i]['PortfolioID'] + "'>" + data[i]['PortfolioCode'] + "</OPTION>";
                    }
                    $("#s").html(tbl);
                }
            }
        });

 

 $("#grid").kendoGrid({
                dataSource: {
                    transport: {
                        read: {
                            // the remote service url
                            url: "wsCRM.asmx/crm_FinancialBenefitByCustomer", // GetBBGToADVTransactionsData is our web method

                            contentType: "application/json; charset=utf-8",

                            type: "POST",

                            // JSONP is required for cross-domain AJAX
                            dataType: "json",

                            // additional parameters sent to the remote service
                            data: {
                                CusCode:'5555',
                                MktID: "aa"
                            }

                        }
                    }

            }

});

My Web service asp.net C#

    [WebMethod(EnableSession = true)]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public string crm_FinancialBenefitByCustomer(string CusCode,string MktID)
    {
        CRMDataContext dtx = new CRMDataContext();
        var data = dtx.crm_FinancialBenefitByCustomer(CusCode, MktID, UserID).ToList();

        JavaScriptSerializer js = new JavaScriptSerializer();
        string strJSON = js.Serialize(data);
        //strJSON = "{\"__count\":\"" + data.Count + "\" ,\"results\":" + strJSON + "}";
        return strJSON;
    }

 

Tsvetina
Telerik team
 answered on 13 Jul 2018
3 answers
147 views

Hi All

I'm trying to export the HTML table contents to grid, when I open the spreadsheet, the first column comes with unwanted characters, since it is a hyperlink <a> tag within the <TD> tag. Please refer the example below:

https://dojo.telerik.com/inOGITIL

Please let me know how this can be avoided.

Thanks

Vijhay Devarajan.

 

 

Vijhay
Top achievements
Rank 1
 answered on 12 Jul 2018
4 answers
186 views

We have a media player which gives the following error: (the media player works but the console error is annoying)

 

www-widgetapi.js:99 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided (xxxx) does not match the recipient window's origin (yyyyy)

 

Is there some configuration I can change to enable this? The xxxx url is a youtube url with https at the begining

 

Thanks!

Angel Petrov
Telerik team
 answered on 12 Jul 2018
3 answers
238 views


Hello
I am trying to save kendo PivotGrid state for future load but I can't find a way to save/load the selected feilds (slices) using the "Fields to Include" menu along side with rows,columns and measures.

Is there any way to get and set selected fields in kendo PivotGrid?


Preslav
Telerik team
 answered on 12 Jul 2018
3 answers
158 views

TreeList Column Resize work fine in ltr mode but it doesn't  work properly in RTL Mode
try to resize tree columns in  following example :
http://dojo.telerik.com/OHUje
is there any fix code for this bug ?

Boyan Dimitrov
Telerik team
 answered on 12 Jul 2018
2 answers
1.5K+ views

Hi

 

Is it possible to somewhere download kendo ui not minified source files ( jquery version )?

Wojciech
Top achievements
Rank 1
 answered on 12 Jul 2018
3 answers
1.0K+ views

Hello,

I have some troubles finding out when the grid data is fully loaded and displayed. Is there a way to capture the dataBound event of the grid similar to the one in the jQuery.

I noticed the data state change event also fires before the data is visually displayed, so not an option.

I need to perform an operation with multiple checkboxes, a kind of multiple selection of items so I'm adding "k-state-selected" class to visualize the selected rows.

Kind Regards,

Georgi Mitev

T. Tsonev
Telerik team
 answered on 12 Jul 2018
1 answer
572 views

I have a hierarchical grid that i populate data with 2 page methods. When the page loads the is no problem how ever if i reload the grid the rows wont expand. the detailInit event fires. (if i reload it again after the rows don't expand. then everything loads and functions correctly)

 

function loadGrid(startDate, endDate) {
                $("#rgLeaderBoardByManager").kendoGrid({
                    dataSource: {
                            data: data
                    },                  
                    dataBound: function (e) {
                                    var grid = this;
                                    $(".k-grouping-row").each(function (e) {
                                    grid.collapseGroup(this);
                                    });                  
                    },
                    sortable: true,
                    scrollable: true,
                    detailInit: detailInit,
                    columns: [ 
                        {
                            field: "Manager",
                            title: "Manager"
                        },
                        {
                            field: "TotalSalesByManager",
                            title: "Total Sales"
                        }                                      
                    ]                 
                }); 

                function detailInit(e) {                    
                    var sd1, ed1; 

                    var dateRange = FindControl('<%= rcmLeaderBoardByManagerWidget.ClientID %>').value;

                    switch (dateRange) {
                        case "Today":
                            sd1 = new Date();
                            ed1 = new Date();
                            
                            break;
                        case "Yesterday":
                            sd1 = new Date().Add("D", -1);
                            ed1 = new Date().Add("D", -1);

                            break;
                        case "Week to Date":
                            sd1 = new Date().Add("D", -(new Date().getDay()));
                            ed1 = new Date();
 
                            break;
                        case "Last Week":
                            sd1 = new Date().Add("D", -(new Date().getDay() + 7));
                            ed1 = new Date().Add("D", -(new Date().getDay() + 1));

                            break;
                        case "Month to Date":
                            sd1 = new Date(new Date().getFullYear(), new Date().getMonth(), 1);
                            ed1 =   new Date();

                            break;
                        case "Last Month":
                            var endOfLastMonth = new Date(new Date().getFullYear(), new Date().getMonth(), 1).Add("D", -1);
                            sd1 = new Date(endOfLastMonth.getFullYear());
                            ed1 = endOfLastMonth;
                            
                            break;
                    }

                    CallWidgetHelper("GetLeaderByManagerWidgetData", function (response) {                        
                        $("<div/>").appendTo(e.detailCell).kendoGrid({
                        dataSource: {
                            data: response.d                         
                        },
                        scrollable: false,
                        sortable: true,
                        columns: [
                            { field: "UserFullName" },
                            { field: "TotalSales", title:"User"}                       
                        ]
                        });

                    }, null, "startDate", sd1.format('M/d/yyyy'), "endDate", ed1.format('M/d/yyyy'),
                        "includeCancels", FindControl('<%= hdnIncludeCancels.ClientID %>').value,
                        "includeChecksPending", FindControl('<%= hdnIncludeChecksPending.ClientID %>').value, "managerId", e.data.ManagerId);
                }
            }

Stefan
Telerik team
 answered on 12 Jul 2018
2 answers
1.2K+ views

Hi All

I want to ask about grid, how to call function 'update' in kendo grid from custom function or custom button ?

 

Thank's

Eyup
Telerik team
 answered on 12 Jul 2018
5 answers
735 views
I think it would be helpful to have a "phone" icon in the Kendo UI icon font (KendoUI.ttf and KendoUI.woff).  I'm thinking of something that looks similar to this: http://www.mricons.com/icon/123317/48/phone-icon.  I can use my own font file for this, but it seems like an omission of something that would be useful to multiple people.  I've looked through the font multiple times without finding one, so please tell me if I just managed to overlook it.  Thanks!
Ivan Zhekov
Telerik team
 answered on 11 Jul 2018
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?