Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
Hi All,
I have a RadDateTimePicker defined like this:

 <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">          
  </telerik:RadDateTimePicker>

and I have used this code in PageLoad function:
 if (!Page.IsPostBack)
            {

                List<DateTime> dateList = new List<DateTime>();

                for (int hour = 0; hour < 24; hour++)
                    dateList.Add(DateTime.UtcNow.Date.AddHours(hour));
                dateList[0] = dateList[0].AddDays(1).AddMinutes(-1);

                RadDateTimePicker1.TimeView.DataList.DataSource = dateList;
                
            
            }

Above code is used to display 11:59:00 PM in the time selection, but my issue is , whenever I select any Time , then 5:30 hours get automatically added to the time.
for eg. If i select 2:00 PM, then 7:30PM get displayed in the RadDateTimePicker.

Please help.
Viktor Tachev
Telerik team
 answered on 26 May 2014
1 answer
161 views
Can I disable a radgrid when the 'Add new record' template form is open? The user can only view the records. He cant delete or select rows.
This template also has a cancel button, on click of which I want to close the template. How can I achieve this?
Princy
Top achievements
Rank 2
 answered on 26 May 2014
1 answer
214 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
277 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
237 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
203 views
Hi 
   How to highlight radchart series on mouse over.Please Help !..
suhashini
Top achievements
Rank 1
 answered on 26 May 2014
3 answers
305 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
213 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
172 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
198 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?