Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views
I have two questons here.  First, how do I format the exapaned grid columns to be a fixed width?  I've tried setting the header and item style widths but they are not working.  Second, how can I make the expanded row highlited like if I were Selecting it.  I've attached screen shots and my code


<telerik:RadGrid ID="rgFeedback" runat="server" Skin="Web20" DataSourceID="dsFeedback"
                                                                    AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False"
                                                                    AllowPaging="True" GridLines="None" PageSize="25" Width="100%" OnSelectedIndexChanged="rgFeedback_SelectedIndexChanged"
                                                                    OnItemCommand="rgFeedback_ItemCommand">
                                                                    <MasterTableView DataKeyNames="FeedbackID" AllowMultiColumnSorting="True" HierarchyLoadMode="ServerOnDemand"
                                                                        Width="100%">
                                                                        <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
                                                                            ShowExportToCsvButton="true" ExportToExcelText="Excel" />
                                                                        <DetailTables>
                                                                            <telerik:GridTableView DataKeyNames="FeedbackDetailID" DataSourceID="edsDetails" Width="900px"
                                                                                runat="server">
                                                                                <ParentTableRelation>
                                                                                    <telerik:GridRelationFields DetailKeyField="FeedbackID" MasterKeyField="FeedbackID" />
                                                                                </ParentTableRelation>
                                                                                <Columns>
                                                                                    <telerik:GridBoundColumn HeaderText="Entered Date" DataField="EnteredDate" DataFormatString="{0:d}"
                                                                                        HeaderStyle-Width="90px" ItemStyle-Width="90px">
                                                                                          
                                                                                    </telerik:GridBoundColumn>
                                                                                    <telerik:GridTemplateColumn HeaderText="User Name" HeaderStyle-Width="90px" ItemStyle-Width="90px">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="FirstName" runat="server" Text='<%# Eval("User.FirstName") %>'></asp:Label>
                                                                                            <asp:Label ID="LastName" runat="server" Text='<%# Eval("User.LastName") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle Width="100px" />
                                                                                    </telerik:GridTemplateColumn>
                                                                                    <telerik:GridTemplateColumn HeaderText="Details">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="Comments" runat="server" Text='<%# Eval("Comments") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </telerik:GridTemplateColumn>
                                                                                </Columns>
                                                                            </telerik:GridTableView>
                                                                        </DetailTables>
                                                                        <ExpandCollapseColumn Visible="True">
                                                                        </ExpandCollapseColumn>
                                                                        <Columns>
                                                                            <telerik:GridButtonColumn Text="Select" UniqueName="Select" CommandName="Select"
                                                                                HeaderStyle-Width="50px" ItemStyle-Width="50px">
                                                                            </telerik:GridButtonColumn>
                                                                            <telerik:GridBoundColumn HeaderText="ID" DataField="FeedbackID" ReadOnly="true" HeaderStyle-Width="50px"
                                                                                ItemStyle-Width="50px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Site Type" DataField="FeedbackSiteType" ReadOnly="true"
                                                                                HeaderStyle-Width="60px" ItemStyle-Width="60px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Feedback Type" DataField="FeedbackType" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Importance" DataField="FeedbackImportance" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Description" DataField="Description" ReadOnly="true"
                                                                                HeaderStyle-Width="200px" ItemStyle-Width="200px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Entered Date" DataField="EnteredDate" DataFormatString="{0:d}"
                                                                                ReadOnly="true" HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Entered By" DataField="UserName" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Sponsor" DataField="Sponsor" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Status" DataField="FeedbackStatus" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Developer" DataField="AssignedDeveloper" ReadOnly="true"
                                                                                HeaderStyle-Width="60px" ItemStyle-Width="60px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Start Month" DataField="StartMonth" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="End Month" DataField="EndMonth" ReadOnly="true"
                                                                                HeaderStyle-Width="75px" ItemStyle-Width="75px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="Dev Hours" DataField="TimeEst" ReadOnly="true"
                                                                                HeaderStyle-Width="60px" ItemStyle-Width="60px">
                                                                            </telerik:GridBoundColumn>
                                                                            <telerik:GridBoundColumn HeaderText="% Complete" DataField="PercentComplete" DataFormatString="{0:P0}"
                                                                                ReadOnly="true" HeaderStyle-Width="60px" ItemStyle-Width="60px">
                                                                            </telerik:GridBoundColumn>
                                                                        </Columns>
                                                                    </MasterTableView>
                                                                    <PagerStyle Position="TopAndBottom" />
                                                                    <HeaderStyle Width="100px" />
                                                                    <ClientSettings>
                                                                        <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="500px"
                                                                            FrozenColumnsCount="5"></Scrolling>
                                                                    </ClientSettings>
                                                                     <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"
                                                                        HideStructureColumns="true" Pdf-PageBottomMargin=".5" Pdf-PageTopMargin=".5"
                                                                        Pdf-PageLeftMargin=".5" Pdf-PageRightMargin=".5" Pdf-PaperSize="Legal" Pdf-PageWidth="356mm"
                                                                        Pdf-PageHeight="216mm" />
                                                                </telerik:RadGrid>
