Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views

Hi,

I am unable to see the numericcolumn filter image for the following scenario. Is there a way to auto-set the column width to the header width.

Consider the following scenario:
I have a grid with the width specified. Varoius columns are added to that grid. Filtering is allowed, resizing is allowed.

When i run this code, the columns does not display the filter image. It gets hidden. Only when i manually resize the column, i am able to see the filter icon.

<asp:Panel ID="PanelForGrid" Width="900px" Height="400Px" runat="server">
    <Grid ID="PortfolioGrid" runat="server" Width="100%" Height="100%" AutoGenerateColumns="false"
        AllowFilteringByColumn="true" AllowSorting="true" AllowPaging="true" PageSize="3">
  <ClientSettings EnablePostbackOnRowClick="true">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" EnableVirtualScrollPaging="true" ScrollHeight="400px" />
            <Resizing AllowColumnResize="true" AllowRowResize="true" ClipCellContentOnResize="false" EnableRealTimeResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="false"/>
  </ClientSettings>
        <MasterTableView DataKeyNames="Id" TableLayout="Fixed">
        <columns>
  
   <GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Guid" Visible="true"></GridBoundColumn>

   <GridBoundColumn DataField="FirstName" HeaderText="FirstName" UniqueName="FirstName" Visible="true"></GridBoundColumn>

   <GridBoundColumn DataField="LastName" HeaderText="LastName" UniqueName="LastName" Visible="true"> </GridBoundColumn>

   <GridDateTimeColumn DataField="DOB" HeaderText="DOB" UniqueName="DOB" Visible="true" DataFormatString="{0:dd/MM/yyyy}" EditDataFormatString="dd MMMM, yyyy hh:mm tt"> </GridDateTimeColumn >

   <GridNumericColumn DataField="DeptId" DataType="System.UInt16" HeaderText="DeptId" UniqueName="DeptId" Visible="true"> </GridNumericColumn>

   <GridNumericColumn DataField="Salary" HeaderText="Salary" UniqueName="Salary" Visible="true" > </GridNumericColumn>

   <GridBoundColumn DataField="Designation" HeaderText="Designation" UniqueName="Designation" Visible="true"> </GridBoundColumn>

  </columns>
        </MasterTableView>
    </Grid>
</asp:Panel>

Seems the filtering textbox has a fixed width set in the control.
Please suggest a way to override that behavior.

Thanks
Tarun

Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
3 answers
111 views
Hello Support Team,

I want to know that i have a query regarding RadMenu control. Can i open the Menu drop down box through programmatic on page for fixed duration. 

Have a nice day.
Kate
Telerik team
 answered on 22 Nov 2011
1 answer
90 views
I'm having an issue using the AjaxLoadPanel with a grid inside a containing element.  If you have a containing element, such as a div, that has a fixed height on it with scrollbars, the loading panel does not stay inside the containing element.  I cannot send code or screenshots of my code due to proprietary/sensiitve data.  Instead, I've reproduced the same issue with your demo pages using IE developer tools (see attached screenshot).  Do you have a suggested solution for this issue?
Andrey
Telerik team
 answered on 22 Nov 2011
4 answers
175 views
Hi there, I have the following problem.
I created a simple page containing a tabstrip with two tabs, two pageviews and some content for each. The first tab contains a radgrid. All the controls have 100% width set.
I'd like to have some padding for the pageviews, but if I add it to the pageview's cssclass, the content of the pageview overflows and a horizontal scrollbar appears.

Is there any way I can fix this?
Thanks
Kate
Telerik team
 answered on 22 Nov 2011
1 answer
265 views
I have a RadListView that I use to insert data into a SQL table.  Below is a snippet of the Insert Item template 
I have a text box with the ID ScheduleTextBox that is bound to an insert parameter Schedule
 I need to be able to populate the text in this text box from another datasource.
How can I do this?????



Thanks for any help!

Dave


