Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
201 views
Hi folks,

i'm using a RadGrid with a custom CSS. When additionally using a RadAjaxManager, the assigned CSS is ignored and the Default is used.
I tried it like described here 
http://www.telerik.com/help/aspnet-ajax/ajax-layout-problem-updated-controls-on-new-line.html
but no success so far.

So summarized i got this.

I have a global CSS style to add a border to all input type=submit:

1.body input[type=submit] {
2.        background-color: #bdb69e;
3.        border: 1px solid #bdb69e;
4.        min-width: 200px;
5.        min-height: 35px;
6.        box-shadow: 0 0 0 1px rgba(254,254,254,0.5), 0 0 0 2px #bdb69e;
7.    }

Because i dont want to have this border for the paging buttons in a RadGrid i'm using:

1..RadGrid input[type=submit] {
2.    border: none !important;
3.    box-shadow: none !important;
4.    width: 25px !important;
5.    min-width: 25px !important;
6.}

As said before this works fine with no RadAjaxManager. But with RadAjaxManager the borders appear.
Currently i'm using the RadAjaxManager like this:

01.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
02.        <AjaxSettings>
03.            <telerik:AjaxSetting AjaxControlID="btn_Search">
04.                <UpdatedControls>
05.                    <telerik:AjaxUpdatedControl ControlID="rg_Translation" UpdatePanelCssClass="ForcedRadGridStyle" UpdatePanelRenderMode="Inline" />
06.                </UpdatedControls>
07.            </telerik:AjaxSetting>
08.        </AjaxSettings>
09.</telerik:RadAjaxManager>

I even tried to assign a other custom class with some radical colors for testing purposes, but nothing changes.

1..ForcedRadGridStyle {
2.    color: rgb(182, 255, 0) !important;
3.    background-color: rgb(182, 255, 0) !important;
4.}


How can i get this working?
What am i missing?

Thanks,
Markus
Venelin
Telerik team
 answered on 26 May 2014
6 answers
256 views
We've noticed that if we include a column in the pivotgrid, and give it a caption, that's the value that shows up in the configuration panel. All OTHER fields are picked up automatically from the data source, but the value that shows is the field name, which isn't always meaningful to the user.

Is it possible to define captions for all fields, even those that are not initially included in the pivotgrid?
Antonio Stoilkov
Telerik team
 answered on 26 May 2014
3 answers
224 views
Hi Folks, first time on this forum so please be gentle.

I have an asp.net Formview with a RadGrid (rgTradeName) inside it.

rgTradeName has two RadGrids nested inside the edit form template (rgAPSummaryEdit & rgAPSummaryEditNew). 

rgAPSummaryEditNew has a grid button column and is fires rgAPSummaryEditNew_ItemCommand when the user clicks on the button.

What I need to do is add the line from rgAPSummaryEditNew that the user has clicked on to the data that populates rgAPSummaryEdit. The hard part is finding rgAPSummaryEdit in the c# page-behind. So far rgAPSummaryEditNew_ItemCommand looks like this:

    protected void rgAPSummaryEditNew_ItemCommand(object sender, GridCommandEventArgs e)
    {
        RadGrid rgTN = (RadGrid)fvLicenceSummary.FindControl("rgTradeName");
        if (rgTN != null)
        {
            
        }
    }

rgTN is not null when I run this, but I have no idea how to loop through rgTN to find rgAPSummaryEdit. I've tried quite a number of things, none of them worked.

Can anyone please tell me how to find this RadGrid nested in a RadGrid Nested in a FormView?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 26 May 2014
5 answers
184 views
Hi 
   How to highlight radchart series on mouse over.Please Help !..
suhashini
Top achievements
Rank 1
 answered on 26 May 2014
3 answers
285 views
Hi,

How to set delete image from TempFolder after 20Munites.

Thanks
Yasin
Shinu
Top achievements
Rank 2
 answered on 26 May 2014
2 answers
200 views
Hi Telerik Team,

I would like to know if the UI design in "RadTimePicker (Winform)" is possible to replicate it for ASP.NET AJAX. I have tried but it seems that it need to have more complicated codes to generate this for ASP.NET Thanks for you time.

Regards
Irving
Top achievements
Rank 2
 answered on 26 May 2014
1 answer
159 views
Hi,
I am using the following snippet to hide the password in edit mode:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem editItem = (GridEditFormItem)e.Item;
            TextBox txtpwd = (TextBox)editItem["password"].Controls[0];
            txtpwd.TextMode = TextBoxMode.Password;
 
            if (!(e.Item.DataItem is GridInsertionObject))
            {
                txtpwd.Attributes.Add("value", txtpwd.Text);
            }
 
        }
    }
The problem I have is that when I open the record for modification, the password disappear. How can I hide the password in edit mode having all auto generated columns?
Princy
Top achievements
Rank 2
 answered on 26 May 2014
