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

Hello, I am migrating a control from GridView to RadGrid. With GridView, I was able to extend the GridViewRow class:

Public Class GridViewSearchRow
Inherits GridViewRow
          
    ReadOnly Property SearchValueEntry As ISearchValueEntry
        Get
            Return FirstChildControl(Of ISearchValueEntry)()
        End Get
    End Property
  
    Public Sub New(…)
        MyBase.New(…)
    End Sub
  
End Class

In its containing grid (an extension of GridView), I was able to instantiate my custom row by overriding GridView’s CreateRow function:

Protected Overrides Function CreateRow(…)As GridViewRow
  
    If rowType = DataControlRowType.DataRow Then
        Return New GridViewSearchRow(…)
    Else
        Return MyBase.CreateRow(…)
    End If
  
End Function


In Telerik, I am able to extend the GridDataItem class:

Public Class RadSearchRow
Inherits GridDataItem
  
    ReadOnly Property SearchValueEntry As ISearchValueEntry 
        Get
            Return FirstChildControl(Of ISearchValueEntry)()
        End Get
    End Property
  
    Public Sub New(…)
        MyBase.New(…)
    End Sub
  
End Class

 

 

Is there a similar way to ensure that all objects in the .Items() collection are added as RadSearchRow? I’ve noticed that the RadGrid’s GridDataItems are created within the CreateChildControl() sub, but since CreateChildControl() isn’t a function (like GridView’s CreateRow) I’m not sure how to mimic it.

Thank you very much.

Maria Ilieva
Telerik team
 answered on 18 Jan 2011
5 answers
500 views
I am looking to change style for treeview which has office 2007, the matter is that I wanna change the expand/collapse button (the small + or - sign) to something triangle shape (as windows 7 skin), so how to do that?

and I want when I click to child root, the parent root should be highlighted in same effect as child...

he is how the changing should be (I have drawn then in photoshop):
Yana
Telerik team
 answered on 18 Jan 2011
1 answer
40 views
Hello all,

I am using IE8.

I have the following lyperlink in the editor:


I want to modify it using the LinkManager so the result will be as follows:


To do so, I selected the link and loaded the LinkManager. Then, I simply changed the URL to [http://www.someotherwebsite.com] and clicked OK (linkmanager1.jpg). Surprisingly, the markup still points to http://www.yahoo.com (linkmanager2.jpg).

This is working as I expect in IE7. Do you have any idea how can I fix this in IE8?  I am using Telerik version 2009.3.1314.35.

Thanks,
Rez

Rumen
Telerik team
 answered on 18 Jan 2011
1 answer
90 views
Hi,

I am planing to use RadEditor control for my project use, So initially I am evaluating online Rad-editor app from here:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

My basic requirement is make working app in all the browsers (IE, Firefox, Opera, Chrome, Safari) and dealing with adding custom controls to Editor, Image Manager, adding large range of tables, much more formatting, etc..

I found some of interesting thing while evaluating Rad-editor under FireFox v3.6.12 browser. Here are the few of issues I found in Firefox browser which are working great in IE8.
  1. I can't able to delete the table using 'delete' key from keyboard, but I can delete by right-click on table->table delete
  2. I am not able to set the absolute position to the Image/table/(any custom control) to change location of it.
  3. When I move mouse over the Image, mouse pointer image is not changing in Firefox as like IE.
  4. When I insert any Form Element in firefox, it is not selectable like in IE.
Please let me know about of your support on these issues once I use the Rad-editor?

Thanks,
Srinu Dhulipalla
Dobromir
Telerik team
 answered on 18 Jan 2011
3 answers
70 views
Can someone please direct me to extensive code example for RadTreeView with RadTabStrip.
I am using the RADControls version: v.2010.3.1215.40

thanks
A Iqbal
Yana
Telerik team
 answered on 18 Jan 2011
2 answers
81 views
I have noticed an issue with the Telerik editor in Google Chrome.  When I add an image, I can't select it to apply a CSS class.  Is this a known bug?  Are there any work-arounds?

Thanks,

Neil
Rumen
Telerik team
 answered on 18 Jan 2011
1 answer
81 views

Hi in my application i am using drag and drop in listview...
i need to edit the rlvI class because my fieldset size changed after adding the drag and drop...
i need to know where i can edit the rlvi class...
please update me with a solution
Tsvetina
Telerik team
 answered on 18 Jan 2011
2 answers
66 views
Hi,

   We are facing unique issue. We have a grid which has delete image in delete column. This image is red in color. It turns gray sometimes. I cannot figure out the reson behind it.


 

 

 

 

 

 

<

 

telerik:RadGrid ID="grdDailyOvertime" runat="server" AutoGenerateColumns="False"

 

 

 

 

 

 

Enabled="false" AutoGenerateEditColumn="false" EnableTheming="true" OnDeleteCommand="grdDailyOvertime_DeleteCommand"

 

 

 

 

 

 

OnInsertCommand="grdDailyOvertime_InsertCommand" OnNeedDataSource="grdDailyOvertime_NeedDataSource"

 

 

 

 

 

 

OnUpdateCommand="grdDailyOvertime_UpdateCommand" OnItemCommand="grdDailyOvertime_ItemCommand"

 

 

 

 

 

 

HeaderStyle-HorizontalAlign="Center">

 

 

 

 

 

 

<MasterTableView Width="100%" CommandItemSettings-ShowRefreshButton="false" CommandItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="<%$ Resources:PDICulture, GridAddNewRow %>"

 

 

 

 

 

 

EditMode="InPlace">

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridTemplateColumn Visible="false" UniqueName="Key" DataField="Key">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyOvertimeID" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Key") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyOvertimeID" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"Key") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridEditCommandColumn HeaderText="<%$ Resources:PDICulture, grdEditColumnHeaderText %>"

 

 

 

 

 

 

