Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Major pet peeve of mine is that a checkbox and it's associated label isn't clickable, or "linked". I don't understand why this isn't case with the RadListBox, all it needs to do is to set a <label for="checkbox_input_name" /> attribute.

I'm well aware that I can accomplish this by simply using the Client-Side API or providing my own template which is great, but why should I then pay for the Telerik ASP.NET AJAX Controls when it' won't even save me the time on the most mundane things of all?

Please get this right!
Genady Sergeev
Telerik team
 answered on 06 May 2010
1 answer
138 views
Hi,
I have a RadCaptcha id= RAdCaptcha1  inside and <asp:Login control (name=Login1)

When I submit the form I want to be able to validate the Captcha..
I was expecting to be able to do something like if  (Login1.RadCAptcha1.IsValid)  but It's like it doesn't find the control in my Login1 control? Where is it?  How can I query the object when it's submitted?

Thanks
Jean
(jean.poulin@cgi.com)
Jean Poulin
Top achievements
Rank 1
 answered on 06 May 2010
1 answer
114 views

Hi

I am using radgrid v1.1 (legacy version)

I want to enable wrapping for cell content

Because sometimes when I have a lot of cell content a horizontal scroll appears for browser

So I want cel to enlarge vertically (to down to as) so vertically browser scroll is accepted for me

I tried to make wrap=”true” but no functioning

 

this is code excert

<radG:RadGrid ID="rgRequestsMore" runat="server" AllowFilteringByColumn="True"
                                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DIR="ltr"
                                EnableAJAX="True" EnableAJAXLoadingTemplate="true" GridLines="Horizontal"
                                HorizontalAlign="Left" LoadingTemplateTransparency="25"
                                OnItemDataBound="rgRequests_ItemDataBound"
                                OnNeedDataSource="rgRequestsMore_NeedDataSource" PageSize="20"
                                RadControlsDir="../../../RadControls/" ShowGroupPanel="false" Skin="Monochrome"
                                SkinsPath="~/RadControls/Grid/Skins" Width="100%">
                                <ajaxloadingtemplate><img
                                alt="" src="../../../../RadControls/Grid/Skins/loading.gif" /></ajaxloadingtemplate>
                                <clientsettings
                                allowdragtogroup="True"><clientevents onrowmouseout="RowMouseOut"
                                onrowmouseover="RowMouseOverMaster" /><selecting allowrowselect="True" /></clientsettings>
                                <mastertableview
                                datakeynames="Req_ID" dir="ltr"><editformsettings editformtype="Template"><formtemplate></formtemplate><editcolumn></editcolumn></editformsettings>
                                <Columns  >
                                <radG:GridBoundColumn
                                    AllowFiltering="False" DataField="Req_ID" HeaderText="Request ID"
                                    UniqueName="Req_ID" Visible="false"><ItemStyle HorizontalAlign="Left"
                                    Wrap="True" /></radG:GridBoundColumn>

Regards,

Ihab

Pavlina
Telerik team
 answered on 06 May 2010
1 answer
178 views
Good morning

I have a main Radgrid that uses Advanced data binding and has uses a form template to add/edit grid users. This all works perfectly.

Inside the form template, I have RadTabstrip and Multipage.

The first page view contains the fields neccessary to add/ update grid items and in the second page view I have a second Radgrid that displays additional information linked to the selected user.

THe second RadGrid gets bound in the main RadGrid's itemdatabound event handler and I need to bind the second RadGrid using advanced data binding as i need to implement paging.

So the issue I am having, is that I cannot access the second RadGrid control inside its needdatasource event handler as it's inside my first grid's from template.

Can you please show me how to access this control or show me a better way of binding the second RadGrid that would still allow for paging.

Thank you!

Danielle
 

Princy
Top achievements
Rank 2
 answered on 06 May 2010
