Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
258 views
I have created a visual webpart for SharePoint 2010 that uses the RadEditor (v 2009.2.826.20).  I am able to edit content and apply styling in the editor.  However, the "Content" property of the editor control never updates. 

Two "errors" I have encountered.
1) The editor area is grey instead of white.

2) When accessing a Paste function, e.g. Paste Plain Text, I get an error saying web.config registration is missing and references a HTTPHandler registration for Telerik. I have added this httphandler registration and still get the error.  However, I noticed it is trying to access a resource at the wrong location.  Instead of accessing at the root, it is attempting to access it from the location of visual webpart.  See below

/_CONTROLTEMPLATES/ContentEditor/ContentEditor/Telerik.Web.UI.DialogHandler.aspx?DialogName=CleanPasteHtmlContent&Skin=Office2007&Title=Paste%20As%20Html&doid=0909488d-b2fa-4b55-8b15-a56c0f218612&dpptn=&dp=Z2JxKWguPVURbnVaYmNhWGJlF3RrawpdbXIQdFZyY0pVfmIoVQBIdmxvTEttF044eXMWOFUUEA4RbnFbYVlLX2pldF5oZBZaYhYQFVUHWUVXQEwDaBRIS29rQ0t7Ams7UWIRdmcEE0oZYQ5DWU0GdlllA0RQASB0YhYYMVZYWQBVbg0xfShiQWxvTEdtdWt3VnISDmgUdFUPfB5bWnx9X3R2BERkWCBmW3AyGGdbd1hRbWIdZi9Ue1FubmdWd28RYwQONmsGJgwmbDxBbVpxaW4BLQVlWQZ%2BXCwINGFbWVl5V1xyZQRDSVFVYkVVDHcrZwUeE2YVLXYOfzRlWXBxWm4BLXFrZSB2W3MLOG0Ge3pmVX43aChUZlBvcmlUd28VeFkeMWUEPW4QUjx3aVhXUm93NQFrZScEXBcAFGdtUX5mfkB1ZRRbAXt9BUBgHG8MVF4CO2IWE3YObg56bV51WVpkEAJrXnVmdRYQCGdYXVllClAqZxZYZlRvfnlVA0kWeFkdcGcoJgwgVTRrdnBffW53KQNlXnV2WgR3d24GXX9VVW40ZhViflQIAXNnEAl1YXJ9K2gUPUkmVAIDWWMKRm11AwdTcDx2YRY6O25mQkd4fUACVAtiXVZVAVlVAWsybGI8N2twC2gaYRZcdHFpW1p6C1t%2BdwVCd3E6KVZYUQFtblAofQZqWVdwel17AHgxYlkncVUFH24XbXQO

Any input would greatly be appreciated!
--Jason



Jason Parrish
Top achievements
Rank 1
 answered on 27 Jan 2010
3 answers
102 views
Hello,
I hope someone can help me with this. We are trying to disable certain RadToolBarItems, when another RadToolBarItem has been clicked. We tried the following two ways:

RadToolBar1.Items[6].Enabled = false

Telerik.Web.UI.RadToolBarItem Properties = RadToolBar1.FindItemByText("Properties");  
Properties.Enabled = false

The button is still enabled and the user has access to the underlying functionality. Is there any reason why the button shouldn't be disabled using the above code?

Thank  you in advance.
Tanja
Yana
Telerik team
 answered on 27 Jan 2010
2 answers
307 views
Hello all I need to use an image in my gridview as a hyperlink.  I read a similar post on here but I could not get it to work for me.

I can get the image in a GridButtonColumn but no hyperlink.. I can get a hyperlink in the GridHyperLinkColumn but no image.  Here is my clientside code.

Thanks for the help.

<Columns> 
                    <telerik:GridHyperLinkColumn NavigateUrl="mylink.aspx"   
                      ItemStyle-Width="20px"  HeaderText="Button Column" Text="Link" > 
                    </telerik:GridHyperLinkColumn> 
                    <telerik:GridButtonColumn FooterText="ImageButtonColumn<br/>footer" DataTextFormatString="Select {0}" 
                        ButtonType="ImageButton" UniqueName="column" HeaderText="Teachers" ItemStyle-Width="20px" 
                        ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" CommandName="Select" 
                        DataTextField="CustomerID" ImageUrl="App_Themes/NewTheme/images/Teachers.gif">  
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                        <ItemStyle HorizontalAlign="Center" Width="20px"></ItemStyle> 
                    </telerik:GridButtonColumn> 
