Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
355 views
I have two examples now, my first two, where a place a RadComboBox on a web form, and populate it, but it won't drop down.  I first picked this up on a big web application project, and then on a simple little web site project, for investigating this.  In my sample project, it is the only control on the page  besides the ScriptManager, and there are rows in the data source, and it does display the first row, but it just doesn't drop down.  Any ideas on this?

BTW, this is theh first time I've restored this project onto a new XP machine, where I previously was working on a Vista machine that died.
Mujeeb
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
97 views
Hi,
I want to add custom menu items to HeaderContextMenu of RadGrid.
I am able to do it from Javascipt OnClientLoad event.

But I want to do this in code behind. I tried following way:

         this.HeaderContextMenu.PreRender += HeaderContextMenu_PreRender;
        void HeaderContextMenu_PreRender(object sender, EventArgs e)
        {
            RadMenuItem resetItem = new RadMenuItem("Reset Columns New");
            resetItem.PostBack = false;
            resetItem.Visible = true;
            this.HeaderContextMenu.Items.Insert(2, resetItem);
        }

But this doesnt add new menu item. Any idea how I can achieve this?














Viktor Tachev
Telerik team
 answered on 03 Jun 2014
1 answer
108 views
Could you give an example of using the PageLayout in a MasterPage/ChildPage scenario?  When I try to do one, the contentholder on the child page isn't visible during design view and make it difficult to work on the page.
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
1 answer
53 views
I have to render 3 chart on page. Everything is working fine except IE9, where sometimes it shows chart with wrong information of sometimes without any values. If I delete temporary files Ctrl + Shift + Delete & Ctrl+F5 the window its comes up with correct window.
It perfectly works 1st time, but if I try to fetch values for some other parameter its fails. 
Please help.
Danail Vasilev
Telerik team
 answered on 03 Jun 2014
1 answer
172 views
Hi,
I have a report in radgrid with grouping on basis of one field. The screen shot for the grid is attached. Now when i export the grid to PDF, group header column also gets exported leaving blank columns which are not required.
Also i cannot set the width of the headers when exporting to PDF. I have searched for may threads but of no help.
Any help would be appreciated.

Thanks
Anshul
Princy
Top achievements
Rank 2
 answered on 03 Jun 2014
2 answers
82 views
I have a RadGrid on my page displaying a list of search results from my database. Some of these results have associated files which I provide a download link for, and some don't.

For the results that don't have an associated file I want to hide the link in that row only. I can do that, I've found, using this code in the ItemDataBound event:

if (e.Item is Telerik.Web.UI.GridDataItem)
{
    if (!((bool)((DataRowView)e.Item.DataItem).Row["IsElectronic"]))
    {
        ((Telerik.Web.UI.GridDataItem)e.Item)["colDownload"].Visible = false;
    }
}

The problem is that by setting the GridDataItem's Visible property I'm effectively collapsing that column for that row, moving everything out of alignment with the grid headers. Instead, I'd like to do something to empty the contents of the cell, or change just that cell to a different column type, or something similar?
Adrian
Top achievements
Rank 1
 answered on 03 Jun 2014
2 answers
154 views
Hi, how do I get a handle to the RadDatePicker, within the context of a div.
my code snippet looks like this:
                    <div id="div123">
                      <telerik:RadDatePicker ID="txtSomeDate" runat="server" CausesValidation="True">
                      </telerik:RadDatePicker>
                    </div>

The command :
var somedate = $find("<%=txtSomeDate.ClientID %>");
returns me the datepicker.

However, I have a requirement where I need to get a handle to this datepicker which is within the div "div123" only.
This is because I have this datepicker within a user control and this user control could be embedded multiple times in the same page.

I tried $find("<%=txtSomeDate.ClientID %>",div123) but it returns null.

Any clues on how to get this working?

Thanks
Suchitra
 




Suchitra
Top achievements
Rank 1
 answered on 03 Jun 2014
7 answers
135 views
Hi I want to extend RadAsyncUpload control to meet our
custom validation need. However, I am experiencing two issues here.

1.  RadAsyncUpload contains two controls, one is
textbox and other is a button to invoke file explorer. However, to show error
how can I only target the textbox and not the button? Say for example, I want
to change only textbox border color when its invalid (and not the button)

 

2.  In extended control’s PreRender,  when I change CssClass attribute of the
control  if control is invalid, the change doesn't reflect on the control, but when I change the CssClass attribute before
the condition (if valid), the change takes effect. So looks like I can’t change the style
attribute after first load, which is very strange. However, I am not sure why
this is happening

Hope someone can help me with this.

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
5 answers
204 views
Hi,

When i add a field  programmatically:

Button1_Click:

PivotGridColumnField _row = new PivotGridColumnField();
_row.DataField = "[Account].[Accounts]";
_row.UniqueName = "[Account].[Accounts]";
this.RadPivotGrid1.Fields.Add(_row);

when i interact with him, it raises an error:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null.
Parameter name: fieldInfo

what is the issue ?

sorry my poor english.
AlefSan
Top achievements
Rank 1
 answered on 02 Jun 2014
3 answers
192 views
I am trying to get a site to work with a free screen reader (NVDA). I am making the fields more accessable by setting the AssociatedControlID of the asp:Labels to the associated fields. This technique works well for RadTextBoxes, but so far, it has not worked (NVDA will not read the label when the focus is on field) for any RadComboBoxes. Here is what the label / RadComboBox combo looks like:

<asp:Label ID="lblPAddrPreStreetDir" runat="server" EnableViewState="False" meta:resourcekey="lblPAddrPreStreetDirResource1" Text="Pre-Street <br>Direction:" AssociatedControlID="ddlPPreStDir"></asp:Label>

<telerik:RadComboBox ID="ddlPPreStDir" runat="server" AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" meta:resourcekey="ddlPPreStDirResource1" TabIndex="2" Width="100px" CausesValidation="False" MarkFirstMatch="True">
                                                <Items>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource1" Text="None" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource2" Text="EAST" Value="E" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource3" Text="NORTH" Value="N" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource4" Text="NORTH EAST" Value="NE" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource5" Text="NORTH WEST" Value="NW" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource6" Text="SOUTH" Value="S" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource7" Text="SOUTH EAST" Value="SE" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource8" Text="SOUTH WEST" Value="SW" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource9" Text="WEST" Value="W" runat="server"></telerik:RadComboBoxItem>
                                                </Items>
                                            </telerik:RadComboBox>
Dimitar Terziev
Telerik team
 answered on 02 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?