Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
183 views
Sorry, but i can't find in the Help how to configure languages in radSpell in sharepoint. I want to spell check two languages.
so i supose it should be in the control or in the config xml.
Can you help me?

Thanks,
Edgar Cardeira
PeteV
Top achievements
Rank 1
 answered on 18 May 2011
2 answers
74 views
Hi
I've read the document on http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html about how to embed our custom skins in an assembly to have the performance point by RadStyleSheetManager control.
My question is : 
Is there any possibility to embed multiple skins for different Rad Controls and just make ONE entry in RadStyleSheetManager ?
Please consider this markup:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.TelerikSkinForComboBox.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

I want to change this to :

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.COMMEN.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

and for example if I use my custom skin for RadInput , the special css for RadInput , 
and if I use another custom skin for RadButton , the special css for RadButton been loded by RadStyleSheetManager.

I want to get rid of adding multiple entries to <StyleSheets> part of RadStyleSheetManager.
If it's not possible , are these added CSS references (for different custom skins) just loaded when they are required(when custom skins are used)?

Thank you very much for your feedbacks?
reza
Top achievements
Rank 1
 answered on 18 May 2011
3 answers
390 views
I have a radgrid.
Data is shown in the RadGrid
On window xp professional service pack 3 with Adobe Reader 8.2
i run the code
RadGrid.MasterTableView.ExportToPDF();
Its work fine.

when same code i run on Window7 Enterprise service pack1 with Adobe Reader 9.4 (on remote machine)
it does not work fine.
By default file that is exported from the radgrid is shown with word format.
and have the data in encrypted format. Second thing when this file is opened
in pdf it does not contain anything.

Please provide me solution.
Daniel
Telerik team
 answered on 18 May 2011
4 answers
169 views
I'm trying to export data using radgrid, it works fine for word, csv and excel. But when I try exporting to  dpf document, data is not formatted as it appears on the radgrid and yet for the other formats, are OK. In pdf, the column get resized and come out larger than they appear on the grid and thus they dont fit in A4 page on landscape even when they should.

How can I ensure the pdf document appear like data displayed on the grid? (i.e. columns in pdf are the same like the fixed columns i have set on radgrid). It works for other formats.

I have attached two sample docs that I get after exporting data:

1. Word-All columns appear.jpg: It shows a sample document exported to "word" and all columns are visible and well formatted.
2. PDF-cut of columns.jpg: Shows a sample document exported to "pdf" only a few columns are visible. The columns widths have been enlarged such that it cannot fit in the A4 page.

How can I fix this?
Andrew
Top achievements
Rank 1
 answered on 18 May 2011
3 answers
86 views
Hi,

I have a page where in there are multiple RadDock. 
Below code applied the styles to all Dock elements:
DIV.RadDock .rdCenter EM
{ color: #0472B3; font-weight:bold;    }

But I want to change the color/css of only one RadDock.


Thanks
Ajay
Pero
Telerik team
 answered on 18 May 2011
1 answer
35 views
I have a project and a new requirement cam up that users need to add pictures and each user that adds pictures are only able to view their photos that they added.

I am saving the images in the folder structure.I am trying to  create a new web.config file for each folder created an place the  proper user info in them but still haven't got that section down or if it will work. The reason why I am using the folder to save file is that I have unlimited disk but limited DB space.

Can I place a RadRotator  as a tool in a RadEditor for users to add pictures to and if so how do I go about doing so. Any help in the right direction is greatly appreciated.
Rumen
Telerik team
 answered on 18 May 2011
6 answers
179 views

Hi All,

I have a gridview. I have one linkbutton in the gridView and others are gridTemplatecolumns. I want to make the whole row bold whenever the user clicks on the link button

2344       abc   def        ghi    nes

so for e.g.

whenever user clicks on 2344, I want to make  2344 abc  gth rwe nes bold or of different color. Is it possible to do that.
so far my code is like below

<telerik:RadGrid ID="RadGrid_Picker" AllowSorting="True" PageSize="100" AllowPaging="True"
                                        AllowMultiRowSelection="True" runat="server" GridLines="None" OnPageIndexChanged="RadGrid_Picker_PageIndexChanged"
                                        OnPageSizeChanged="RadGrid_Picker_PageSizeChanged" Width="1500px" Visible="false" OnItemCommand="RadGrid_Picker_ItemCommand" OnItemDataBound="RadGrid_Picker_ItemDataBound"   >
                                        <ClientSettings EnableRowHoverStyle="true"><Selecting AllowRowSelect="true" /></ClientSettings>
                                        <MasterTableView Width="100%" Summary="RadGrid table" DataKeyNames="ID" />
                                        <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" >
                                            <Columns>
                                               <telerik:GridBoundColumn DataField="ID"  Visible="false"></telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn UniqueName="TemplateLinkColumn"  AllowFiltering="false" HeaderText="ID">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="ID_Link" runat="server" OnClick="ID_Link_Click" Text='<%#Bind("ID") %>' CommandName="Bold"></asp:LinkButton>
                                                      
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
</Columns>
                                        </MasterTableView>
                                        <PagerStyle Mode="NextPrevAndNumeric" />
                                    </telerik:RadGrid>
  
  
and in the code behind
  
    protected void RadGrid_Picker_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "Bold")
        {
            GridDataItem item = (GridDataItem)e.Item;
            string value = item.GetDataKeyValue("ID").ToString();
            e.Item.Style.Add(HtmlTextWriterStyle.FontWeight, "Bold");
        }
    }



Thanks.

Tsvetina
Telerik team
 answered on 18 May 2011
15 answers
1.8K+ views
Hi,
I'm using the RadGrid from prometheus Q3 2007. What I want to do is to add a row in the header of the grid to group the colomuns. Exemple:

<table>
<tr>
    <td colspan="2">group1</td>
    <td colspan="2">group2</td>
</tr>
... Followed by the standart header, assuming that my grid has 4 columns...

I'm creating my grid programmatically and adding it to a placeholder like the exemple showed here in the section "Creating ItemTemplate/EditItemTemplate of GridTemplateColumn programmatically".

I' using visual studio 2008, framework 3.5.

Iv'e looked at http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GroupB but this is just for grouping. All I want to do is just add a customer header that show two or more column headers grouped togeather. I don't need to group any data.

Thanks,
Michael
Mira
Telerik team
 answered on 18 May 2011
4 answers
145 views
I have a RadGrid that has within it a RadTabStrip (which is within the FormTemplate of the EditFormSettings). For each tab, I have a user control that contains the fields I want the user to interact with. These user controls have (Microsoft) ListBox and DropDownList controls and bind themselves to their own data to populate each of these controls with the possible values and this all works fine. The RadGrid properly populates the textbox values of the tab when the user clicks Edit (GridEditColumn) using values from the database. However, I need to update the RadTab's user control DropDownList/ListBox with the selections from the database, but how do I access the User Control (or these child controls) within the RadTab? I can't seem to catch any of the RadTabStrip events to do this (I'm guessing that these aren't being bubbled up to the grid's level?) and I haven't been able to use FindControl to locate the friendly control names (I know I could use ugly names like ctl00_ctl14_ctl00, but this is way too brittle :) ). 

The user control within each RadTab does all it's databinding events first, so all the controls are loaded with data. I'm thinking the DataBound event for the Grid is the right place to start, since this is the last visible event I've found after clicking Edit (before the RadTab is rendered -- other than perhaps PreRender, but then I have to walk the UI control tree).

Am I nesting things too deep here? Is there any easier/better way to approach this? Basically, I'm trying to have a RadTabStrip for editing a grid row's (detailed) data (not just the fields I show in the row). I don't think the updating will be an issue (updating already works for propagating textbox/checkbox values to the database), since I have access to the control tree through the ItemCommand event handler for the Update event.

Here's the markup snippet:
<%@ Register Src="~/Views/UserControls/AccountInfo.ascx" TagName="AccountInfo"
    TagPrefix="dd" %>
<%@ Register Src="~/Views/UserControls/AddressInfo.ascx" TagName="AddressInfo" TagPrefix="dd" %>
<%@ Register Src="~/Views/UserControls/RoleInfo.ascx" TagName="RoleInfo" TagPrefix="dd" %>
  
<telerik:RadGrid ID="GridUser" AllowSorting="True" PageSize="10" AutoGenerateColumns="false"
        ItemStyle-Font-Size="11px" AlternatingItemStyle-Font-Size="11px" AllowPaging="True"
        AllowFilteringByColumn="true" PagerStyle-AlwaysVisible="true" AllowMultiRowSelection="False"
        runat="server" Width="700px" Skin="Office2007" HeaderStyle-CssClass="RadGridHeader"
        DataSourceID="MasterDataSource" ShowGroupPanel="true" 
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True">
        <MasterTableView Name="GridUserView" DataSourceID="MasterDataSource" DataKeyNames="ID" Width="100%"
            Summary="RadGrid table" CommandItemDisplay="Top">            
            <Columns>
                <telerik:GridEditCommandColumn UniqueName="GridEditAccountInfo">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="FirstName" AllowSorting="true" Visible="true"
                    HeaderText="First Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="LastName" AllowSorting="true" Visible="true"
                    HeaderText="Last Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserName" AllowSorting="true" Visible="true"
                    HeaderText="User Name">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings  EditFormType="Template">
                <FormTemplate>
                    <telerik:RadTabStrip ID="userTabStrip" runat="server" SelectedIndex="0" MultiPageID="UserMultiPage1" >
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Account Info" PageViewID="AccountInfoPageView">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Address Info" PageViewID="AddressInfoPageView">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Roles" PageViewID="RolesPageView">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage runat="server" ID="UserMultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                        <telerik:RadPageView runat="server" ID="AccountInfoPageView">
                            <asp:Label ID="lblUserName" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Username") %>'
                                Visible="false" runat="server" />
                            <dd:AccountInfo runat="server" ID="EditAccountInfo" />
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="AddressInfoPageView">
                            <dd:AddressInfo runat="server" ID="EditAddressInfo" />
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="RolesPageView">
                            <dd:RoleInfo runat="server" ID="EditRoleInfo" />
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                    <br />
                    <asp:Button ID="btnUpdate" runat="server" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
                            CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update")%>' TabIndex="40"  CausesValidation="False" /> 
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" TabIndex="41" />
                </FormTemplate>
            </EditFormSettings>            
        </MasterTableView>
  
<HeaderStyle CssClass="RadGridHeader"></HeaderStyle>
  
        <ClientSettings EnableRowHoverStyle="true">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <SelectedItemStyle BorderColor="Yellow" BorderWidth="2px" BackColor="Yellow" Font-Bold="true" />
<AlternatingItemStyle Font-Size="11px"></AlternatingItemStyle>
  
<ItemStyle Font-Size="11px"></ItemStyle>
  
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</telerik:RadGrid>

Any and all help appreciated!

Jon
Tsvetina
Telerik team
 answered on 18 May 2011
4 answers
762 views
I am using a RadEditor control to display some HTML formatted text. The text is readonly (cannot be edited). I don't want any toolbars to display.

I am setting Enabled="false" which prevents the toolbar display but it also disables the scrollbars which I need.

Any suggestions on how to use RadEditor with no toolbars and in a readonly format with scrolling enabled?

Thanks
Rumen
Telerik team
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?