Bryan Davis
Top achievements
Rank 1
 answered on 27 Jan 2010
1 answer
134 views
Hi all,

1) I have implemented Rad ajax panel(progress bar) for Rad grid on click of Link button if it is going to  any exception the page is getting hanged due to Rad ajax panel  until any event is fired how can we handle when we got any exception

2)the Between option for Filtering is Showing Wrong data for dates when we use Telerik grid bound column i also used Datatype as system.datatime if we use Telerik Datetime it is not showing Between option.


 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">  
 
<asp:UpdatePanel ID="UpdatePanel2" runat="server">  
 
<ContentTemplate> 
 
<telerik:RadGrid ID="gviewProjectwisetask" runat="server" Width="100%" AutoGenerateColumns="False"   
 
GridLines="None" CellPadding="2"   
 
 
onrowcommand="gviewProjectwisetask_RowCommand"   
 
onpageindexchanging="gviewProjectwisetask_PageIndexChanging"   
 
BackImageUrl="~/images/grad_l2.gif" BorderColor="#66CCFF"   
 
BorderStyle="Solid" BorderWidth="1px"   
 
onrowdatabound="gviewProjectwisetask_RowDataBound"   
 
onrowediting="gviewProjectwisetask_RowEditing"   
 
onrowdeleting="gviewProjectwisetask_RowDeleting" Skin="Vista"   
 
onitemcommand="gviewProjectwisetask_ItemCommand"   
 
onitemdatabound="gviewProjectwisetask_ItemDataBound">  
 
 
<MasterTableView> 
 
<Columns> 
 
<telerik:GridTemplateColumn HeaderText="Resource Name">  
 
<ItemTemplate> 
 
<asp:LinkButton ID="ResourceName" runat="server" CommandName="Select" Text='<%#DataBinder.Eval(Container.DataItem,"Resource Name") %>'></asp:LinkButton> 
 
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridBoundColumn DataField="Resource ID" HeaderText="ResourceId"   
 
ItemStyle-CssClass="columnHidden" HeaderStyle-CssClass="columnHidden" > 
 
 
<HeaderStyle CssClass="columnHidden" /> 
 
<ItemStyle CssClass="columnHidden" Font-Bold="False" Font-Italic="False"   
 
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"   
 
HorizontalAlign="Left" Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridTemplateColumn HeaderText="Task/Module Name">  
 
<ItemTemplate> 
 
<asp:Label ID="lblTaskmane" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Task Name") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Task Description">  
 
<ItemTemplate> 
 
<asp:Label ID="lblDesc" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Description") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Assigned By">  
 
<ItemTemplate> 
 
<asp:Label ID="lblAssignedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Assigned By") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
<telerik:GridTemplateColumn HeaderText="ModifiedBy">  
 
<ItemTemplate> 
 
<asp:Label ID="lblModifiedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Modified By") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Phase">  
 
<ItemTemplate> 
 
<asp:Label ID="lblphase" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"phase") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="ETA(Hrs)">  
 
<ItemTemplate> 
 
<asp:Label ID="lblETA" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Estimated Hours") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Date">  
 
<ItemTemplate> 
 
<asp:Label ID="lblDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Date") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn>   
 
 
<telerik:GridBoundColumn DataField="Task ID" HeaderText="TaskID"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="Document ID" HeaderText="DocumentID"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridTemplateColumn HeaderText="Document">  
 
<ItemTemplate> 
 
<asp:LinkButton ID="lnkDocument" runat="server" CommandName="Select2" Text='<%#DataBinder.Eval(Container.DataItem,"File Name") %>'></asp:LinkButton> 
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Remove Att. File">  
 
<ItemTemplate> 
 
<asp:ImageButton ID="imgbtnRemoveDocument" runat="server" ToolTip="Remove Attached File" 
 
ImageUrl="~/images/delete-file-icon.gif" CommandName="Select3" OnClientClick="return confirm('Are you sure you want to remove att. file?');"/>  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Add More">  
 
<ItemTemplate> 
 
<asp:ImageButton ID="imgbtnAddmore" runat="server" ToolTip="Add More Tasks" 
 
