Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
285 views
Using the Editor Lite in WCM scenario, users entering an ampersand character it is changed to &
When they save a second time, the ampersand in & it also changed to & resulting in &

Any ideas?

UPDATE: The forum code also changed it in the title.
The title shoud be "ampersand changed to & amp;" without a space between the ampersand and amp;...
Jim Duncan
Top achievements
Rank 1
 answered on 11 May 2010
2 answers
233 views
I have a Radgrid that is populated from a Stored Procedure that dynamically creates columns. Therefore, I have created the RadGrid as follows:
  <telerik:RadGrid runat="server" ID="rgMetricsTrending" AutoGenerateColumns="true"
            </telerik:RadGrid> 
Now, the datasource is based on the selected value of a number of controls, but what I need is to change the dataformatString on every column based on the selectedValue of the radComboBox. I attempted to put this in the ColumnCreated sub as follows:
  Private Sub rgMetricsTrending_ColumnCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles rgMetricsTrending.ColumnCreated 
        Select Case e.Column.UniqueName 
            Case "ExpandColumn" 
            Case "TimeFrame" 
            Case Else 
                Dim col As GridNumericColumn = CType(e.Column, GridNumericColumn) 
                Select Case rcbMetrics.SelectedValue 
                    Case Enums.TrendingMetrics.Abandons, Enums.TrendingMetrics.ACD_Calls, Enums.TrendingMetrics.Calls_Offered 
                        'SET FORMAT TO A NUMBER 
 
                        col.DataFormatString = "{0:g}" 
                    Case Enums.TrendingMetrics.AHT, Enums.TrendingMetrics.AHT_Adj, Enums.TrendingMetrics.ASA 
                        'CAST AND FORMAT AS DATE/TIME 
 
                    Case Enums.TrendingMetrics.Contact_Rate, Enums.TrendingMetrics.Pct_Abandoned, Enums.TrendingMetrics.Pct_Transfer, Enums.TrendingMetrics.Service_Level 
                        'SET FORMAT TO PERCENT W/ 2 DECIMAL PLACES 
                        col.DataFormatString = "{0:p2}" 
 
                End Select 
        End Select 
    End Sub 
The issue that I'm having is that apparently ColumnCreated isn't hit on postback, and I need to know a better place to put the above code snippet. I've tried putting it in the ItemDataBound sub, but I do so using a for each column in rgMetricsTrending.Columns, and the count is always 0, so it never changes. The format changes to what I want, based on the selection, but unfortunately, it doesn't change when selectedValue of the Rad Combo Box changes and rebinds...any help would be greatly appreciated.
Veli
Telerik team
 answered on 11 May 2010
4 answers
94 views
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"  
            DataSourceID="AccessDataSource1" DataKeyNames="ID" 
             AllowSorting="True" Skin="" GroupingEnabled="False">             
        <MasterTableView DataSourceID="AccessDataSource1" CssClass="data2" > 
            <NoRecordsTemplate> 
               There are no items available. 
            </NoRecordsTemplate> 
            <ItemTemplate> 
                   <tr> 
                        <td> 
                            <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="CompanyLabel" runat="server" Text='<%# Eval("Company") %>' /> 
                        </td> 
                   </tr> 
                </ItemTemplate> 
             
                <PagerStyle /> 
 
        </MasterTableView> 
        </telerik:RadGrid> 
keymmachine
Top achievements
Rank 1
 answered on 11 May 2010
2 answers
125 views
The title says it all.  I have a hierarchial grid and for tabbing reasons, I only want textboxes to get focus.  I've set the TabIndex to -1 for all my my gridbuttoncolumns and gridclientselectcolumns in the prerender() event.  Expand/Collapse column is the only column left that I need to deal with like this.

Thanks.
Rob
Top achievements
Rank 1
 answered on 11 May 2010
6 answers
184 views
Very simple scenario here,

Got 2 Combobox's when either of them change value, i want a label to display the value.

Without a postback, so js / ajax


Schlurk
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
57 views
Hi & sorry if this is obvious but...