2 answers
181 views
Hi,

We have been using an older version of Telerik components (Telerik.Web.UI 2010.3.1317.20) in our web application and now we're looking into the latest one trial to upgrade.

One problem we're facing now is that in the same implementation of a RadGrid, getting the index of the selected row was zero based in our existing code (older version of Telerik). However, implementing the same using the new version of Telerik (2014.1.513.40) will return an incremented result. 
For example, if the first row of the grid is selected, in the old version the index value was zero, but in the new version it returns 1.

This is the implementation of my RadGrid:
<telerik:RadGrid GridLines="none" ID="RadGrid1" runat="server"
        AllowMultiRowSelection="true"
        AllowPaging="true"
        AllowCustomPaging="true"
        AllowSorting="true"
        AllowAutomaticDeletes="true"
        AutoGenerateColumns="true"
        ShowStatusBar="false"
        OnNeedDataSource="RadGrid1_NeedDataSource"
        OnItemDataBound="RadGrid1_ItemDataBound"
        OnItemCommand="RadGrid1_ItemCommand"
        OnGroupsChanging="RadGrid1_GroupsChanging"
        OnColumnCreated="RadGrid1_ColumnCreated"
        OnDataBound="RadGrid1_DataBound"
        OnSortCommand="RadGrid1_SortCommand"
        OnItemCreated="RadGrid1_ItemCreated"
        OnPreRender="RadGrid1_PreRender"
        HorizontalAlign="NotSet"
        Visible="false">
        <ClientSettings AllowColumnHide="true"
            AllowColumnsReorder="true"
            AllowDragToGroup="true"
            ReorderColumnsOnClient="true"
            AllowKeyboardNavigation="true"
            AllowRowsDragDrop="true"
            AllowAutoScrollOnDragDrop="false"
            EnablePostBackOnRowClick="false"
            EnableRowHoverStyle="true">
            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" />
            <Selecting AllowRowSelect="true" />
            <Scrolling UseStaticHeaders="true" SaveScrollPosition="true" AllowScroll="true" />
            <ClientEvents OnRowContextMenu="RadGrid1_RowContextMenu"
                OnRowDropping="RadGrid1_RowDropping"
                OnActiveRowChanged="RadGrid1_ActiveRowChanged"
                OnRowSelected="RadGrid1_RowSelected"
                OnRowDblClick="RadGrid1_RowDblClick"
                OnKeyPress="RadGrid1_KeyPress"
                OnCommand="RadGrid1_Command"
                OnRowClick="rowClick"
                OnRowMouseOver="RowMouseOver"
                OnRowMouseOut="RowMouseOut"            
                OnMasterTableViewCreated="RadGrid1_MasterTableViewCreated" />
        </ClientSettings>
        <MasterTableView AllowMultiColumnSorting="false" DataKeyNames="ID,Unread,FolderPath" Width="100%"
            ClientDataKeyNames="ID,Unread,FolderPath" TableLayout="Fixed">
            <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="3" AlwaysVisible="true" />
        </MasterTableView>
     </telerik:RadGrid>


This is how I am getting the index from js:
function RadGrid1_RowSelected(sender, eventArgs)
{
    var mst = sender.get_masterTableView();
    var index = eventArgs.get_gridDataItem().get_element().rowIndex;
}

I would like to know if the behavior of the RadGrid has been changed since the older version, or I am doing something wrong here.

Thank you.



Ali
Top achievements
Rank 1
 answered on 26 May 2014
1 answer
220 views
hello,
i want to add a check box on the each tab in a tabstrip in front of the tab text can i do that and user can check or uncheck this also.

Regards.
Sotir
Top achievements
Rank 1
 answered on 25 May 2014
18 answers
1.2K+ views

After a lot of searching and hair pulling I have tracked down what seems to be a real deal breaker issue with a lot of rad controls especially radgrid, sorry for the vagueness of this post but it has been a long few days of deadlines :)

When using IE11 preview to view sites with enablepostbackonrowclick set on a radgrid -  clicking on the rows does not work and rather raises a hidden away JavaScript error of: if($telerik.isIE){document.attachEvent("onmousedown",this._onDocumentClickDelegate);

The problem is particular to IE11 and it is not just related to it being in preview.

It is discussed at http://msdn.microsoft.com/en-us/library/ie/ms536343(v=vs.85).aspx 

In this post it says:

attachEvent method

[attachEvent is no longer supported. Starting with Internet Explorer 11 Preview, use addEventListener. For info, see Compatibility changes.]

Binds the specified function to an event, so that the function gets called whenever the event fires on the object.

So it seems that until there is an update to the core way rad controls handle mouse clicks they will not work even on IE final.

Mike Hobbs
Top achievements
Rank 1
 answered on 25 May 2014
Narrow your results
Selected tags
Tags
+? 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?