ImageUrl="~/images/AddMore.gif" CommandName="Select4"/>  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridBoundColumn DataField="status" HeaderText="Status"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
</Columns> 
 
</MasterTableView> 
 
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 
 
<PagerStyle   
 
ForeColor="Black" HorizontalAlign="Center" Height="30px" Font-Bold="True" Font-Names="Arial"   
 
Font-Size="Smaller" CssClass="footerbg" /> 
 
 
</telerik:RadGrid> 
 
</ContentTemplate> 
 
</asp:UpdatePanel> 
 
</telerik:RadAjaxPanel> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
 
Width="75px" Skin="Sunset">  
 
</telerik:RadAjaxLoadingPanel> 
 
 
 
 


..................................Code for Filtering...........................................

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">

 

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

<telerik:RadGrid ID="gviewResource" runat="server" AutoGenerateColumns="False" OnRowEditing="gviewResource_RowEditing"

 

 

 

 

 

OnRowDeleting="gviewResource_RowDeleting" AllowPaging="True" AllowSorting="True"

 

 

 

 

 

OnDataBound="gviewResource_DataBound" CellPadding="0"

 

 

 

 

 

GridLines="None" Width="100%" OnPageIndexChanging="gviewResource_PageIndexChanging"

 

 

 

 

 

OnRowCreated="gviewResource_RowCreated" OnSorting="gviewResource_Sorting"

 

 

BorderColor="#66CCFF" BorderStyle="Solid" BorderWidth="1px"

 

 

onrowdatabound="gviewResource_RowDataBound"

 

 

onitemcommand="gviewResource_ItemCommand" Skin="Vista"

 

 

AllowFilteringByColumn="True" onitemcreated="gviewResource_ItemCreated"

 

 

EnableLinqExpressions="False"

 

 

onitemdatabound="gviewResource_ItemDataBound">

 

 

 

 

 

 

<MasterTableView>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="ResourceID" HeaderText="ID" >

 

 

 

 

 

<HeaderStyle CssClass="textCenter" Width="6%" Wrap="True" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" HeaderStyle-Width="75px">

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Designation" HeaderText="Designation" SortExpression="Designation" HeaderStyle-Width="75px">

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Date Of Joining" HeaderText="Date Of Joining" SortExpression="Date Of Joining" HeaderStyle-Width="75px">

 

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Date Of Birth" HeaderText="Date Of Birth" SortExpression="Date Of Birth" HeaderStyle-Width="75px">

 

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Exp. In Yrs" HeaderText="Exp. In Years" SortExpression="Exp. In Yrs" HeaderStyle-Width="75px">

 

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Exp. In Mon" HeaderText="Exp. In Mon" SortExpression="Exp. In Mon" HeaderStyle-Width="75px">

 

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Email" HeaderText="Email ID" SortExpression="Email" HeaderStyle-Width="75px">

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Resource Status" HeaderText="Status" SortExpression="Resource Status" HeaderStyle-Width="75px">

 

 

 

 

 

 

<HeaderStyle Width="75px" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Edit" AllowFiltering="false" >

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:ImageButton ID="Image" runat="server" ImageUrl="images/edit.gif" CommandName="Edit" ></asp:ImageButton>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Reject/Delete" AllowFiltering="false">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:ImageButton ID="imgbtnDeActivate" runat="server" ToolTip="Delete Resource" ImageUrl="~/images/delete-icon.gif"

 

 

 

 

 

CommandName="Delete" OnClientClick="return confirm('Are you sure you want to reject/delete this resource?');" />

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

</Columns>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

 

<Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="False" />

 

 

 

 

 

<Resizing AllowColumnResize="True" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

<FooterStyle ForeColor="White" />

 

 

 

 

 

 

 

<HeaderStyle CssClass="heading" Font-Bold="True" Font-Strikeout="False" Font-Underline="False"

 

 

 

 

 

Height="30px" />

 

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

</ContentTemplate>

 

 

 

 

 

</asp:UpdatePanel>

 

 

 

 

 

</telerik:RadAjaxPanel>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

 

 

 

Width="75px" Skin="Sunset">

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

Iana Tsolova
Telerik team
 answered on 27 Jan 2010
