I am having the following Isuues while using RAD Grid & RAD Combo
1. How to remove the space between grid columns. (Shown in attached Image 'which are marked in red color').
2. Is it possible to reduce the RAD Combo TextBox height (Shown in attached Image).
<telerik:RadGrid ID="RadGrid1" runat="server" CellPadding="0" AutoGenerateColumns="False" |
GridLines="None" ShowHeader="False" AllowMultiRowEdit="True" CellSpacing="0" |
TabIndex="19"> |
<MasterTableView EditMode="InPlace"> |
<Columns> |
<telerik:GridTemplateColumn ItemStyle-Width="155px"> |
<ItemTemplate> |
<telerik:RadComboBox ID="tcbNumberType" runat="server" Width="153px" Height="13px"> |
</telerik:RadComboBox> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="30px"> |
<ItemTemplate> |
<asp:TextBox runat="server" ID="txtAreacode" Width="27px" Height="13px"></asp:TextBox> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="58px"> |
<ItemTemplate> |
<telerik:RadTextBox runat="server" ID="ttxtPhoneNo" Width="56px" Height="13px"> |
</telerik:RadTextBox> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="10px"> |
<ItemTemplate> |
<asp:Label runat="server" ID="lblExt" Text="x" Width="7px"></asp:Label> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="46px"> |
<ItemTemplate> |
<telerik:RadTextBox runat="server" ID="ttxtExtension" Width="44px" Height="13px"> |
</telerik:RadTextBox> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="45px" HeaderStyle-Width="45px"> |
<ItemTemplate> |
<asp:Label runat="server" ID="lblEmail" Text="E-mail :" Width="45px"></asp:Label> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn ItemStyle-Width="235px"> |
<ItemTemplate> |
<telerik:RadTextBox runat="server" ID="ttxtEmailAddress" Width="233px" Height="13px"> |
</telerik:RadTextBox> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Dim dtContact As DataTable = New DataTable("Contact") |
Dim row As DataRow = Nothing |
' add columns |
dtContact.Columns.Add("id", Type.GetType("System.Int32")) |
dtContact.Columns.Add("NumberType", Type.GetType("System.String")) |
dtContact.Columns.Add("AreaCode", Type.GetType("System.String")) |
dtContact.Columns.Add("PhoneNumber", Type.GetType("System.String")) |
dtContact.Columns.Add("Extension", Type.GetType("System.String")) |
dtContact.Columns.Add("EmailAddress", Type.GetType("System.String")) |
' set PrimaryKey |
dtContact.Columns("id").Unique = True |
dtContact.Rows.Add(1, "", "", "", "", "") |
dtContact.Rows.Add(2, "", "", "", "", "") |
RadGrid1.DataSource = dtContact |
RadGrid1.DataBind() |
End Sub |
Protected Sub Page_PreRender1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender |
If Not Page.IsPostBack Then |
For Each item As GridDataItem In RadGrid1.Items |
item.Edit = True |
Next |
RadGrid1.Rebind() |
End If |
End Sub |