i have a radmaskedtextbox defined below. you can only type one number in it. it works fine in ie and safari, but not in firefox. it is defined as:
<telerik:RadMaskedTextBox SelectionOnFocus="SelectAll" TabIndex="7" Columns="12" PromptChar="" DisplayMask="###-###-####" ID="txtContactNumber" Mask="###-###-####" MaxLength="12" runat="server" Skin="Web20" />
thanks for the help.
susan


For Each col As Telerik.Web.UI.GridColumn In grdList.Columns
If col.UniqueName = "Field to Check" Then
col.Display =
False
Exit For
End If
Next
end sub
However the Grid seems to have only one column even in the page prerender hence we dont get to access the column at all. Which event must be used to hide a column?
Issue #2
BTW i also see the checkbox column always grayed even though i have given "REadonly" as "false". What we need is to give a user functionality to click the check boxes and click delete / assign.
1. How to enable the checkboxes in the grid
2. How to get the checked items.
I have two tables.
STAFFMEMBER
StaffNumber : int PK
FirstName : nvarchar(50)
LastName : nvarchar(50)
TeamID : int FK
TEAM
TeamID : int PK
TeamName : nvarchar(50)
Using the entity framework and RadGrid (2008.3.1105) I am attempting to edit the staff members. Retreiving the list of staff members requires me to include the Team object in oder to update and view the team they belong to. I therefore have to use an object query instead of the EntityDatasource (which works) to navigate the object graph.
In my StaffGrid_NeedDataSource method I have the following code:
| protected void Grid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) | |
| { | |
| StaffGrid.DataSource = context.StaffMembers.Include("Team").OrderBy(p=>p.LastName); | |
| } |