Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
202 views
I want to create a popup on my web page. I want to use the RadWindow to accomplish this.

I'd like to invoke the control by server code instead of with window.radopen. Is it possible?

I want also to pass parameters to and from popup. How can I do this?

Has someone a simple example of this?

Thank you.
Georgi Tunev
Telerik team
 answered on 11 May 2010
1 answer
183 views
hello,
i am using telerik form decorator control to decorate page.
In that page i am decorating whole page using Form decorator but form decorator decorating whole page except rad tab control
what should i do ?
pls reply me as soon as possible.
i am sending my aspx page code-->




<%

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

 

<%

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

 

<%

--<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>

 

<%--<%@ Register TagPrefix="qsf" TagName="Header" %>

<%@ Register TagPrefix="qsf" TagName="HeadTag" %>

<%@ Register TagPrefix="qsf" TagName="Footer"%>

--

 

%>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head id="Head1" runat="server">

 

<%

-- <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>

 

--

 

%> <title>RadFormDecorator TEXTAREA, TEXTBOX, FIELDSET etc </title>

 

 

<style type="text/css">

 

 

/* Respect margins and paddings */fieldset

 

{

 

padding: 0px;

 

 

margin: 5px;

 

}

 

</style>

 

</

 

head>

 

<

 

body>

 

 

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

 

<%

-- <qsf:Header ID="Header1" runat="server" NavigationLanguage="c#" />

 

--

 

%> <asp:ScriptManager ID="ScriptManager1" runat="server" />

 

 

<telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server" Skin="Forest" />

 

 

<telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" RelativeTo="Element"

 

 

Width="150px" Height="20" Position="TopCenter">

 

 

<TargetControls>

 

 

<telerik:ToolTipTargetControl TargetControlID="Button1" Value="Decorated Button" />

 

 

<telerik:ToolTipTargetControl TargetControlID="chckBox" Value="Decorated CheckBox" />

 

 

<telerik:ToolTipTargetControl TargetControlID="RadioButtonList1" Value="Decorated RadioButtonList" />

 

 

</TargetControls>

 

 

</telerik:RadToolTipManager>

 

 

<telerik:RadToolTip runat="server" ID="rt1" Text="Turn on/off Decorator" RelativeTo="Element"

 

 

Position="TopCenter" TargetControlID="Button6">

 

 

</telerik:RadToolTip>

 

 

<telerik:RadWindow runat="server" OffsetElementID="RadTreeView1" Top="280px" Height="250px"

 

 

Width="320px" ID="wndtest" Title="RadFormDecorator"

 

 

VisibleOnPageLoad="true">

 

 

</telerik:RadWindow>

 

 

<table border="0">

 

 

<tr>

 

 

<td colspan="2">

 

 

<table style="width: 513px; border: 0">

 

 

<tr>

 

 

<td>

 

 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" MultiPageID="RadMultiPage1"

 

 

SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Tab 1" Width="130px">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Tab 2" Width="130px">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

</td>

 

 

<td style="text-align: right;">

 

 

<asp:Button runat="server" ID="Button6" Text="Switch Decorator Off" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td valign="top" style="width: 530px">

 

 

<telerik:RadMultiPage ID="RadMultiPage1" Width="530px" runat="server" SelectedIndex="0"

 

 

>

 

 

<telerik:RadPageView ID="RadPageView1" runat="server">

 

 

<fieldset style="width: 520px">

 

 

<legend>Rounded corners panel </legend>

 

 

<table id="parentTable" border="0" cellpadding="5">

 

 

<tr>

 

 

<td style="vertical-align: top; width: 200px">

 

 

<table>

 

 

<tr>

 

 

<td style="vertical-align: top; white-space: nowrap;">

 

 

<h5 style="padding: 0; margin: 0; font-size: 10pt;">

 

Favorite Style

</h5>

 

 

</td>

 

 

<td style="vertical-align: top">

 

<

 

asp:CheckBoxList ID="CheckBoxList1" runat="server" CellPadding="0" Width="130px"

 

CellSpacing

 

="0">

 

 

