radGrid.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()); |
TableCell tableCell = gridDataItem["EditCommandColumn"]; |
| ImageButton imageButton = tableCell.Controls[0] as ImageButton; |
| imageButton.Visible = false; |
| <telerik:RadGrid ID="grvLandlords" runat="server" AutoGenerateColumns="False" DataSourceID="SqlLandlord" GridLines="None" |
| Skin="Office2007" OnSelectedIndexChanged="grvLandlords_SelectedIndexChanged" OnItemDataBound="grvLandlords_ItemDataBound" > |
| <MasterTableView ShowFooter="true" DataKeyNames="LandlordID" DataSourceID="SqlLandlord"> |
| <Columns> |
| <telerik:GridButtonColumn CommandName="Select" Text="Select" UniqueName="Select"> |
| </telerik:GridButtonColumn> |
| <telerik:GridBoundColumn DataField="LandlordID" DataType="System.Int32" HeaderText="LandlordID" |
| ReadOnly="True" SortExpression="LandlordID" UniqueName="LandlordID" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" |
| UniqueName="Title"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" |
| UniqueName="FirstName"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |

| RadTabStrip1.FormatMultiLineTabs(False); |
| using Telerik.Web.UI; |
| using System.Runtime.ComplierServices; |
| public class RadTabStripExtensions |
| { |
| [Extension()] |
| public void FormatMultiLineTabs(ref RadTabStrip tab, bool ForceMultiLine) |
| { |
| int intTabCount = 0; |
| foreach (RadTab objTab in tab.Tabs) { |
| if (objTab.Visible) |
| { |
| intTabCount += 1; |
| } |
| } |
| if (ForceMultiLine || intTabCount >= 8) // this can be changed to the line break number |
| { |
| int intTabBreakIndex = intTabCount / 2 - 1; |
| if (intTabCount % 2 == 1) |
| { |
| intTabBreakIndex += 1; |
| } |
| tab.AddTabBreakToVisibleTabIndex(intTabBreakIndex); |
| } |
| } |
| [Extension()] |
| public void AddTabBreakToVisibleTabIndex(ref RadTabStrip tab, int VisibleIndexBreak) |
| { |
| int intIndex = 0; |
| foreach (RadTab objTab in tab.Tabs) { |
| if (objTab.Visible) |
| { |
| if (intIndex == VisibleIndexBreak) |
| { |
| objTab.IsBreak = true; |
| } |
| intIndex += 1; |
| } |
| } |
| } |
| } |
| Imports Telerik.Web.UI |
| Imports System.Runtime.CompilerServices |
| Public Module RadTabStripExtensions |
| <Extension()> _ |
| Public Sub FormatMultiLineTabs(ByRef tab As RadTabStrip, ByVal ForceMultiLine As Boolean) |
| Dim intTabCount As Integer = 0 |
| For Each objTab As RadTab In tab.Tabs |
| If objTab.Visible Then |
| intTabCount += 1 |
| End If |
| Next |
| If ForceMultiLine OrElse intTabCount >= 8 Then 'this can be changed to the line break number |
| Dim intTabBreakIndex As Integer = intTabCount \ 2 - 1 |
| If intTabCount Mod 2 = 1 Then |
| intTabBreakIndex += 1 |
| End If |
| tab.AddTabBreakToVisibleTabIndex(intTabBreakIndex) |
| End If |
| End Sub |
| <Extension()> _ |
| Public Sub AddTabBreakToVisibleTabIndex(ByRef tab As RadTabStrip, ByVal VisibleIndexBreak As Integer) |
| Dim intIndex As Integer = 0 |
| For Each objTab As RadTab In tab.Tabs |
| If objTab.Visible Then |
| If intIndex = VisibleIndexBreak Then |
| objTab.IsBreak = True |
| End If |
| intIndex += 1 |
| End If |
| Next |
| End Sub |
| End Module |
I am having trouble with the EmptyMessage parameter being viewable in firefox. This is what is happening:
I have a page that has a radtextbox as shown
| <rad:RadTextBox ID="txtEmail" runat="server" MaxLength="200" EmptyMessage="E-mail address" EnableEmbeddedSkins="false" Skin="TEST" Width="200px" /> |
When I view the page in IE everything is good in that the empty message appears, and when I set focus to the textbox the message goes away and when the textbox loses focus the message comes back. The problem I am seeing is when viewing this same page in firefox. The page loads just fine with the empty message in the text box and it goes away when I set focus to the text box. But when focus is lost in the text box without typing anything in, the empty message does not reappear.
I was looking at a demo on the telerik site:
http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx
and experienced the same thing. I am running firefox 3.0 if that helps.
Do I need to add anything else to the radtextbox to get this to work in firefox too?
Thanks