what 's the best approach to creating "standard" customised controls?
In particular I'd like to create a standard tooltip that I'll use throughout my site and it will always use particular settings the same way e.g.:

Animation="Slide"       
Width="240px"
HideDelay="300"  
ShowDelay="300"
 AnimationDuration="300"
Position="MiddleRight"   etc....

Can I overide a standard class or somethng? if so is there something anyone can point me to that explains how this works?
Many thanks
Dimo
Telerik team
 answered on 11 May 2010
3 answers
169 views
Good day!

I'm using my own business objects to populate a scheduler using Linq-to-SQL within the scheduler's VisibleRangeStart and VisibleRangeEnd. Now I want to be able to support recurrence, but I'm not sure where to start. What properties should I add to my custom Appointment class/object to support recurrence? How do I retrieve recurrences using Linq-to-SQL? How do I update or delete an occurence or the entire series? Your help will really be appreciated.

Thanks!!!
Peter
Telerik team
 answered on 11 May 2010
3 answers
128 views
If I am setting table cell to colspan=2 via the table wizard, then I am not able to add a class to the tr afterwards - anyone experienced this, and knows a fix? :)

Kristian Thrane - frontend @ yousee.dk


Dobromir
Telerik team
 answered on 11 May 2010
4 answers
164 views
Hello,

I am using the Grid / User Control Edit Form and when I click on the "Add new record" or try and edit an existing record, I am receiving a JavaScript error stating the following:

Message: Object doesn't support this property or method
Line: 178
File: ScriptResource.axd

In FireFox, when I debug the file, its errors out on this line of the ScriptResource.axd file:
c.get_request()._get_eventHandlerList()._list.completed.reverse(); 

This is the code for my Grid:

                                
                                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                                    <AjaxSettings> 
                                        <telerik:AjaxSetting AjaxControlID="RadGridAddress"
                                            <UpdatedControls> 
                                                <telerik:AjaxUpdatedControl ControlID="RadGridAddress" /> 
                                            </UpdatedControls> 
                                        </telerik:AjaxSetting> 
                                    </AjaxSettings> 
                                </telerik:RadAjaxManager> 
 <telerik:RadGrid ID="RadGridAddress"  
                                    runat="server"  
                                    GridLines="None"  
                                    AllowPaging="false" 
                                    AllowSorting="false"  
                                    AutoGenerateColumns="False"  
                                    ShowStatusBar="true"  
                                    Visible="true"  
                                    OnNeedDataSource="RadGridAddress_NeedDataSource" 
                                    MasterTableView-CommandItemSettings-RefreshText=""  
                                    MasterTableView-CommandItemSettings-AddNewRecordText="Add new address"
                                    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Id"
                                        <Columns> 
                                            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"
                                            </telerik:GridEditCommandColumn> 
                                            <telerik:GridBoundColumn UniqueName="Address" HeaderText="Address" DataField="Address1"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="Address2" HeaderText="Address2" DataField="Address2"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="City" HeaderText="City" DataField="City"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="State" HeaderText="State" DataField="State"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="Zip" HeaderText="Zip" DataField="Zip"
                                            </telerik:GridBoundColumn> 
                                             <telerik:GridBoundColumn UniqueName="IsPrimary" HeaderText="Primary" DataField="IsPrimary"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete" /> 
                                        </Columns> 
                                        <EditFormSettings UserControlName="controls/Address.ascx" EditFormType="WebUserControl"
                                            <EditColumn UniqueName="EditCommandColumn1"
                                            </EditColumn> 
                                        </EditFormSettings> 
                                    </MasterTableView> 
                                </telerik:RadGrid> 

Trent
Top achievements
Rank 2
 answered on 11 May 2010
4 answers
96 views
Hi,

I've some problem with a tabstrip at a raddock. When i remove the raddock from the radzone, the visibility of the scroller will be messed up. If the scroller is not visible, I have to reset the raddock to the radzone and then drag it out of the zone again to see / hide the scroller.

I have no idea what I do wrong:)?

Thank you,
Robert
Yana
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?