Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
276 views
Hi

I am working with Radgrid which has columns like -

-->Name            Unit/Currency            Jan 11        Feb 11    Mar 11    Apr 11    .....     Dec 11        Total_of _12_months

Now I want horizontal scroll but columns; Name , Unit/Currency and Total_of _12_months to be fixed. So i am looking for 2 columns on left of grid and one column on right side of grid to be fixed. is there a way to achieve in Radgrid with existing features? How to achieve tht?

Thanks,
Pradip
Marin Bratanov
Telerik team
 answered on 17 Jul 2018
4 answers
152 views

Team Telerik,

I've encountered what appears to be a bug with the RadMaskedTextBox.set_value() method in ASPNet UI 2015.1.401.45

When called, the RadMaskedTextbox doesn't reflect the new value until you mouse click into the field.

Work Around:

Call RadMaskedTextbox.focus() immediately after RadMaskedTextbox.set_value(). It's a little tacky, but it works.

Can you guys fix this for 2015 Q2? That'd be great. Thanks.

- Jonathan

Peter Milchev
Telerik team
 answered on 17 Jul 2018
7 answers
240 views

I tried the following client-side code without success. If the node has no image, you can successfully set  the node to point to an image but you cannot remove the image after that. In other words, the following does not change anything, the current image remains assigned:

node.set_imageUrl(null);
node.set_expandedImageUrl(null);

Setting the value to an empty string (instead of null) does not work either. Any suggestions?

Thanks,
Nuri

Peter Milchev
Telerik team
 answered on 17 Jul 2018
2 answers
267 views

Hi There,

I am using the Bootstrap skin and want a 'pure' white background for the menu (and other controls).

But the skin is semi transparent.  I've tried a plain hack of the css to remove the transparency settings but that seems to have little effect.

Any pointers on how to get rid of the transparency would be appreciated.

 

Thanks

Craig

Craig Holmes
Top achievements
Rank 1
 answered on 17 Jul 2018
0 answers
167 views

I try to import dynamic import of a excel into the spreadsheet for the droopdown selected index changed but i could not able to upload this one successfully

here my code

<script>

    $("#spreadsheet").kendoSpreadsheet({
        excel: {
            // Required to enable Excel Export in some browsers
            proxyURL: "https://demos.telerik.com/kendo-ui/service/export"
        }
    });
    var data = [
                       { text: "Spreed sheet 1", value: "1" },
                       { text: "Spreed sheet 2", value: "2" },
                       { text: "Spreed sheet 3", value: "3" }
    ];
    function onOpen() {
        //kendoConsole.log("event: open");
    };

    function onClose() {
        //  kendoConsole.log("event: close");
    };

    function onChange() {
        //kendoConsole.log("event: change");
    };
    function onDataBound(e) {
        //if ("kendoConsole" in window) {
        //   kendoConsole.log("event :: dataBound");
        //}
    };

    function onFiltering(e) {
        // if ("kendoConsole" in window) {
        //  kendoConsole.log("event :: filtering");
        //}
    }
    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
    
    //var sheet = spreadsheet.activeSheet();
    //sheet.setDataSource(data1);
    function onSelect(e) {
        //if ("kendoConsole" in window) {
        if (e.item) {
            alert();
                return $.ajax({
                    method: "GET",
                    url: "ExcelToJson",// the return json will be var data1 = [
  {
      "a": 1.0,
      "b": 2.0,
      "c": 3.0
  }
    ]
                }).then(function (data) {
                    if (data.success == false) {
                        //ConfirmMessage.showErrorMessage(data.messages[0]);
                        return new $.Deferred().reject().promise();
                    } else {
                        console.log(data);
                       //$("#spreadsheet").html("");
                       //$("#spreadsheet").kendoSpreadsheet();
                       //var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
                       //var sheet = spreadsheet.activeSheet();
                       var data_new = data;
                        // alert(data_new);
                       spreadsheet.fromJSON(data_new);
                      //  sheet.setDataSource(data_new);
                    }
                });
           
            //$.ajax({
            //    url: "ExcelToJson",
            //    cache: false,
            //    type: "POST",
            //    success: function (html) {
            //        $("#spreadsheet").kendoSpreadsheet();
            //        var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
            //        var sheet = spreadsheet.activeSheet();
            //        sheet.setDataSource(data);
            //    }
            //});
        }
    };

    $("#dropdownlist").kendoDropDownList({
        dataTextField: "text",
        dataValueField: "value",
        dataSource: data,
        filter: "startswith",
        select: onSelect,
        //change: onChange,
        //close: onClose,
        open: onOpen,
        filtering: onFiltering,
        dataBound: onDataBound
    });


    
</script>

sabyasachi
Top achievements
Rank 1
 asked on 17 Jul 2018
0 answers
143 views

Hi...

I have problem.

TimeFormat am / pm is not showing up.

Correto seria 12:00 pm

Anderson
Top achievements
Rank 1
 asked on 16 Jul 2018
4 answers
182 views
I have a RadCombobox on my page as follows:

  <telerik:RadComboBox ID="cboBenchmarkCompanies" runat="server" 
                                                     CheckBoxes="true" 
                                                     DataTextField="Value"
                                                     DataValueField="Key"
                                                     EnableLoadOnDemand="False"
                                                     OnClientItemChecking="CheckMaxBenchmarkCompanies"
                                                     meta:resourcekey="cboBenchmarkCompanies" />