<InsertItemTemplate>
     <tr class="rlvIEdit">
         <td colspan="7">
             <table cellspacing="0" class="rlvEditTable">
                 <tr>
                     <td>
                         <asp:Label ID="Officer_NameLabel2" runat="server"
                             AssociatedControlID="rcbOfficer" Text="Officer_Name"></asp:Label>
                     </td>
                     <td>
                          <telerik:RadComboBox ID="rcbOfficer" runat="server"
                                 DataSourceID="dsOfficer" DataKeyField="Rosterid" DataTextField="officer_name"
                                 DataValueField="officer_name" AllowCustomText="True"  Text='<%# Bind("Officer_Name") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="ScheduleLabel2" runat="server"
                             AssociatedControlID="ScheduleTextBox" Text="Schedule"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="ScheduleTextBox" runat="server" CssClass="rlvInput"
                             Text='<%# Bind("Schedule") %>' />
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="UnitLabel2" runat="server" AssociatedControlID="rcbIUnit"
                             Text="Unit"></asp:Label>
                     </td>
                     <td>
                         <telerik:RadComboBox ID="rcbIUnit" runat="server"
                                 DataSourceID="dsUnit" DataKeyField="Unitid" DataTextField="unit"
                                 DataValueField="unit" AllowCustomText="True"  Text='<%# Bind("unit") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="VehicleLabel2" runat="server"
                             AssociatedControlID="rcbIVehicle" Text="Vehicle"></asp:Label>
                     </td>
                     <td>
                         <telerik:RadComboBox ID="rcbIVehicle" runat="server"
                                 DataSourceID="dsVehicle" DataKeyField="vehicleid" DataTextField="vehiclenumber"
                                 DataValueField="vehiclenumber" AllowCustomText="True"  Text='<%# Bind("vehicle") %>'>
                         </telerik:RadComboBox>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="HoursLabel2" runat="server" AssociatedControlID="HoursTextBox"
                             Text="Hours"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="HoursTextBox" runat="server" CssClass="rlvInput"
                          Text='<%# Bind("Hours") %>'/>
                     </td>
                 </tr>
                 <tr>
                     <td colspan="2">
                         <asp:Button ID="PerformInsertButton" runat="server" CommandName="PerformInsert"
                             CssClass="rlvBAdd" Text=" " ToolTip="Insert" />
                         <asp:Button ID="CancelButton" runat="server" CausesValidation="False"
                             CommandName="Cancel" CssClass="rlvBCancel" Text=" " ToolTip="Cancel" />
                     </td>
                 </tr>
             </table>
         </td>
     </tr>
 </InsertItemTemplate>
Tsvetina
Telerik team
 answered on 22 Nov 2011
1 answer
89 views
Hi,

The bullet points are not showing in the Rad Editor

Pls. suggest me how to go about it.

Thanks
Jidesh
Rumen
Telerik team
 answered on 22 Nov 2011
3 answers
121 views
I have a grid that batch update with Objectdatasource as below, I can get value and set to parameter, but nothing updated to may database, please help me

