Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
221 views

Hello,

We are currently in the process of evaluating RadEditor in order to use it in a  MOSS 2007 Publishing project.
Functionality fits our project needs but there are some issues that need clarification.

The version I have deployed on our MOSS Server is RadEditorMOSS 5.6.2.0 and I am using a RadHtmlField embedded in a Page Layout.

I would like to verify the following things regarding Tables:

1. In Table Wizard: Table Properties: CSS Class Layout , there is a drop down with pre-defined styles. Is it possible to create your own custom styles that apply to tables, and how is this done?

2. In the following RadEditor Demo (http://demos.telerik.com/aspnet-ajax/editor/examples/tablelayoutcssfile/defaultcs.aspx)
, when you click on an element of a table, on the bottom of the editor, some choices on setting the element's style appear. Does this functionality exist only in ASP.NET version of the editor, or there is a way to enable it in the MOSS version also?

Your feedback would be very helpful.

Regards,

Kostas

Stanimir
Telerik team
 answered on 19 Mar 2010
2 answers
98 views
I thought the image manager navigation problem has been solved in version 5.4.1.  But I recently installed new version 6.2 and the RADEditor image manager can't navigate to the upper level. 
Stanimir
Telerik team
 answered on 19 Mar 2010
1 answer
216 views
how to give background color to RadGrid on any condition?  suppose I want to show a light red color to my Grid where Priority is High?
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2010
3 answers
259 views
Hi,

Is there a way by which I can retrive the value of a column of a row, in the Updating() event of the sql data source control? I am trying to set the parameters of the stored procedures on updating event. And the value of one of the parameters will be from one of the columns of the row being updated.

Thanks
Veli
Telerik team
 answered on 19 Mar 2010
1 answer
204 views
Hi all,
Everytime I create a new page, I have to delete "RadControls for ASP.NET AJAX Q3 2009 NET20", can I just delete once and it's never appear again? Thx
Erjan Gavalji
Telerik team
 answered on 19 Mar 2010
2 answers
113 views
Hi, I am using Telerik RadGrid control on my page and when I click on edit link to generate form edit content, it gives me following error.

Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_UserMain1_PhysicianProfessionalPageControl_grdEducation' can't be added to the application.

<telerik:RadGrid ID="grdworkhistory" AllowMultiRowSelection="True" AllowMultiRowEdit="True" 
                Skin="WebBlue" runat="server" AllowAutomaticInserts="True" EnableViewState = "false" 
                Width="97%" PageSize="10" AllowAutomaticUpdates="True"   
                AllowPaging="True" AutoGenerateColumns="False" OnItemCreated="grdworkhistory_ItemCreated" 
                ShowStatusBar="True"   
                GridLines="Both" ShowFooter="True">  
            <ClientSettings> 
                <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="EmploymentEpisodeId" ClientDataKeyNames="EmploymentEpisodeId" 
                EditMode="EditForms"  AutoGenerateColumns="False" Width="100%">  
                  
                <Columns> 
                    <telerik:GridEditCommandColumn> </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn DataField="JobEmployer.Name" EditFormColumnIndex="0" HeaderText="Name" SortExpression="Name" 
                        UniqueName="WHname" Visible="true">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="JobTitle" EditFormColumnIndex="1" HeaderText="Title" SortExpression="Title" 
                        UniqueName="WHtitle" Visible="true">  
                    </telerik:GridBoundColumn> 
                      <telerik:GridBoundColumn DataField="JobEmployer.EmployerAddress.Address1" EditFormColumnIndex="0" HeaderText="Address" SortExpression="created_date" 
                        UniqueName="WHaddress" Visible="false">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridDropDownColumn DataField="JobEmployer.EmployerAddress.AddressCountry.CountryId" EditFormColumnIndex="1" HeaderText="Country" 
                        SortExpression="WHcountry" UniqueName="Country" Visible="false" ListTextField="name" ListValueField="countryId">  
                    </telerik:GridDropDownColumn> 
                    <telerik:GridBoundColumn DataField="JobEmployer.EmployerAddress.City" EditFormColumnIndex="0" HeaderText="City"   
                        SortExpression="WHcity" UniqueName="city" visible="false">  
                    </telerik:GridBoundColumn> 
                      
                    <telerik:GridDropDownColumn DataField="JobEmployer.EmployerAddress.AddressState.StateId" EditFormColumnIndex="0" HeaderText="State" 
                        SortExpression="WHstate" UniqueName="state" Visible="false" ListTextField="name" ListValueField="stateId">  
                    </telerik:GridDropDownColumn> 
                      
                    <telerik:GridBoundColumn DataField="JobEmployer.EmployerAddress.PostalCode" EditFormColumnIndex="1" HeaderText="Postal"   
                        SortExpression="WHpostal" UniqueName="postal">  
                    </telerik:GridBoundColumn> 
                      
                    <telerik:GridDateTimeColumn EditFormColumnIndex="0" DataField="BeginDate" HeaderText="From" 
                        SortExpression="WHfrom" UniqueName="beginDate" Visible="true" > 
                    </telerik:GridDateTimeColumn> 
                      
                    <telerik:GridDateTimeColumn EditFormColumnIndex="1" DataField="EndDate" HeaderText="To" 
                        SortExpression="WHto" UniqueName="endDate" Visible="true">  
                    </telerik:GridDateTimeColumn> 
                      
                    <telerik:GridBoundColumn ItemStyle-Wrap="true" EditFormColumnIndex="0" DataField="Description" 
                        SortExpression="WHDescription" UniqueName="description" Visible="false">  
                    </telerik:GridBoundColumn>   
                      
                    <telerik:GridBoundColumn ItemStyle-Wrap="true" EditFormColumnIndex="0" DataField="EmploymentEpisodeId" 
                        SortExpression="WHID" UniqueName="EmploymentEpisodeId" Visible="false">  
                     </telerik:GridBoundColumn> 
                      
            </Columns> 
              <EditFormSettings ColumnNumber="2" CaptionDataField="Work History" CaptionFormatString="Edit properties for work history">  
                    <FormTableItemStyle Wrap="true"></FormTableItemStyle> 
                    <FormCaptionStyle > </FormCaptionStyle> 
                    <FormMainTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="3" BackColor="White" 
                        Width="100%" /> 
                    <FormTableStyle CellSpacing="0" CellPadding="2"  Height="110px" 
                        BackColor="White" /> 
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
                    <EditColumn ButtonType="LinkButton"   
                        InsertText="Insert " UpdateText="Update record" UniqueName="EditCommandworkhistory" CancelText="Cancel edit">  
                    </EditColumn> 
                    <FormTableButtonRowStyle HorizontalAlign="Left" ></FormTableButtonRowStyle>  
                </EditFormSettings> 
             </MasterTableView>     
        </telerik:RadGrid> 
Mugdha Aditya
Top achievements
Rank 1
 answered on 19 Mar 2010
1 answer
346 views
Is there a resource that explains the difference between GridDataInsertItem, GridDataItem, GridEditableItem, etc...  I'm working with doing the edit form functionality but getting confused who and what I should use when I do either EditMode=InPlace or EditMode=EditForms. 

For instance if do EditMode=InPlace and have a GridBoundColumn, how do I reference it in an insertCommand?  If its EditMode=EditForms I might do this:
GridEditFormInsertItem edititem = (GridEditFormInsertItem)e.Item;  
 
string EquipShortName = ((TextBox)edititem.FindControl("TextBoxName")).Text;  
 

where 'TextBoxName' is a TextBox control that exists in the FormTemplate on my designer page AND as a GridBoundColumn:
<MasterTableView CommandItemDisplay="Bottom" EditMode="EditForms">  
    <Columns> 
        <telerik:GridBoundColumn UniqueName="TextBoxName" DataField="TextBoxName">  
        </telerik:GridBoundColumn> 
        <telerik:GridEditCommandColumn   
            UniqueName="EditCommandColumn"   
            CancelText="Cancel" 
            UpdateText="Update"   
            InsertText="Insert"   
            EditText="Edit" 
            > 
        </telerik:GridEditCommandColumn>     
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete"></telerik:GridButtonColumn>                           
    </Columns>    
    <EditFormSettings EditFormType="Template">  
        <FormTemplate> 
            <div style="color:#333333;">  
                <table width="100%" border="1"   
                style="  
                    background-color:#D9F0FF;  
                    font-family:Arial;  
                    font-size:9pt;  
                    border-color:Black;  
                    border-left-color:Black;  
                "  
                cellpadding="2" cellspacing="2" 
                > 
                <tr> 
                    <td style="width:50%">  
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">  
                            <tr> 
                                <td>Name</td> 
                                <td align="right</td> 
                            </tr> 
                        </table>                                              
                    </td> 
                    <td style="width:50%">  
                        <asp:TextBox ID="TextBoxName" runat="server" 
                        Text='<%# Bind("TextBoxName") %>'   
                        Width="99%" TextMode="MultiLine" Rows="3" 
                        ></asp:TextBox> 
                    </td> 
                </tr> 
            </table> 
        </FormTemplate> 
    </EditFormSettings>                                                
</MasterTableView> 

But if you do EditMode=InPlace I think I would do the following:
<MasterTableView CommandItemDisplay="Bottom" EditMode="InPlace">  
    <RowIndicatorColumn> 
        <HeaderStyle Width="120px"></HeaderStyle> 
    </RowIndicatorColumn> 
    <ExpandCollapseColumn> 
        <HeaderStyle Width="120px"></HeaderStyle> 
    </ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="TextBoxName" HeaderText="TextBoxName" UniqueName="TextBoxName">  
        </telerik:GridBoundColumn> 
        <telerik:GridEditCommandColumn   
            UniqueName="EditCommandColumn"   
            CancelText="Cancel" 
            UpdateText="Update"   
            InsertText="Insert"   
            EditText="Edit" > 
        </telerik:GridEditCommandColumn> 
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete"></telerik:GridButtonColumn>   
    </Columns> 
  <EditFormSettings > 
  </EditFormSettings> 
  </MasterTableView> 

Basically not sure how to get value of TextBoxName when doing InPlace EditMode
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
1 answer
303 views
Hi - I have an integer value that is being pulled from my db and displayed in my grid like this:

 <telerik:GridBoundColumn DataType="System.Int32" UniqueName="UserAccountStatus" 
                        SortExpression="UserAccountStatus" HeaderText="Status" DataField="UserAccountStatus"></telerik:GridBoundColumn>   

But that value is actually the numeric value of an enum. So - rather than displaying the numeric value of the enum, I need to display the text value of the enum.

How do I do this?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2010
1 answer
82 views
Hey all,

I'm setting up a grid with some GridBoundColumns and as I was building it I eventually got around to setting the CommandItemDisplay property from None to Top.  When I did this I could see the data in the columns but not the column headers (or filtering boxes)??  When I set the property back to none I could see the column headers and filtering boxes but not the Add New Record or Refresh button.

Any ideas?
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
1 answer
203 views
Hi,

What is VirtualItemCount ? What is it related the total count in the datasource bounded to RadGrid?

Thanks

 

Shinu
Top achievements
Rank 2
 answered on 19 Mar 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?