9 answers
476 views
In the dynamic dock creation code, when button is clicked for new dock creation this is the code available.
  protected void Button1_Click(object sender, EventArgs e)
    {
        RadDock dock = CreateRadDock();
            //In order to optimize the execution speed we are adding the dock to a
            // hidden update panel and then register a script which will move it
            // to RadDockZone1 after the AJAX request completes. If you want to
            // dock the control in other zone, modify the script according your needs.
            UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
            ScriptManager.RegisterStartupScript(
                UpdatePanel1,
                typeof(RadDock),
                "DockIntoZone",
                string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock.ClientID, RadDockZone2.ClientID),
                true);

            //Right now the RadDock control is not docked. When we try to save its state
            // later, the DockZoneID will be empty. To workaround this problem we will
            // set the AutoPostBack property of the RadDock control to true and will
            // attach an AsyncPostBackTrigger for the DockPositionChanged client-side
            // event. This will initiate second AJAX request in order to save the state
            // AFTER the dock was docked in RadDockZone1.
            CreateSaveStateTrigger(dock);
        }

In the Button1 click i am trying to create 3 RadDocks at a time But only one RadDock is displayed on the screen and the rest of them are created but does not show up. When postback occurs they show but at the header of the page but not in the RAdDockzones.
and the RadDock width appears 100% of the window.

   protected void Button1_Click(object sender, EventArgs e)
    {
      
        //First Dock
        RadDock dock = CreateRadDock("DOC1");
        dock.ID = "Doc1";
       UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock.ClientID, RadDockZone1.ClientID),
            true);

        CreateSaveStateTrigger(dock);

        //Second Dock
        RadDock dock2 = CreateRadDock("DOC2");
        dock2.ID = "Doc2";
        UpdatePanel1.ContentTemplateContainer.Controls.Add(dock2);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock2.ClientID, RadDockZone2.ClientID),
            true);

        CreateSaveStateTrigger(dock2);


        //Third Dock
        RadDock dock3 = CreateRadDock("DOC3");
        dock3.ID = "Doc3";
        UpdatePanel1.ContentTemplateContainer.Controls.Add(dock3);
        ScriptManager.RegisterStartupScript(
            UpdatePanel1,
            typeof(RadDock),
            "DockIntoZone",
            string.Format(@"
Sys.Application.add_load(function() {{
    if (typeof(Telerik.Dock{0}Moved) === 'undefined')
    {{
        $find('{1}').dock($find('{0}'));
        Telerik.Dock{0}Moved = true;
    }}
}});", dock3.ClientID, RadDockZone3.ClientID),
            true);

        CreateSaveStateTrigger(dock3);
    }
The code with the UpdatePanel1 does it create 3 RadDocks and displaysonly one, Does the code different for multiple RadDocks at a time.
Can you help me with this.




Petio Petkov
Telerik team
 answered on 06 May 2010
0 answers
60 views
This is while using radhtmlfields in a publishing layout.
So in essence, while defining in my toolsfile.xml
<cssFiles>
   <item name="/_wpresources/RadEditorSharePoint/testStyles.css" />
  </cssFiles>

that works fine, and the editor loads the styles just fine.
Also because they are present in the published page, it works fine.

What does not work fine, is that the editor also loads all the moss default styles, and earlier versions of rad editor did not.
This is quite annoying and confusing.
Is there any way to prevent this in 5.7.1?

NOTE: i was wrong, it does in fact work, just requires an IISRESET.
That was unexpected and I apologize for the inconvenience.
allTheGoodNamesAreInUse
Top achievements
Rank 1
 asked on 06 May 2010
3 answers
422 views
Hi,

I have a radgrid to which I am adding columns as GridTemplateColumns which can be aligned in some order( number-right, date-left) . My radgrid supports column filtering. My issue is when I switch on filtering on columns, the filter textbox and image is not aligned with respect to the column alignment.

is there any way to set alignment to filter textbox and image??

Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 06 May 2010
1 answer
95 views
I have some combo boxes within 3 rad panelbars, each time I expand a panelbar, all the combo boxes grow in width! I have tried wrapping these in tables, divs, etc and they just keep growing!

Here is a simple page that recreates the issue:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikTest1._Default" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

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>Untitled Page</title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

 

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="1000">

 

 

<Items>

 

 

<telerik:RadPanelItem runat="server" Text="Customer Data" Expanded="True">

 

 

<Items>

 

 

<telerik:RadPanelItem Value="CustomerData" runat="server">

 

 

<ItemTemplate>

 

 