<telerik:RadGrid ID="GridDD" runat="server" Width="97%" ShowStatusBar="True" AllowSorting="True"
    PageSize="20" GridLines="None" AllowPaging="True" AutoGenerateColumns="false"
    DataSourceID="diemdanh_task" Skin="Hay" EnableAJAX="true">
    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" PageSizeLabelText="Kích cỡ" />
    <MasterTableView TableLayout="Fixed" DataKeyNames="ID" EditMode="InPlace" ClientDataKeyNames="ID"
        CommandItemDisplay="Bottom">
        <CommandItemTemplate>
            <div style="height: 30px; text-align: right;">
                <asp:Image ID="imgCancelChanges" runat="server" ImageUrl="~/DesktopModules/YourCompany.DD/Images/cancel.gif"
                    AlternateText="Cancel changes" ToolTip="Cancel changes" Height="24px" Style="cursor: pointer;
                    margin: 2px 5px 0px 0px;" onclick="CancelChanges();" />
                <asp:Image ID="imgProcessChanges" runat="server" ImageUrl="~/DesktopModules/YourCompany.DD/Images/ok.gif"
                    AlternateText="Process changes" ToolTip="Process changes" Height="24px" Style="cursor: pointer;
                    margin: 2px 5px 0px 0px;" onclick="ProcessChanges();" />
            </div>
        </CommandItemTemplate>
        <Columns>
            <telerik:GridBoundColumn UniqueName="ID" DataField="ID" HeaderText="ID" ReadOnly="True"
                HeaderStyle-Width="5%" Visible="false" />
            <telerik:GridBoundColumn UniqueName="ngaythang" DataField="ngaythang" HeaderText="Ngày tháng"
                ReadOnly="True" HeaderStyle-Width="5%" />
            <telerik:GridBoundColumn UniqueName="mahv" DataField="mahv" HeaderText="Mã HV" ReadOnly="True"
                HeaderStyle-Width="5%" />
            <telerik:GridBoundColumn UniqueName="hoten" DataField="hoten" HeaderText="Họ Tên"
                ReadOnly="True" HeaderStyle-Width="5%" />
            <telerik:GridBoundColumn UniqueName="ngaysinh" DataField="ngaysinh" HeaderText="Ngày Sinh"
                ReadOnly="True" HeaderStyle-Width="5%" />
            <telerik:GridTemplateColumn UniqueName="nghiphep" HeaderText="Nghỉ phép" HeaderStyle-Width="15%">
                <ItemTemplate>
                    <asp:Label ID="lblnghiphep" runat="server" Text='<%# Eval("nghiphep") %>' />
                    <asp:TextBox ID="txtnghiphep" runat="server" Text='<%# Bind("nghiphep") %>' Width="95%"
                        MaxLength="1" Style="display: none" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="lydo" HeaderText="Lý do" SortExpression="lydo"
                HeaderStyle-Width="10%">
                <ItemTemplate>
                    <asp:Label ID="lbllydo" runat="server" Text='<%# Eval("lydo") %>' />
                    <asp:TextBox ID="txtlydo" runat="server" Text='<%# Bind("lydo") %>' Width="95%" Style="display: none" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnRowCreated="RowCreated" OnRowClick="RowClick" OnCommand="RadGrid1_Command"
            OnRowDestroying="RowDestroying" />
    </ClientSettings>
</telerik:RadGrid>

And my objectsatasource as :
<asp:ObjectDataSource ID="diemdanh_task" runat="server" DataObjectTypeName="YourCompany.Modules.DD.DDInfo"
    SelectMethod="DD_GetAll" TypeName="YourCompany.Modules.DD.DDController" UpdateMethod="DD_Update"
    OnInit="Page_Load">
    <SelectParameters>
        <asp:Parameter Name="fromdate" DefaultValue="07/11/2011" DbType="String" />
    </SelectParameters>
    <UpdateParameters>
       <asp:Parameter Name="nghiphep" DbType="String" />
      <asp:Parameter Name="lydo" DbType="String" />
       <asp:Parameter Name="ID" DbType="String" />
    </UpdateParameters>
</asp:ObjectDataSource>
Datacontroller :
Public Class DDController
      <DataObjectMethod(DataObjectMethodType.Select)> Public Shared Function DD_GetAll(ByVal fromdate As String) As List(Of DDInfo)
          Return CBO.FillCollection(Of DDInfo)(DataProvider.Instance.GetAllDD(fromdate))
      End Function
      <DataObjectMethod(DataObjectMethodType.Update)> Public Shared Sub DD_Update(ByVal objest As DDInfo)
          DataProvider.Instance.UpdateDD(objest.nghiphep, objest.Lydo, objest.ID)
      End Sub
  End Class