<asp:ListItem Text="Classic" Selected="True" />

 

 

<asp:ListItem Text="Rock" Selected="True" />

 

 

<asp:ListItem Text="Jazz and Fusion" />

 

 

<asp:ListItem Text="Rhythm and blues" />

 

 

<asp:ListItem Text="Hard'n'Heavy" />

 

 

</asp:CheckBoxList>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

 

&nbsp;

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; text-align: right">

 

 

<h5 style="padding: 0; margin: 0; font-size: 10pt;">

 

Current Age

</h5>

 

 

</td>

 

 

<td style="vertical-align: top">

 

 

<asp:RadioButtonList ID="RadioButtonList2" runat="server" CellPadding="0" CellSpacing="0">

 

 

<asp:ListItem Text="Under 18" />

 

 

<asp:ListItem Text="18-22" />

 

 

<asp:ListItem Text="23-29" Selected="True" />

 

 

<asp:ListItem Text="30-39" />

 

 

<asp:ListItem Text="40-49" />

 

 

<asp:ListItem Text="50-59" />

 

 

<asp:ListItem Text="60 and above" />

 

 

</asp:RadioButtonList>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td style="vertical-align: top">

 

 

<table>

 

 

<tr>

 

 

<td style="vertical-align: top" valign="top">

 

 

<label>

 

Name

</label>

 

 

</td>

 

 

<td style="vertical-align: top">

 

 

<asp:TextBox ID="nametextbox1" runat="server" Text="First" Style="width: 200px"></asp:TextBox>

 

 

<asp:TextBox ID="nametextbox2" runat="server" Text="Middle" Style="width: 200px"></asp:TextBox>

 

 

<asp:TextBox ID="nametextbox3" runat="server" Text="Last" Style="width: 200px"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top">

 

 

<label>

 

Address

</label>

 

 

</td>

 

 

<td style="vertical-align: top">

 

 

<textarea cols="21" rows="4" style="width: 200px;" id="textarea">Billing Address</textarea>

 

 

<textarea cols="21" rows="4" style="width: 200px;" id="textarea1">Shipping Address</textarea>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top">

 

 

<label>

 

Volume

</label>

 

 

</td>

 

 

<td style="vertical-align: top">

 

 

<telerik:RadSlider ID="zoomSlider1" runat="server" Width="207px" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</fieldset>

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView2" runat="server">

 

 

<fieldset style="width: 520px" id="roundedCornersPanel">

 

 

<legend>Rounded corners panel</legend>

 

 

<div>

 

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque id neque.

Proin volutpat vestibulum magna. Fusce faucibus metus id pede. Integer molestie

neque vitae justo. Quisque lacinia velit nec elit. Vestibulum ante ipsum primis

in faucibus orci luctus et ultrices posuere cubilia Curae;

 

<br />

 

 

<div style="float: left">

 

 

<asp:TextBox ID="TextBox1" TextMode="multiLine" Columns="20" Rows="3" runat="server">Rounded corners textbox</asp:TextBox>

 

 

</div>

 

 

<div style="float: left">

 

 

<asp:RadioButtonList ID="RadioButtonList1" runat="server">

 

 

<asp:ListItem Text="RadioButton1"></asp:ListItem>

 

 

<asp:ListItem Text="RadioButton2"></asp:ListItem>

 

 

</asp:RadioButtonList>

 

 

</div>

 

 

<br style="clear: both;" />

 

 

<asp:CheckBox ID="chckBox" runat="server" Text="ToolTipified CheckBox" />

 

 

<br style="clear: both;" />

 

 

<br style="clear: both;" />

 

 

<asp:Button runat="server" ID="Button1" Text="Submit Button" />

 

 

</div>

 

 

</fieldset>

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

<fieldset style="width: 520px">

 

 

<legend>Grid</legend>

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="true"

 

 

AllowPaging="true" PageSize="4" AllowMultiRowSelection="true">

 

 

<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn HeaderStyle-Width="20px" />

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

<Selecting AllowRowSelect="true" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

<%

