Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
185 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
270 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
94 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
124 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
60 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
193 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
116 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
1 answer
76 views
How to animate rad chart control in asp.net?
pls help..
Giuseppe
Telerik team
 answered on 22 Nov 2011
1 answer
77 views
Hello,

I am using radeditor on my company CMS. So far i have a template which contains 5 to7 editor on a single page this editor work excellent but one of our client upload a new template which contain 18 editor on single page and my client claim that page is not loading.
when i debug this problem so i got that. the problem is my client has slow internet connection so that 18 editor cannot load properly or taking a long time to load or sometime got an error connection timeout or connection reset etc.
please suggest me how to resolve this type of problem where internet connection is slow. Is it possible that, all 18 editor load like single editor means send single request on server so that connection timeout error or these type of error never occur and loading fast.
Rumen
Telerik team
 answered on 22 Nov 2011
3 answers
70 views
Hi All,

I have a doubt regards get the tag name by click in editor content.
In editor , i am able to get the tag name by the below method

editor.attachEventHandler(

 

"click", function (e) {

 

 

 

alert(e.srcElement.nodeName);

 

 

});

But i need to get tag for below ,
<Store>dfg fdg</Store>
WHen i click inside / over the text "dfg fdg" (i.e.,Inside the editor content).i want to get the tage name "Store".Similar the node inspector.

It working for only HTML tags.
I know RadEditor is not xml Editor. But i need to get the custom tag.

Is any possibility to get the current cursor position to find the text or Kindly explian detail what function done by click the cursor in editor content shows the breadcrumb in editor's footer (i.e., Store > )?

Kindly expect your co-operation regards this ASAP.

 

Rumen
Telerik team
 answered on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?