Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
817 views
Hello
I have a radgrid. When I add a record, in the edit mode, I would like to set a maxlength to my gridBoundColumn which is multiline. I saw that I can't do that, does it have a workaround for this?

Thanks!

Eyup
Telerik team
 answered on 25 Jan 2016
1 answer
289 views

There seems to be a bug in the latest release 2016.1.113. We have RadButtons using the ToggleType of Radio and the ButtonType of StandardButton like so:

<telerik:RadButton ID="rbCreditCardPresent" runat="server" ToggleType="Radio" ButtonType="StandardButton" GroupName="paymenttype" ValidationGroup="pospay" AutoPostBack="false" Text="CC - Present" OnClientClicked="CheckChanged" CommandName="Present" Width="125px">

Using version 2015.1.401 the width has always been properly displayed. After upgrading to 2016.1.113 it seems like the width if basically ignored. The buttons end up being the width of the text like in the attached image. 

 It seems like a workaround is to add a CSS class like the following, however that is kind of an annoyance and in Chrome this causes the text to dance around in the box when the page is loading. Is this truly a bug or am I missing something?

.wide input {
    width: 100% !important;
}

Niko
Telerik team
 answered on 25 Jan 2016
1 answer
416 views

Hi, 

On a RadTreeList I would like to set ExpandCollapseMode="Client", so that all the expand/collapse is left to the client side, as this improves UX for my application. However, I have noticed that by setting this attribute on the RadTreeList definition, every time my RadTreeList loads (on page load) it is fully collapsed. (See attached image). Even if the last call I make server side is rtlTreeList.ExapandAllItems(); 

 I assume that on the client side, the nodes are being collapsed by default - is there any way to alter this behaviour? When my RadTreeList loads, it is also disabled, to allow read only access, which is why I would like the tree to load fully expanded.  Or perhaps there is a better way to make a RadTreeList disabled, but viewable other then setting each node to disabled? 

 

Thanks,

Craig

 

<telerik:RadTreeList ID="rtlAreaJurTreeList" runat="server" OnNeedDataSource="rtlAreaJurTreeList_NeedDataSource"
ParentDataKeyNames="ParentAreaCode" DataKeyNames="Code" AllowPaging="false"
AutoGenerateColumns="false" AllowSorting="true" OnItemDataBound="rtlAreaJurTreeList_ItemDataBound" Height="550px"
HeaderStyle-BorderStyle="Solid" AllowRecursiveSelection="true"
AllowRecursiveDelete="true" Width="400px" ExpandCollapseMode="Client">
 
<Columns>
  <telerik:TreeListBoundColumn DataField="ParentAreaCode" UniqueName="ParentAreaCode" HeaderText="Parent Area Code" Display="false" />
  <telerik:TreeListBoundColumn DataField="Code" UniqueName="Code" HeaderText="Area/Jur Code" Display="false" />
  <telerik:TreeListBoundColumn DataField="Area" UniqueName="Area" HeaderText="Area Name (If Area)" Display="false" />
  <telerik:TreeListBoundColumn DataField="Jurisdiction" UniqueName="Jurisdiction" HeaderText="Jurisdiction Name (If Jur)" Display="false" />
  <telerik:TreeListBoundColumn DataField="isAreaItem" UniqueName="isAreaItem" HeaderText="isAreaItem" Display="false" />
  <telerik:TreeListBoundColumn DataField="isJurisdictionItem" UniqueName="isJurisdictionItem" HeaderText="isJurisdictionItem" Display="false" />
  <telerik:TreeListBoundColumn DataField="Description" UniqueName="Description" HeaderText="Description" />
  <telerik:TreeListSelectColumn UniqueName="Included" HeaderStyle-Width="50px" HeaderText="Included"></telerik:TreeListSelectColumn>
</Columns>
<ClientSettings>
   <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="520px" />
 
</ClientSettings>
</telerik:RadTreeList>

 

Kostadin
Telerik team
 answered on 25 Jan 2016
1 answer
174 views

Is it possible to add a customized map in RadMap by your own instead of using default maps?

For example, I would like to use a customized image as a map in RadMap and use its properties for location points. See image below as example.

 

Marin Bratanov
Telerik team
 answered on 25 Jan 2016
2 answers
117 views

