Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
48 views

Requirements

RadControls version

2009.3.1314    

.NET version

ALL

Visual Studio version

ALL

programming language

C#

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
The following event handler will add headers and ids to the output of a radGrid. For Section 508 accessibility there are several methods (because accessibility browsers do different implementation). This implements one of these methods. It may co-exist with the scope pattern to cover more accessibility browsers.
static void grid_ItemCreatedAddIdHeader(object sender, GridItemEventArgs e)     
{     
    var colno = 1;     
    if (e.Item is GridHeaderItem)     
    {     
        colno = 1;     
        GridHeaderItem headItem = e.Item as GridHeaderItem;     
        foreach (GridColumn col in headItem.OwnerTableView.Columns)     
        {     
            TableCell cell = headItem[col.UniqueName];     
            cell.Attributes["id"] = string.Format(CultureInfo.CurrentCulture, "header{0}", colno); ;     
            colno++;     
        }     
    }     
    if (e.Item is GridDataItem)     
    {     
        // Add headers alternative to grid     
        colno = 1;     
        foreach (GridColumn col in dataItem.OwnerTableView.Columns)     
        {     
            TableCell cell = dataItem[col.UniqueName];     
            cell.Attributes["headers"] = string.Format(CultureInfo.CurrentCulture, "header{0}", colno); ;     
            colno++;     
        }             
    }     
}    
 

Yavor
Telerik team
 answered on 25 Feb 2010
2 answers
96 views
Hello Friends

I need to display progress bar when file are uploaded in page with old rad upload control.

I used register namespace like

<%@ Register TagPrefix="radw" Namespace="Telerik.WebControls" Assembly="RadWindow.Net2" %>
<%@ Register Assembly="RadUpload.Net2" Namespace="Telerik.WebControls" TagPrefix="radU" %>
used script manager,Progress manager,progress area



<asp:ScriptManager ID="script1" runat="server">
    </asp:ScriptManager>
 <radu:radprogressmanager id="Radprogressmanager1" runat="server" />
<radU:RadProgressArea  id="RadprogressArea1" runat="server"></radU:radprogressarea>

also i had done add below in web.config.
In httpModules
 <add name="RadUploadModule"  type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
in httpHandlers
<add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />


any error are not display but also progress bar is also not display.

is there any missing for display progress bar?

pls help me.

Thanks & Regards
Jignesh Patel











Jignesh
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
69 views

Hi all

I have a request to provide the ability to divide large amounts of copy into tabs; so the user doesn't have to scroll vertically to read the text.   

What I'd really like to do is to be able to use the TabStrip control embedded in the page content control. The content creator could then add as many tabs as required, subsequently adding the text for each newly created tab. I'd would then need the number of tabs and the text associated with each tab stored somehow, so when the page is viewed in presentation mode it all just magically comes together and displays neatly.

Is this possible?

thomson
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
91 views
Hi all.
I have a radcombobox in a radgrid, inside a gridboundcolumn filtertemplate. How can I get access to it?
$find("myCombobox.ClientID") doesn't work.
Shinu
Top achievements
Rank 2
 answered on 25 Feb 2010
3 answers
265 views
Hi all,

I have a RadComboBox which is inside an absolutely positioned div with overflow set to auto. The problem is that when you expand the RadComboBox and then scroll down with the cursor outside of the ComboBox, the list it items in the combo box becomes detached from the base of the Combo Box.

Here is my test code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Test Page</title> 
</head> 
<body style="overflow: hidden"> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    <div style="position: absolute; top: 25px; left: 25px; right: 25px; bottom: 100px; 
        overflow: auto"> 
        test<br /> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server"> 
            <Items> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
                <telerik:RadComboBoxItem Text="Test" /> 
            </Items> 
        </telerik:RadComboBox> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
        test<br /> 
    </div> 
    </form> 
</body> 
</html> 
 

Does anyone know of a solution to this?

Cheers!

Brent

PS I've already tried all of the solutions in this thread to no avail

PPS I'm using the Q3 2009 version of the ASP.Net AJAX controls.
Brent
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
162 views

I'm having problems re-creating this demo of the ComboBox Template: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

I've copied the pages on to my test site but I'm trying to re-create it with my own data and with out a "TreeView" in the second RadComboBox.  I've even tried with it.  I don't know if my db tables are not right, as I'm not sure how yours are created but it seems straightforward.   The closet I can get, is Combo1 populating and Combo2 shows nothing, unless I remove the tree view then I get just get "datarows"

Ideally I wouldn't want the combo2 to be hierarchical.

Also, how and when does the second combo ever databind? 

My Tables I'm trying to use:

Table State: (This would populate Combo 1, Value/Text)
StateID Abbreviation
1 FL
2 NY
3 CA



This table has "CreditTypes" that are assigned to different states.
Not sure if I bind Combo 2 to table StateCreditType or CreditType, I think StateCreditType but either way can't get it working or where to put the values in the front-end.  

Table StateCreditType:
StateCreditTypeID StateID CreditTypeID CreditTypeName
1 1 2 Bravo
2 1 3 Charlie
3 2 1 Alpha
4 2 3 Charlie