Daniel
Telerik team
 answered on 26 Jan 2011
7 answers
167 views
Hi Telerik team

I enable the AutoResizeHeight property in the radeditor, it works perfect in Design Mode, however when I switch to Html Mode, it appears again. Can some tell me how to remove this too? or should AutoResizeHeight property also can remove the double scroll-bar in html mode?


Thanks
Rumen
Telerik team
 answered on 26 Jan 2011
6 answers
81 views
Hi all,

I am on the very last version of DotNetNuke 05.05.00 and I am encountering a very weird problem with Telerik RAD Editor.
First I precise that I have already post this thread on the DNN forum and for them the problem is not linked with the provider but with the editor itself.

Actually it seems there is a problem with the formatting of the HTML code generated with the editor. Each time I Preview the content of my article or I save it, I got blank lines added in my article. So if i preview the content 5 times, 5 lines will be added, even If I don't touch anything inside the content...

I precise that the article has been entirely written in the editor (nothing linked with Word formatting), and that it doesn't happen in all my articles.

Below is the very simple HTML code entirely generated by the editor:

<p style="text-align: center; margin: 0cm 0cm 0pt;"><span style="font-family: segoe ui; color: #ffc000; font-size: 14px;"> <span style="color: #000000; font-size: 12px;">---</span></span> </p>
<p style="text-align: center; margin: 0cm 0cm 0pt;"><strong><span style="font-family: arial; color: #ffc000; font-size: 14px;">daily partners on roads round France </span>
<p style="text-align: left; margin: 0cm 0cm 0pt;"><span style="font-family: segoe ui; font-size: 12px;"><span style="font-family: arial;">To download a powerpoint please click </span>here</span></p>
</strong></p>

To test it, just add an HTML module, insert the HTML code and try just to preview or save it and you will see what I mean.

This problem is becoming very annoying for the contributors of my portal, because they cannot do anything to correct it, they have to strip all formating and restart each time. I have tried to reproduce the problem and it seems that it's linked with the "New Paragraph" functionnality and also the bulleted list.

First, can you reproduce that problem ? Just tell me if you want some additional information, the resolution of this problem is very important for my business.

Thanks for your help,

Regards,
Nicolas
Rumen
Telerik team
 answered on 26 Jan 2011
1 answer
367 views
Hey at Telerik

I would like to turn of grouping in a radgrid with the click of a button.

When i try to enable Grouping everything goes well.

this

 

.RadGrid1.ShowGroupPanel = true;

 

 

this.RadGrid1.GroupingEnabled = true;

I then drag a column to group by and everything works as it should.

At last i wanna turn of grouping by calling

 

this.RadGrid1.ShowGroupPanel = false;

 

 

this.RadGrid1.GroupingEnabled = false;

Grouping is not turned off properly, but only hidden. The dragged column remains in the GroupPanel. (I can see this if i enable grouping again)

Is there any way to clear the GroupPanel of grouped items so the grouping functionality is turned off properly ?

Sincerly Jan

Tsvetina
Telerik team
 answered on 26 Jan 2011
1 answer
34 views
Hi All

             I have a customcontrol.Custom control contains load-on-demand grid in combobox and a radgrid .radgrid is palced inside a radwindow.the radgrid popup when i click a button which is inside custom control.
I just assign datasource to radgrid and radcombobox in my page in every postback.If i place that custom control inside the complex control like repeater.It shows some java script error.Custom control is  working fine outside the Repeater.

Please do let me know what the problem might be.
Tsvetina
Telerik team
 answered on 26 Jan 2011
12 answers
176 views
Hi,
 
        I'm using Rad spell in Rad tab strip, Its working fine in First tab once i navigated to second tab ,though the controlstocheck to have different 2nd tab strip text box clientID, it wil checking first Tabstrip Textbox or Some times shows spell check complete.Pls help me to solve this problem.