HeaderStyle-Width="20%" ButtonType="ImageButton" UniqueName="EditColumn">

 

 

 

 

 

 

<ItemStyle CssClass="MyImageButton" />

 

 

 

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:PDICulture, grdDailyOvertimeHours %>"

 

 

 

 

 

 

UniqueName="DailyHoursExceeding" DataField="DailyHoursExceeding">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyHours" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadTextBox ID="txtDailyHours" MaxLength="5" Width="53%" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>'>

 

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyHour" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:PDICulture, grdDailyOvertimeRate %>"

 

 

 

 

 

 

UniqueName="DailyRate" DataField="DailyRate">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyRate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadTextBox ID="txtDailyRate" MaxLength="3" Width="65%" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>'>

 

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyRate" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridButtonColumn HeaderText="<%$ Resources:PDICulture, grdDeleteColumnHeaderText %>"

 

 

 

 

 

 

ConfirmText="<%$ Resources:PDICulture, grdDailyDeleteConfirmText %>" ConfirmDialogType="RadWindow"

 

 

 

 

 

 

ConfirmTitle="<%$ Resources:PDICulture, grdDeleteColumnHeaderText %>" ButtonType="ImageButton"

 

 

 

 

 

 

CommandName="Delete" UniqueName="DeleteColumn">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridButtonColumn>

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

<NoRecordsTemplate>

 

 

 

 

 

 

<asp:Label runat="server" ID="lblDOTGrdNoRecord" Text="<%$ Resources:PDICulture, GridEmptyMessage %>">

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</NoRecordsTemplate>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

<HeaderStyle Font-Bold="true" CssClass="contentArea" />

 

 

 

 

 

 

<ItemStyle CssClass="contentArea" />

 

 

 

 

 

 

<AlternatingItemStyle CssClass="contentArea" />

 

 

 

 

 

 

</telerik:RadGrid>



Thanks
Rajesh

 

Tsvetina
Telerik team
 answered on 18 Jan 2011
7 answers
936 views
I am migrating an application from another company's control which selects an item in javascript under certain conditions.  I can't seem to select a row.

    var grid = $find("<%=rgItems.ClientID%>").get_masterTableView();
    for(i=0;i<rowCount;i++) // rowCount set from hidden variable
{
   if (something is true)
   {
   grid.selectItem(i); // doesn't work
    }
}
Elliott
Top achievements
Rank 2
 answered on 18 Jan 2011
1 answer
127 views
So I'm trying to accomplish something I'm finding a bit hard.

Grid on a page. I want to return to the grid a streamed set of records. JSON or XML or whatever. I need the grid to incorporate those records as they arrive on the client. Incorporating them will mean inserting them into the grid in the proper position based on some sort of sort criteria. Removing duplicates, expanding nodes, pushing results onto the next page.

Basically the server will take a long time to return all the results, and I want them to appear in the list as the server has them.

Doing this on the server isn't that hard. I already have the data being retrieved through a series of iterators just fine. Just trying to figure out the best way to deliver them client side.

Anybody have any examples of doing something like this?
Iana Tsolova
Telerik team
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?