Table CreditType:
CreditTypeID CreditTypeName
1 Alpha
2 Bravo
3 Charlie
4 Delta


Any help or thoughts?
Fred
Top achievements
Rank 1
 answered on 24 Feb 2010
2 answers
188 views
Hi,

Is there something I am missing.  My images won't display.  I have a datalist that is bound from code behind.  Here is what it looks like:

.ascx
<asp:DataList ID="dlProducts" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" 
            RepeatLayout="Table" ItemStyle-CssClass="ItemBox"> 
            <ItemTemplate> 
                <ul> 
                    <li> 
                        <telerik:RadBinaryImage ID="rbiGridImage" runat="server" DataValue='<%# DataBinder.Eval(Container.DataItem, "PictureBinary") %>' /> 
                    </li> 
                    <li> 
                        <%# DataBinder.Eval(Container.DataItem, "Name") %></li> 
                    <li> 
                        <%# DataBinder.Eval(Container.DataItem, "OldPrice") %></li> 
                    <li> 
                        <%# DataBinder.Eval(Container.DataItem, "Price") %></li> 
                    <li> 
                        <%# DataBinder.Eval(Container.DataItem, "MName") %></li> 
                </ul> 
            </ItemTemplate> 
        </asp:DataList> 
 All other fields display correctly and if I remove the RadBinaryImage and bind the raw data I get "<Binary Data>" so I know I am binding correctly.

Any ideas?
One more thing, if I the run query that loads my data the "PictureBinary" field data looks like this:
0xFFD8FFE000104A46494600010101004800480000FFE1118545.....
Which looks pretty binary to me.
Thanks. Joe.


Joe
Top achievements
Rank 1
 answered on 24 Feb 2010
2 answers
426 views
I'm using a custom user control in my RadGrid to add new customer using the below markup.

<EditFormSettings EditFormType="WebUserControl" UserControlName="~/controls/customer/Details.ascx">  
<PopUpSettings Width="600px" Height="400px" Modal="true" /> 
</EditFormSettings> 

In the user control I have a save button which saves the data to the database and once this is done I want it to close the (modal edit) window and navigate the browser (parent) window to the customer preview screen.

So in my code behind I've placed the following (I've used this code for RadWindows before and it works fine).

string script = "<script language='javascript' type='text/javascript'>CloseAndRedirect('" + VOPCustomerID.ToString() + "');</script>";  
Page.ClientScript.RegisterStartupScript(this.GetType(), "Close", script); 

I have the below in the page (again, used this before with RadWindows and all is fine).

<script type="text/javascript">  
    function CloseAndRedirect(ss)  
    {  
        //Redirect to new url  
        GetRadWindow().BrowserWindow.location.href = '../Customer/Default.aspx?CustID=' + ss;  
        //closes the window  
        GetRadWindow().close();  
    }  
      
    //Get reference to window  
    function GetRadWindow()  
    {  
        var oWindow = null;  
        if (window.radWindow)  
            oWindow = window.radWindow;  
        else if (window.frameElement.radWindow)  
            oWindow = window.frameElement.radWindow;  
        return oWindow;  
    }          
</script> 

As I've said, I've used the above two pieces of code before with RadWindows and all is fine, they close and the browser window navigates to the new screen.

However with the Edit Form, the modal popup does close and then reopens and the browser does not navigate to the preview screen. When I tried removing the redirection in the JavaScript and only close the popup window the same happens, the window closes and then opens again.

Is there some other setting I need to set here?

Thanks.


Liam
Dustin Blair
Top achievements
Rank 1
 answered on 24 Feb 2010
4 answers
204 views
I have a couple of questions about exporting a grid as CSV.

  1. All columns appear to be exported as strings (i.e. surrounded by quote-marks) - is this by design, or can I control this?
  2. I have AutoGeneratedColumns that are hidden initially, i've tried to set them to Visible, but yet they do not appear in the exported csv file?
  3. My grid only loads 1 page of information at a time, I'd like to export ALL pages.  Now I can call my stored procedure and tell it to fetch all data rather than just a single page, i've tried reassigning the DataSource & issuing a DataBind() prior to executing the ExportToCSV(), but still only 1 page of information is shown  -- how can I refresh the datasource prior to export?

thanks
Brian.

Daniel
Telerik team
 answered on 24 Feb 2010
2 answers
158 views
hi

I have following
 <telerik:RadGrid ID="RadGrid1"
....


<DetailTables>
          <telerik:GridTableView
          .
          . {columns here}
          .
          <CommandItemTemplate>
              <div style="text-align:right;">
                <asp:Button ID="LinkButton6" runat="server"
                    CommandName="SetSelected" text="Set"                    CausesValidation="false"/>
              </div>
            </CommandItemTemplate>

I need to react to the command here and iterate through all item in the sub grid that the command template belongs to. How do I get access and what method is it - the itemcommand on the main grid and filter by command name?


Thanks
Kieran
donoho
Top achievements
Rank 1
 answered on 24 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?