I load the list in the onload with:
            if (!this.IsPostBack) {
                var allCompanies = _applicationUserRepository.GetAllSurveyUsers();
                cboBenchmarkCompanies.DataSource = allCompanies;
                cboBenchmarkCompanies.DataBind(); }

If i then try to retrieve the checked items after pressing a save button, i always get back an empty collection instead of my checked items:
foreach (var checkedItem in cboBenchmarkCompanies.CheckedItems ){

What am I doing wrong?

Gauri
Top achievements
Rank 1
 answered on 16 Jul 2018
0 answers
75 views

I know I can move / re-order a column around on a grid.  I have a requirement where I need to be able to move a GridColumnGroup as well.  I don't see this is possible out of the box.  Has anybody had any luck with a work-around to allow a GridColumnGroup to be moved / re-ordered?

 

Thanks!

Andrew
Top achievements
Rank 1
 asked on 16 Jul 2018
2 answers
279 views

I have a RadGrid bound to a ClientDataSource, but when no records are returned, the grid's NoRecordsTemplate does not display (it's just an empty grid).  I've tried various workarounds without any success.  I've tried setting the grid's datasource to an empty array in the RadClientDataSource OnDataParse event.  I've tried explicitly setting EnableNoRecordsTemplate = "true", and I've tried setting NoMasterRecordsText in the MasterTableView, but nothing seems to work.

Any idea what I could be missing?

Eric
Top achievements
Rank 1
 answered on 16 Jul 2018
5 answers
258 views

Hi, I have a problem with links in a navigation menu.
The simple link works, it is translated properly into the tag <a></a>.

A NodeTemplate doesn't work: link does not appear and obviously does not work.

This is MasterPage.Master:

 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs" Inherits="SimTasse.MasterPage" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
 
<head runat="server">
    <title><%: Page.Title %></title>
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1, maximum-scale=1.0, user-scalable=no" />
    <link href="styles/base.css" rel="stylesheet" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
    <link href="~/styles/material_upo/Navigation.material_upo.css" rel="stylesheet" runat="server"/>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
        <div id="wrapper">
        <telerik:RadPageLayout runat="server" ID="MasterLayout" GridType="Fluid">
            <Rows>
                <%--Header--%>
                <telerik:LayoutRow CssClass="header">
                    <Columns>
                        <%--Logo--%>
 
                        <%--Main Nav--%>
                        <telerik:LayoutColumn Span="12" SpanMd="12" SpanSm="12" SpanXs="12">
                            <telerik:RadNavigation ID="RadNavigationPrincipale" runat="server" EnableEmbeddedSkins="False" Skin="material_upo">
                                <Nodes>
                                    <telerik:NavigationNode ID="nn_logo" NavigateUrl="Default.aspx">
                                        <NodeTemplate>
                                            <div>
                                                <div style="display: table-cell; vertical-align: middle;">
                                                    <img src="images/logo_quadrato_su_rosso_24.png" alt=""/>
                                                </div>
                                                <div style="display: table-cell; vertical-align: middle;" id="divVoceMenu1">
                                                      UPO -
                                                </div>
                                            </div>
                                        </NodeTemplate>
                                    </telerik:NavigationNode>
                                    <telerik:NavigationNode Text="Informazioni" ID="nn_info" NavigateUrl="Informazioni.aspx">
 
                                    </telerik:NavigationNode>
                                    <telerik:NavigationNode Text="Accedi" ID="nn_accedi">
 
                                    </telerik:NavigationNode>
                                </Nodes>
                            </telerik:RadNavigation>
                        </telerik:LayoutColumn>
                    </Columns>
                </telerik:LayoutRow>
 
                <%--Main--%>
                <telerik:LayoutRow>
                    <Columns>
                        <%--Sidebar--%>
                        <%--Content--%>
                        <telerik:CompositeLayoutColumn Span="12" SpanMd="12" SpanSm="12" SpanXs="12">
                            <Content>
                                <asp:ContentPlaceHolder ID="cph1" runat="server">
                                </asp:ContentPlaceHolder>
                            </Content>
                        </telerik:CompositeLayoutColumn>
                    </Columns>
                </telerik:LayoutRow>
 
                <%--Footer--%>
                <telerik:LayoutRow>
                    <Columns>
                        <telerik:LayoutColumn CssClass="footer">
                            <hr />
                            Simulatore tasse: © <%: DateTime.Now.Year %>  Università del Piemonte Orientale,  v. <%: appVersione %>
                        </telerik:LayoutColumn>
                    </Columns>
                </telerik:LayoutRow>
            </Rows>
        </telerik:RadPageLayout>
       </div>
        <script type="text/javascript">
            //imposta il testo corretto della prima voce di menu
            var nodo = document.getElementById("divVoceMenu1");
            nodo.innerHTML = "  UPO - " + "<%: appTitolo %>";
 
            //var waitC = false;
 
            function WaitCursor(sender, args) {
            }
        </script>
    </form>
</body>
</html>

 

Marin Bratanov
Telerik team
 answered on 16 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?