-- <asp:XmlDataSource ID="XmlDataSource1" runat="server" />

 

--

 

%> </fieldset>

 

 

</td>

 

 

<td valign="top" style="padding: 20px">

 

 

<telerik:RadMenu ID="RadMenu2" runat="server" Style="float: left; clear: both;">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="File">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="New...">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="File">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Folder">

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

<telerik:RadMenuItem Text="Open">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Close">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Save">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Save as ..." Enabled="false">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Permissions">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="Unrestricted Access">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Do Not Distribute">

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Edit">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="Cut">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Copy">

 

 

</telerik:RadMenuItem>

 

 

<telerik:RadMenuItem Text="Paste">

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenu>

 

 

<br />

 

 

<telerik:RadTreeView CheckBoxes="true" ID="RadTreeView1" runat="server" Height="270px"

 

 

Width="300px">

 

 

<Nodes>

 

 

<telerik:RadTreeNode Text="Personal Folders" Expanded="True">

 

 

<Nodes>

 

 

<telerik:RadTreeNode Checked="true" Text="Deleted Items (6)" />

 

 

<telerik:RadTreeNode Text="Drafts" />

 

 

<telerik:RadTreeNode Text="Inbox (14)" Checked="true" Expanded="True">

 

 

<Nodes>

 

 

<telerik:RadTreeNode Text="Invoices" />

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Junk E-mail" />

 

 

<telerik:RadTreeNode Text="Outbox" />

 

 

<telerik:RadTreeNode Text="Sent Items" Checked="true" />

 

 

<telerik:RadTreeNode Text="Search Folders" Checked="true" Expanded="True">

 

 

<Nodes>

 

 

<telerik:RadTreeNode Text="Form Follow Up" />

 

 

<telerik:RadTreeNode Text="Large Mail" />

 

 

<telerik:RadTreeNode Text="Unread Mail" />

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeView>

 

 

</td>

 

 

</tr>

 

 

</table>

 

<%

-- <qsf:Footer runat="server" ID="Footer1" />

 

--

 

%> </form>

 

</

 

body>

 

</

 

html>

 




i also tried with asp tab control it is also not decorating asp tab control.
pls reply as soon as poosible




thanks & regards
smariti
Georgi Tunev
Telerik team
 answered on 11 May 2010
1 answer
98 views
Hi All,

I'm trying to expire the previous web page. Now I can achieve this by

Response.AddHeader(

"Pragma", "no-cache")

 

Response.Cache.SetCacheability(HttpCacheability.NoCache)

Response.Cache.SetExpires(DateTime.Now.AddHours(-1))



in the page.load event for pages that do not have AJAX enabled. But for a few of my projects pages i've a

RadAjaxManager

 

which somehow interfers with the above code. I'm certain its to do with the AJAX callback as when I set

 

EnableAJAX

 

="false" all works as before.

Does anyone no how to expire the page when AJAX is enabled or have any suggestions????


Thanks

Mark

Veli
Telerik team
 answered on 11 May 2010
1 answer
98 views
I want export one grid directly and doesn't open it, just pass the export type through the querysting like this:
http://localhost/MyGrid.aspx?exportTo=Csv

Regards,
LP
Princy
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
131 views

Hi There,

Just wonder when could RadEditor for SharePoint 2010 could be available. If not then when could it be? Is there any trial version we could try out?

Thanks & Regards,

Thomas

Stanimir
Telerik team
 answered on 11 May 2010
1 answer
150 views

I have a heirachical grid and my detail table looks like,

<

 

DetailTables>

 

 

    <rad:GridTableView AutoGenerateColumns="false" runat="server" CommandItemDisplay="Top"

 

 

        PageSize="3" Name="Payments" DataKeyNames="PaymentLossDetailID" GridLines="Horizontal"

 

 

        AllowFilteringByColumn="false" Width="1200px" NoDetailRecordsText="No payments to display"><%--SIW451--%>

 

 

        <ParentTableRelation>

 

 

            <rad:GridRelationFields DetailKeyField="PaymentLossDetailID" MasterKeyField="LossDetailID" />

 

 

        </ParentTableRelation>

 

 

        <CommandItemTemplate>

 

 

                <asp:LinkButton ID="lbAddPayment" runat="server" OnClientClick="AddPayment    (this); return false;"><img  style="border:0px" alt="" src="Images/GridAddNew.gif" />Add New Payment</asp:LinkButton><asp:LinkButton ID="lbAddCollection" runat="server" CommandName="InsertCollection"

 

 