<table>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtLastName" MaxLength="50" Width="350px" Label="Last Name" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td width="20px">&nbsp;</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtFirstName" MaxLength="50" Width="350px" Label="First Name" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtStreet" MaxLength="50" Width="350px" Label="Street Address" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td width="20px">&nbsp;</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtCity" MaxLength="50" Width="350px" Label="City" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadComboBox ID="cmbState" Label="State" LabelCssClass="LabelCustomerDDL" runat="server" Height="200px" Width="250px"

 

 

DropDownWidth="298px" EmptyMessage="Choose a State or Province" HighlightTemplatedItems="true"

 

 

EnableLoadOnDemand="true" MarkFirstMatch="true">

 

 

<HeaderTemplate>

 

 

<table style="width: 275px" cellspacing="0" cellpadding="0">

 

 

<tr>

 

 

<td style="width: 177px;">

 

State / Province

</td>

 

 

<td style="width: 60px;">

 

State Code

</td>

 

 

<td style="width: 40px;">

 

Country

</td>

 

 

</tr>

 

 

</table>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<table style="width: 275px" cellspacing="0" cellpadding="0">

 

 

<tr>

 

 

<td style="width: 177px;">

 

Texas

 

</td>

 

 

<td style="width: 60px;">

 

TX

 

</td>

 

 

<td style="width: 40px;">

 

USA

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td width="20px">&nbsp;</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtPostalCode" MaxLength="50" Width="350px" Label="Postal Code" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelItem>

 

 

<telerik:RadPanelItem runat="server" Text="Vehicle Data">

 

 

<Items>

 

 

<telerik:RadPanelItem Value="VehicleData" runat="server">

 

 

<ItemTemplate>

 

 

<table>

 

 

<tr>

 

 

<td colspan="3">

 

 

<telerik:RadTextBox ID="txtVin" MaxLength="50" Width="350px" Label="VIN Number" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtLicense" MaxLength="4" Width="350px" Label="License Plate" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td width="20px">&nbsp;</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtYear" MaxLength="50" Width="350px" Label="Year" LabelCssClass="LabelCustomer" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadComboBox ID="cmbVehicleMake" Label="Make" LabelCssClass="LabelCustomerDDL" runat="server" Height="200px" Width="200px"

 

 

DropDownWidth="200px" EmptyMessage="Choose a Vehicle Make" HighlightTemplatedItems="true"

 

 

EnableLoadOnDemand="true" MarkFirstMatch="true">

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td width="20px">&nbsp;</td>

 

 

<td>

 

 

<telerik:RadComboBox ID="cmbVehicleModel" Label="Model" LabelCssClass="LabelCustomerDDL" runat="server" Height="200px" Width="200px"

 

 

DropDownWidth="200px" EmptyMessage="Choose a Vehicle Model" HighlightTemplatedItems="true"

 

 

EnableLoadOnDemand="true" MarkFirstMatch="true">

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelBar>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

</telerik:RadAjaxManager>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Yana
Telerik team
 answered on 06 May 2010
1 answer
219 views
Hi,

I'm trying to use the Export to Excel functionality, provided by the RadGrid, in conjunction with the MVC framework. (Please ignore this thread if already asked, but every thread pops up when searching for MVC due to the menu bar).

Since it's MVC, the grid is only known by the view. I've tried something in the line of:
<
grdReport.DataSource = ViewData["Report"]; 
grdReport.DataBind(); 
grdReport.ExportSettings.ExportOnlyData = false
grdReport.ExportSettings.IgnorePaging = true
grdReport.ExportSettings.OpenInNewWindow = true
grdReport.MasterTableView.ExportToExcel(); 
%> 

But it only displays the grid, not exporting it. My guess is that at this point, the view is already being rendered, being it too late to change the headers, etc...

Is there a preferred way to export to Excel using MVC? If not, is there a way to export strictly programmatically and catch the export stream, instead of streaming it directly to the response?

Kind regards,
Dries
Daniel
Telerik team
 answered on 06 May 2010
1 answer
99 views

Hi..
       i am using telerik rad grid.There ia m using group by panel.Can you suggest any way to select one group at a time and way to get that selected group with all the child items in it in server side as well as client side

Thanks
Tanmoy Sinha

 

 

Pavlina
Telerik team
 answered on 06 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?