Thank you in advance...


By Balaji.T
Lini
Telerik team
 answered on 26 Jan 2011
1 answer
117 views
I've got a grid that is trying to export images that are on my website, but the images themselves reside on a file server on our local network. The file share is mapped using an IIS virtual directory and NOT stored on the webserver.

So while the grid can display the images, the PDF export fails because it can't map it to the remote server. Instead of trying to find the file at
\\fileserver\\share\image.jpg it keeps trying to find it at C:\\<website directory>\share\image.jpg which doesn't exist.

Is this a limitation of the PDF export or can I make this work?

Thanks in advance.

David
Daniel
Telerik team
 answered on 26 Jan 2011
1 answer
75 views
Hi Telerik,

Installed an deployed Radeditor (radeditormoss.wsp)

Successfully, i think ( see web.config)

      <SafeControl Assembly="RadEditorSharePoint, Version=4.5.6.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" />
      <SafeControl Assembly="RadEditorSharePoint, Version=4.5.6.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" />
      <SafeControl Assembly="RadEditorSharePoint, Version=4.5.6.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" />

Activated Features on Site

 Use RadEditor to edit List Items (displayed as active)

 Use RadEditor to edit List Items in Internet Explorer as well  (displayed as active)

Did this as admin

 File RadEditorList.ascx
 is present in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES

Added the webpart to page, works.


But,

Created Task List, control doesnt show, Default Editor only.

Environment is Sharepoint 2007 sp2 on 2008 R2 64 bit, German,
Client XP sp3, IE 7


rgds

Holger
holger
Top achievements
Rank 1
 answered on 26 Jan 2011
3 answers
83 views
Hi,

So I am now able to instantiate a RadComboBoxItem from javascript, but when I try to call set_text or any other method for that matter, I get the "Object doesn't support this property or method" exception.  How do I access its members?

Thanks,
Matt
Kalina
Telerik team
 answered on 26 Jan 2011
1 answer
62 views
I like to stay in the hard-coded markup for ASP .Net and html. However, on a team I have no control of other developers flipping over to Visual Studio's 'Design Mode'. Versions of Visual Studio after 2003 improved to where flipping back and forth from 'Design Mode' to 'Text Mode' did not butcher the HTML markup. But for some reason Telerik ASP .Net controls still end up with weird formatting and inserting duplicate style tags on my RadGrid columns (for instance).

Is there anything that can be done about this? See this example.

            <Columns>
                <telerik:GridBoundColumn DataField="Patient.DisplayId" DataType="System.String" HeaderText="Patient ID"
                    SortExpression="Patient.DisplayId" />
                <telerik:GridBoundColumn DataField="Patient.FullName" DataType="System.String" HeaderText="Name"
                    SortExpression="Patient.FullName" />
                <telerik:GridDateTimeColumn DataField="Patient.Dob" DataType="System.DateTime" HeaderText="Date of Birth"
                    SortExpression="Patient.Dob" ItemStyle-Width="85px"
                    DataFormatString="{0:MM/dd/yyyy}" >
<ItemStyle Width="85px"></ItemStyle>
                </telerik:GridDateTimeColumn>
                <telerik:GridNumericColumn DataField="Age" DataType="System.Int32" HeaderText="Age"
                    SortExpression="Age" ItemStyle-HorizontalAlign="Right"
                    ItemStyle-Width="50px" >
<ItemStyle HorizontalAlign="Right" Width="50px"></ItemStyle>
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="Count" DataType="System.Int32" HeaderText="Claims"
                    SortExpression="Count" ItemStyle-HorizontalAlign="Right"
                    ItemStyle-Width="50px" >
<ItemStyle HorizontalAlign="Right" Width="50px"></ItemStyle>
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="AmountPaid"
                    DataType="System.Decimal" HeaderText="Amount Paid"
                    SortExpression="AmountPaid" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:c}"
                    ItemStyle-Width="85px" >
<ItemStyle HorizontalAlign="Right" Width="85px"></ItemStyle>
                </telerik:GridNumericColumn>
            </Columns>

The <ItemStyle HorizaontalAlign="Right" Width="85px"></ItemStyle> was not input by the developer, and it is a duplicate of settings already in the columns. It appeared after the developer made some other settings on the grid withing VS 'Design Mode'.

I understand 'Design Mode' isn't best, but it should not insert new markup and reformat the other markup so badly.
Veli
Telerik team
 answered on 26 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?