Style="padding-left: 30px"><img style="border:0px" alt="" src="Images/GridAddNew.gif" />Add New Collection</asp:LinkButton>

 

 

        </CommandItemTemplate>

As you can see right now I am calling AddPayment(this) on command item client click, but what I actually want to pass is the parent row, which was expanded and is the current parent of this detailtable. It could be something like AddPayment(this.OwnerTableView.get_ParentRow())so that I can use the row and then the column values in my client script.

Please let me know how to achieve this in client script.

Thanks
Ankur

 

Princy
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
88 views
Hello, we are having problems with RadEditor in MOSS 2007.  It appears to be IE related as Firfox works normally.  when users type multiple lines of text and then go back to format the editor seems to be treating all text as one block.  i.e When they center the title it centers everything.  FIrefox does not have this issue.  a user can highlight a line of text and center it without impacting the rest of the text.   In IE they can select text in the middle of the page and it will center everything above and below it. 

I have tried playing with the "FixEnclosingP" but it doesn't seem to have any affect on the problem.

Any ideas?? Your "First Look" live demo has the same behavior.
Stanimir
Telerik team
 answered on 11 May 2010
3 answers
87 views
I am currently working on developing a time card entry application, and evaluating the Telerik ASP.NET Ajax controls.

I have spent the day trying to make the following work, however I have not had any success. Was wondering if you would be able to offer some suggestions?

Scenario:
I have a grid that is populated with data from a SQL query done in code server side (and this works ok). We need to be able to edit this data in grid. I have been trying to make this work in a FormTemplate.
a. Two of the columns (Job and Cost Code) should be drop down lists. They are from different data tables (We'll call them JobCode and CostCode for now) - and there is a foreign key relationship between these two tables.
b. On initial click of the Edit, I need it to:
    - Populate the job list
    - Select the appropriate job based on that row's data (JobID)
    - Populate the cost code list with those available for that job (based on JobID column and key relationship)
    - Select the appropriate cost code based on that rows data (CostCodeID)
c. If the Job SelectedIndex is changed, I need it to:
    - Populate the cost code list with those available for that job (based on JobID column and key relationship)
    - Select the first available item in the cost code drop down list

Any suggestions/ideas?
Martin
Telerik team
 answered on 11 May 2010
4 answers
168 views
Hi,  I have a really basic need that is so basic that maybe no one has posted before.

I'd like to have a BinaryImage act like a button and provide a OnClick and CommandArgument like an ImageButton does.

Please show me how I can do this...  Can I wrap this control in another control in the RagGrid or ListView?

I have an ImageStream and want to use the Rad BinaryImage to render but I want the properties of a ImageButton.

thanks
Marty
BaiH
Top achievements
Rank 1
 answered on 11 May 2010
3 answers
123 views
Hello

I have a radgrid configured to return results based on an ArrayList. The results are a list of file names, and are displayed correctly. I would like to configure it, so when I click on one of the items in the grid a peice of server side (c#) code is executed. I have done this in other grids where they are bound to SQL, but I can't find out how to pass in the data from the link into the server side code. In other grids, I pass it in like below, but because the columns are automatic and it is an ArrayList, this seems more difficult, any suggestion would be welcomed.

 

<telerik:GridTemplateColumn meta:resourcekey="ColumnSubject">

 

 

<ItemTemplate>

 

 

<asp:LinkButton runat="server" ID="btnShowEmailPreview" Width="200px" CommandName="RowClick" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ExecutedActionLogID")%>'

 

 

><%#DataBinder.Eval(Container.DataItem, "Subject")%></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

Regards

Tsvetoslav
Telerik team
 answered on 11 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?