Hi!
  I am using batchEditUpdate and try to write functions for Save button.  I have tried methods in the forum(http://www.telerik.com/forums/save-grid#RzXVB6XB_Uqod1m2h7Lwyw), but the OldValues for both methods only contains one element, the DataKeyNames.  Why are there no column values of the grid in the OldValues?  I need to compare some fields of OldValues and NewValues.  Any suggestions?

Thanks in advance!
Sharon

sharon
Top achievements
Rank 1
 answered on 25 Jan 2016
1 answer
285 views

Hello,

I am on 2015 Q3 of the ASP .NET controls and weirdly cannot find the RadCheckBox control. It is not visible in the Toolbox and when I add it manually to the ASCX file I get error 'Element 'RadCheckBox' is not a known element' in my ascx control. Other Telerik controls work fine.

Thank you for any help.

<%@ Register assembly="Telerik.Web.UI, Version=2015.3.1111.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<telerik:RadCheckBox ID="RadCheckBox1" runat="server" Text="I agree to the Terms of Service"></telerik:RadCheckBox>

Marin Bratanov
Telerik team
 answered on 25 Jan 2016
1 answer
86 views
How can we avoid spell check popup and implement spelling Check functionality in the textbox itself.
Marin Bratanov
Telerik team
 answered on 25 Jan 2016
2 answers
431 views

I have a RadGrid server control completely developed from code-behind. The columns of the grid are bound through a config xml file. and need zero declarative syntax. I have 3 columns in the grid - 2 are GridBoundColumn and 1 is a template column. The grid is bound to a List<>. The template column can be anything - asp-label or hyperlink etc. I want to access the data-value for this column in the template binding event by using the column's UniqueName. I am stuck as I am not getting the value in that column in the data-binding event. Please refer code below. Any help is appreciated.

public class PcsGrid : Telerik.Web.UI.RadGrid
{
    public PcsGrid()
    {
        this.AutoGenerateColumns = false;
        GridViewConfiguration gvc = SelectViewConfiguration();
         
        // this method generates all the columns at runtime        
        BuildColumns(gvc.View.Columns);
    }
     
    // HyperlinkColumn() is 1 such column created at runtime. this is invoked inside BuildColumns.
    private Telerik.Web.UI.GridTemplateColumn HyperlinkColumn(GridViewConfigurationViewColumn col)
    {
        GridTemplateColumn gtc = new GridTemplateColumn();
        gtc.UniqueName = col.UniqueName;
        gtc.HeaderText = col.HeaderText;
        gtc.DataType = Type.GetType("System.String");
        gtc.DataField = col.DataField;
        gtc.ItemTemplate = new TemplateColumns.ActionColumn(col.UniqueName);
        return gtc;
    }
     
    // a template column class
    class ActionColumn : ITemplate
    {
        Label lc = null;
        string c_sUniqueName = null;
         
        //i am passing the unique-column name
        public ActionColumn(string p_sUniqueName)
        {
            this.c_sUniqueName = p_sUniqueName;
        }
 
        public void InstantiateIn(System.Web.UI.Control container)
        {
            lc = new Label();
            lc.ID = "lCity";
            lc.DataBinding += lc_DataBinding;
            container.Controls.Add(lc);
        }
 
        void lc_DataBinding(object sender, EventArgs e)
        {
            Label oSender = (Label)sender;
            GridDataItem container = (GridDataItem)oSender.NamingContainer;
            // if I debug here I see the data in the container. I dont want to cast it to the model object because this is a common server control not specific to a functionality
            TableCell tc = container[c_sUniqueName]; // unique name. none of the properties I tried return the data-value.
            Label l = (Label)tc.Controls[0];
            //this is blank and returns nothing.
             
        }
    }      
}

 

I also referred to article - http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows

But no luck.

Please help.

Amod
Top achievements
Rank 1
 answered on 23 Jan 2016
2 answers
194 views

I'd like to add a popup dialog that overlays the master table edit popup. Is this possible?

 Scenario: I have  a generic error handling routing called by the OnItemUpdated and OnItemInserted events. If there's an exception I'm displaying the error in an jscript alert box and then leaving the rad grid edit popup in edit or insert mode. This work OK, but if multiple alerts are thrown in a session Chrome will ask the user if they'd like to prevent future popups. If the users opts for this,they might not get error feedback on subsequent errors.

I tried adding a simple jquery dialogue, but it is superseded by the RadGrid popup form.

 Any suggestions appreciated!

Thanks!

G716
Top achievements
Rank 1
 answered on 22 Jan 2016
4 answers
248 views

Is there a way to select a node by default in a Treelist ? eg :if a node has "selected" set to true in the datasource, kendo will automatically select the node.

If not, How can I select a node programmatically in a Treelist ?

I've searched on the internet , all the results that I've found are about TreeView.

I've tried the same method as in treeView, but there is not a method named "findByUid"

 

 "onSelect": function (e) {

        var selectedRows = this.select();
        var selectedDataItems = [];
        for (var i = 0; i < selectedRows.length; i++) {
            var dataItem = this.dataItem(selectedRows[i]);

            if (!dataItem.selectable)
            {
                //hack 
                //For now, a treelist doesn't allow you to prevent the selection 
                //as it is done in a treeview (e.preventdefault).So in order
                // to prevent the selection we must do a little hack using css.
                selectedRows.removeClass("k-state-selected");
            
            }

            //test
            e.sender.select(e.sender.findByUid(2));

    treeview.select(selectitem);
        }    

Gers
Top achievements
Rank 1
 answered on 22 Jan 2016
Narrow your results
Selected tags
Tags
+? 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?