Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi I have a radgrid with a mastertableview. The grid has 4 columns. Two of them are RadCombobox and the other two are RadDatePicker. All filters are "EqualTo".  All filter works fine. On the CommandItem I have two radiobuttons that when clicked brings the last 15 and 30 days data. In this case in the commandItem on code behind I am recunstructing the filterexpression and replacing the "([UpdateDate] = '" per "([UpdateDate] >= '". I have tested and it works for some situations. The only time it is not working is when there are not data for that grater or equal date. Instead of bringing an empty grid it crashes saying out of range where I am calling the rebind() function.

Thank you
Eyup
Telerik team
 answered on 26 May 2014
1 answer
147 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
160 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
209 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
270 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
234 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
198 views
Hi 
   How to highlight radchart series on mouse over.Please Help !..
suhashini
Top achievements
Rank 1
 answered on 26 May 2014
3 answers
298 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
210 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
167 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?