1 answer
324 views
I have a tab strip using RadMultiPage. I have two tabs defined with tab 2 starting out as disabled. When next button is clicked on tab 1 and tab 1 is validated properly tab 2 should be enabled and focus should be set to the second RadPageView for tab 2. I am able to enable tab 2 but I can not figure outhow to make the second page view current and have focus.
Yana
Telerik team
 answered on 27 Jan 2010
6 answers
288 views
Hello, I am attempting to apply css to the hyperlink manager (radwindow) that appears from the radeditor control. Currently I have the radeditor on an aspx page with enableembeddedstyles=false  e.g.

 <rad:RadEditor ID="x" runat="server"
        Skin="x" EnableEmbeddedSkins="false"  Height="300px"  >                       
        <Content>                      
        </Content>        
    </rad:RadEditor>

The control is getting style information from a stylesheet on the page using a link tag.
So the radeditor is getting style information correctly but the hyperlink manager seems to be using it's own internal style regardless of any selectors I have in my css file.
Is there a way to set the EnableEmbeddedSkins property of the hyperlink manger in this case and have it use my style sheet?

Thanks
Rumen
Telerik team
 answered on 27 Jan 2010
3 answers
154 views

Support,

Rad Version Used: RadControls_for_ASP.NET_AJAX_2009_1_527_dev
Browser :  IE 7

Issue:
We are facing a RadGrid's horizontal scrollbar diappearing issue when we swith-on the Frozen column feature.

We have a Rad Splitter with RadPane1 and RadPane2  the RadGrid is in RadPane2. The rad grid has 25 columns.

The scenario happens only when you move the scroll bar to the right extreme and then Collapse/Expand the RadSplitterbar.
The only way to get back the scroll bar is to refresh page, and obviously we will loose all client side data when that happens. This has put the project in Red.

This issue does not happen when the scroll bar is on the very left.

Kindly let us know the fix.

The .aspx code is listed below:

 

<%

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

 

<%

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

 

 

 

 

<

 

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

 

<

 

head runat="server">

 

 

 

 

 

 

<title>Untitled Page</title>

 

</

 

head>

 

<

 

body>

 

 

 

 

 

 

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

 

 

 

 

 

 

<div>

 

 

 

 

 

 

<telerik:RadScriptManager ID="rsm" runat="server" >

 

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

 

<telerik:RadSplitter ID="RadSplitter1" Skin="WebBlue" runat="server" BackColor="#f0f0f0"

 

 

 

 

 

 

Height="535px" Width="100%">

 

 

 

 

 

 

<telerik:RadPane ID="RadPane1" runat="server" Font-Bold="true" Font-Size="50px" >

 

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" />

 

 

 

 

 

 

<telerik:RadPane ID="RadPane2" Scrolling="None" runat="server"

 

 

 

 

 

 

BackColor="#f0f0f0" >

 

 

 

 

 

 

<telerik:RadGrid ID="ExcelSheetGrid" Skin="Vista" runat="server" AutoGenerateColumns="true"

 

 

 

 

 

 

BackColor="Transparent" GridLines="None" PageSize="10" ShowFooter="false" Width="99.8%"

 

 

 

 

 

 

AllowPaging="True" Height ="500px" OnNeedDataSource="ExcelSheetGrid_NeedDataSource" HeaderStyle-Wrap="true">

 

 

 

 

 

 

<HeaderStyle Width ="150px" />

 

 

 

 

 

 

<ClientSettings>

 

 

 

 

 

 

<Scrolling AllowScroll="True" SaveScrollPosition="true" FrozenColumnsCount="1" UseStaticHeaders="True" />

 

 

 

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

</telerik:RadSplitter>

 

 

 

 

 

 

</div>

 

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Pavlina
Telerik team
 answered on 27 Jan 2010
0 answers
82 views
Hi..

I have any SVL.combobox with items templates what it contain 4 to 6 columns. How I do for add titles to every column as similar that ASP.RadComboBox?
Example:

<telerikInput:RadComboBox x:Name="rcbTercero" Width="212" MaxDropDownHeight="250" FontFamily="Trebuchet MS" FontSize="10.667"  
                Background="#FFD6E9F2" IsHighlighted="True" IsReadOnly="True" Height="25" Canvas.Left="145" Canvas.Top="-1" >                
                <telerikInput:RadComboBox.ItemTemplate > 
                        <DataTemplate> 
                            <Grid Margin="3,3,3,3" Width="750"
                 <Grid.ColumnDefinitions> 
                   <ColumnDefinition Width="40" /> 
                   <ColumnDefinition Width="120" /> 
                   <ColumnDefinition Width="100" /> 
                   <ColumnDefinition Width="60" /> 
                   <ColumnDefinition Width="60" /> 
                   <ColumnDefinition Width="100" /> 
                   <ColumnDefinition Width="80" /> 
                   <ColumnDefinition Width="20" /> 
                   <ColumnDefinition Width="40" /> 
                   <ColumnDefinition Width="80" /> 
                   <ColumnDefinition Width="40" /> 
                   <ColumnDefinition Width="40" /> 
                   <ColumnDefinition Width="40" /> 
                 </Grid.ColumnDefinitions> 
                 <TextBlock Grid.Column="0" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding codPersona}" HorizontalAlignment="Right" Margin="0,0,10,0"/> 
                 <TextBlock Grid.Column="1" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding RazonSocial}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="2" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Nombre}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="3" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Telefono}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="4" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Direccion}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="5" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding numDocIdentificacion}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="6" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Nit}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <CheckBox Grid.Column="7" Height="20" Width="20" Content="x" IsChecked="{Binding Vigente}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="8" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Celular}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="9" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Abrev}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="10" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding Mini}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="11" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding PaginaWeb}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                 <TextBlock Grid.Column="12" Foreground="Black" FontFamily="Verdana" FontSize="8" Text="{Binding eMail}" HorizontalAlignment="Left" Margin="3,0,0,0"/> 
                                 <TextBlock Grid.Column="11" Visibility="Collapsed" Text="{Binding FactorDstoCliente}" /> 
                 <TextBlock Grid.Column="12" Visibility="Collapsed" Text="{Binding FactorDstoProv}" /> 
             </Grid> 
            </DataTemplate> 
            </telerikInput:RadComboBox.ItemTemplate> 



Juan Pablo Díaz S,
Bogotá - Colombia
kronnos_indigo
Top achievements
Rank 2
 asked on 27 Jan 2010
0 answers
111 views

 

Hi all,

1) I have implemented Rad ajax panel(progress bar) for Rad grid on click of Link button if it is going to  any exception the page is getting hanged due to Rad ajax panel  until any event is fired how can we handle when we got any exception

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">  
 
<asp:UpdatePanel ID="UpdatePanel2" runat="server">  
 
<ContentTemplate> 
 
<telerik:RadGrid ID="gviewProjectwisetask" runat="server" Width="100%" AutoGenerateColumns="False"   
 
GridLines="None" CellPadding="2"   
 
 
onrowcommand="gviewProjectwisetask_RowCommand"   
 
onpageindexchanging="gviewProjectwisetask_PageIndexChanging"   
 
BackImageUrl="~/images/grad_l2.gif" BorderColor="#66CCFF"   
 
BorderStyle="Solid" BorderWidth="1px"   
 
onrowdatabound="gviewProjectwisetask_RowDataBound"   
 
onrowediting="gviewProjectwisetask_RowEditing"   
 
onrowdeleting="gviewProjectwisetask_RowDeleting" Skin="Vista"   
 
onitemcommand="gviewProjectwisetask_ItemCommand"   
 
onitemdatabound="gviewProjectwisetask_ItemDataBound">  
 
 
<MasterTableView> 
 
<Columns> 
 
<telerik:GridTemplateColumn HeaderText="Resource Name">  
 
<ItemTemplate> 
 
<asp:LinkButton ID="ResourceName" runat="server" CommandName="Select" Text='<%#DataBinder.Eval(Container.DataItem,"Resource Name") %>'></asp:LinkButton> 
 
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridBoundColumn DataField="Resource ID" HeaderText="ResourceId"   
 
ItemStyle-CssClass="columnHidden" HeaderStyle-CssClass="columnHidden" > 
 
 
<HeaderStyle CssClass="columnHidden" /> 
 
<ItemStyle CssClass="columnHidden" Font-Bold="False" Font-Italic="False"   
 
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"   
 
HorizontalAlign="Left" Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridTemplateColumn HeaderText="Task/Module Name">  
 
<ItemTemplate> 
 
<asp:Label ID="lblTaskmane" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Task Name") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Task Description">  
 
<ItemTemplate> 
 