InfoClass :
Namespace YourCompany.Modules.DD
    Public Class DDInfo
        Private _mahv As String
        Private _ngaythang As String
        Private _nghiphep As String
        Private _lydo As String
        Private _ID As String
        Private _ngaysinh As String
        Private _hoten As String
        Public Property ID() As String
            Get
                Return _ID
            End Get
            Set(ByVal value As String)
                _ID = value
            End Set
        End Property
        Public Property ngaythang() As String
            Get
                Return _ngaythang
            End Get
            Set(ByVal value As String)
                _ngaythang = value
            End Set
        End Property
        Public Property mahv() As String
            Get
                Return _mahv
            End Get
            Set(ByVal value As String)
                _mahv = value
            End Set
        End Property
        Public Property hoten() As String
            Get
                Return _hoten
            End Get
            Set(ByVal value As String)
                _hoten = value
            End Set
        End Property
 
        Public Property ngaysinh() As String
            Get
                Return _ngaysinh
            End Get
            Set(ByVal value As String)
                _ngaysinh = value
            End Set
        End Property
     
        Public Property nghiphep() As String
            Get
                Return _nghiphep
            End Get
            Set(ByVal value As String)
                _nghiphep = value
            End Set
        End Property
        Public Property Lydo() As String
            Get
                Return _lydo
            End Get
            Set(ByVal value As String)
                _lydo = value
            End Set
        End Property
 
 
    End Class
And server-side code :
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
    If e.Argument = String.Empty Then
        GridDD.Rebind()
    End If
    Dim editedItemIds As String() = e.Argument.Split(":")
    Dim i As Integer
    For i = 0 To editedItemIds.Length - 2
        Dim ID As String = editedItemIds(i)
        Dim updatedItem As GridDataItem = CType(GridDD.MasterTableView.FindItemByKeyValue("ID", ID), GridDataItem)
        UpdateValues(updatedItem)
        GridDD.DataBind()
    Next
End Sub
Protected Sub UpdateValues(ByVal updatedItem As GridDataItem)
    Dim txtBox As TextBox = CType(updatedItem.FindControl("txtnghiphep"), TextBox)
    diemdanh_task.UpdateParameters("nghiphep").DefaultValue = txtBox.Text
    txtBox = CType(updatedItem.FindControl("txtlydo"), TextBox)
    diemdanh_task.UpdateParameters("lydo").DefaultValue = txtBox.Text
    diemdanh_task.UpdateParameters("ID").DefaultValue = updatedItem.GetDataKeyValue("ID").ToString()
 
    Try
        diemdanh_task.Update()
    Catch ex As Exception
        SetMessage(Server.HtmlEncode("Không thể cập nhật ngày phép. Lỗi: " + ex.StackTrace).Replace("'", "'").Replace(vbCrLf, "<br />"))
    End Try
    SetMessage("Đã cập nhật ngày phép học viên : " & updatedItem.Item("mahv").Text)
End Sub

Genaro
Top achievements
Rank 1
 answered on 22 Nov 2011
1 answer
55 views
Hi,

RadEditor

I am unable to add textbox in editor tool bar collection.
Actually i want to show the tag attribute values to text box which i want to create.

Is any way to add textbox to botton (Editor tool collection).

Although i tried to create via custom module. It wont initialize.

KIndly share any idea to add text box in editor tool (similar to property inspector actions)

Thank you
Rumen
Telerik team
 answered on 22 Nov 2011
13 answers
188 views
I have the following question:

I'm using a RadLoadingPanel in a Radsplitter  and I have several problems with the style, overall with the scroll bar.

I found a forum with the next information:
http://www.telerik.com/community/forums/preview-thread/aspnet/splitter/ajax-loading-panel-and-the-splitter.aspx

Any idea?
Thanks.
Daniel
Top achievements
Rank 2
 answered on 22 Nov 2011
3 answers
108 views
Hi guys, I was hoping someone could help me with a problem.

I have the radgrid within a number of pages and they were all working correctly. Today I put the latest dll in place and its thrown white spacing throughout the grid (please see attached screenshot).

I have tried playing with the CSS but haven't been able to remove it.

I would greatly appreciate it if someone could help with returning the views to normal.

Many thanks.

Jibber4568
Jibber4568
Top achievements
Rank 1
 answered on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?