<asp:Label ID="lblDesc" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Description") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Assigned By">  
 
<ItemTemplate> 
 
<asp:Label ID="lblAssignedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Assigned By") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
<telerik:GridTemplateColumn HeaderText="ModifiedBy">  
 
<ItemTemplate> 
 
<asp:Label ID="lblModifiedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Modified By") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
 
 
<telerik:GridTemplateColumn HeaderText="Phase">  
 
<ItemTemplate> 
 
<asp:Label ID="lblphase" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"phase") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="ETA(Hrs)">  
 
<ItemTemplate> 
 
<asp:Label ID="lblETA" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Estimated Hours") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Date">  
 
<ItemTemplate> 
 
<asp:Label ID="lblDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Date") %>'></asp:Label> &nbsp;  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn>   
 
 
<telerik:GridBoundColumn DataField="Task ID" HeaderText="TaskID"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="Document ID" HeaderText="DocumentID"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
<telerik:GridTemplateColumn HeaderText="Document">  
 
<ItemTemplate> 
 
<asp:LinkButton ID="lnkDocument" runat="server" CommandName="Select2" Text='<%#DataBinder.Eval(Container.DataItem,"File Name") %>'></asp:LinkButton> 
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Remove Att. File">  
 
<ItemTemplate> 
 
<asp:ImageButton ID="imgbtnRemoveDocument" runat="server" ToolTip="Remove Attached File" 
 
ImageUrl="~/images/delete-file-icon.gif" CommandName="Select3" OnClientClick="return confirm('Are you sure you want to remove att. file?');"/>  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Add More">  
 
<ItemTemplate> 
 
<asp:ImageButton ID="imgbtnAddmore" runat="server" ToolTip="Add More Tasks" 
 
ImageUrl="~/images/AddMore.gif" CommandName="Select4"/>  
 
</ItemTemplate> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
 
Wrap="True" /> 
 
 
</telerik:GridTemplateColumn> 
 
<telerik:GridBoundColumn DataField="status" HeaderText="Status"   
 
> 
 
 
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
 
Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"   
 
Wrap="True" /> 
 
 
</telerik:GridBoundColumn> 
 
</Columns> 
 
</MasterTableView> 
 
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 
 
<PagerStyle   
 
ForeColor="Black" HorizontalAlign="Center" Height="30px" Font-Bold="True" Font-Names="Arial"   
 
Font-Size="Smaller" CssClass="footerbg" /> 
 
 
</telerik:RadGrid> 
 
</ContentTemplate> 
 
</asp:UpdatePanel> 
 
</telerik:RadAjaxPanel> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
 
Width="75px" Skin="Sunset">  
 
</telerik:RadAjaxLoadingPanel> 
 
 
 

yeswanth pavan
Top achievements
Rank 1
 asked on 27 Jan 2010
2 answers
107 views
I currently have the following code working

 

<CommandItemTemplate>

 

 

<div id="list_countries" onmouseover="mouseover()" onmouseout="mouseout()" >

 

 

<asp:CheckBoxList ID="CheckBoxList1" runat="server" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged">

 

 

</asp:CheckBoxList>

 

 

</div>
<CommandItemTemplate>


which runs this

 

protected

 

void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)

 

{

 

 

CheckBoxList cbList = sender as CheckBoxList;

 

 

 

foreach

 

(ListItem listItem in cbList.Items)

 

RadGrid1.MasterTableView.Columns[cbList.Items.IndexOf(listItem)].Display = listItem.Selected;

}



This works great but I need to change it so instead of OnSelectedIndexChanged it runs off of a button like so
<CommandItemTemplate>

<

 

div id="list_countries" onmouseover="mouseover()" onmouseout="mouseout()" >

 

 

<asp:CheckBoxList ID="CheckBoxList1" runat="server" >

 

 

</asp:CheckBoxList>

 

 

</div>

 

 

<div class="commandmiddle">

 

 

<asp:Button ID="Button5" runat="server" Text="Show/Hide Columns" OnClick="CheckBoxList1_SelectedIndexChanged"> />

 

 

</div>
</CommandItemTemplate>

but I cant get the checkboxlist control in the CheckBoxList1_SelectedIndexChanged function if its from the button

what should I do?

 

Lee Malo
Top achievements
Rank 1
 answered on 27 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?