Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
In my older version of the editor, I had a dropdown with internal websitelinks on the LinkManager. It inherited from LinkManagerControl. Has this been replaced in the new version ? If yes, what must I do to get this working again. I've been unable to find a relevant code sample.

Regards, Hans
Rumen
Telerik team
 answered on 10 Dec 2009
2 answers
101 views
Hi!
In our advanced form, we have a couple of custom DateTimePickers.
When the date is affected, it'll select the right month/day/year/hour/minute from its DropDown controls...

This is where it gets weird...
When binding the Start and End date, if the DateTimePickers are affected with the date passed in the value, no advanced form will show up (ie: you can click on the appointement like mad, nothing will happen)
If I comment the set property of the Start and End date (thus not affecting the DateTimePickers), the advanced form will show up (but will empty drop downs for the DateTimePickers)...

Nothing crashes, no error is shown or logged... just prevents you from doing anything.

Am I to understand you can't affect controls in the advanced form? O.o
Dimitar Milushev
Telerik team
 answered on 10 Dec 2009
1 answer
105 views
Hi,

I've been customizing image manager in Rad Editor. I wonder if there is any way to set focus on subfolder's file when we load image manger dialog (I mean the cursor points directly to one predefined image on the first time image manager dialog is loaded) ?

For a more specific usecase: First, I insert an image in the editing area. Then, how could I set focus on that image when I open image manager dialog so that I can preview the image right away? That can be very helpful to me since my folder contains thousand of images and subfolders as well.

Some one give me a hand, please. Thanks in advance.

Hoang
Rumen
Telerik team
 answered on 10 Dec 2009
3 answers
78 views
Even when I go to the telerik demo page for the editor, trying to open the image manager gives me a window with the loading icon on it that never opens to the image manager.

This is happening in our project too, and seemed to be fine on previous version of FF on the mac, and works fine on a PC.
Rumen
Telerik team
 answered on 10 Dec 2009
1 answer
73 views
Hello,
I have created dynamically grid (with filters) and in one columns there is a link that redirect users to other page...
After the redirect when I press Backspace and I back to my grid and I loses filters and default data is shown.

Is there any solution for the problem?

Best regards,
Marcin
Tsvetoslav
Telerik team
 answered on 10 Dec 2009
2 answers
342 views
In this example, I have a RadGrid that has a:
 
1) GridButtonColumn - Image Button
2) GridTemplateColumn - RadTextbox

There is only 1 row in the grid.  When the user types something in the textbox then tabs out, I want client side script to hide the image button for that row only.  If there was more than one row, each row would be handled on a row by row interactive basis.  So in the RadGrid1_PreRender() event, I hook the "onblur" event to a js function where I pass in the index of that row.

In JS, I've got the row and can check the value of the textbox, but I'm struggling getting a reference to the image button for hiding, so this is where I need the help.  Once again, I want to accomplish the hiding of the image button in client side script. 

Here is the code:

aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="HideGridButtonColumnInJS.aspx.vb" Inherits="HideGridButtonColumnInJS" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <div> 
            <telerik:RadGrid ID="RadGrid1" runat="server">  
                <MasterTableView> 
                    <Columns> 
                        <telerik:GridButtonColumn UniqueName="colImg" ButtonType="ImageButton" ImageUrl="FlagYellow.gif" HeaderText="Image"></telerik:GridButtonColumn> 
                        <telerik:GridTemplateColumn UniqueName="colTxt" HeaderText="Textbox">  
                            <ItemTemplate> 
                                <telerik:RadTextBox ID="txt" runat="server">  
                                </telerik:RadTextBox> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="Field1" HeaderText="Field 1"></telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid>         
        </div> 
        <telerik:RadCodeBlock runat="server" ID="rcb">  
             <script type="text/javascript">  
                 function hideImage(index) {  
                    var grid = $find("<%= Me.RadGrid1.ClientID %>");  
                    var item = grid.get_masterTableView().get_dataItems()[index];  
                    var txt = item.findControl("txt");  
                    if (txt.get_value() != '') {  
                        alert('Hide image button here.');  
                    }  
                }  
            </script> 
        </telerik:RadCodeBlock> 
    </form> 
</body> 
</html> 
 

VB

Imports Telerik.Web.UI  
Imports System.Data  
 
Partial Class HideGridButtonColumnInJS  
    Inherits System.Web.UI.Page  
 
    Protected Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource  
        Dim dt As New DataTable  
        Dim col As New DataColumn  
        col.ColumnName = "Field1" 
        dt.Columns.Add(col)  
        Dim r As DataRow = dt.NewRow  
        r(0) = "Data" 
        dt.Rows.Add(r)  
        Me.RadGrid1.DataSource = dt  
    End Sub 
 
    Protected Sub RadGrid1_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles RadGrid1.PreRender  
        For Each item As GridDataItem In Me.RadGrid1.MasterTableView.Items  
            CType(item("colTxt").Controls(1), RadTextBox).Attributes.Add("onblur""hideImage('" & item.ItemIndex.ToString & "');")  
        Next 
    End Sub 
 
End Class 
 
Rob
Top achievements
Rank 1
 answered on 10 Dec 2009
1 answer
121 views

The default behavior of combox with on demand feature is when user selects an item for list, and it saves into database. Then when the page reloads or redisplays, it displays as 1 of 1 record. Without remove the item, the other items won’t display. We would like the combox to behavior more like regular list box which selects the item and also list the other records. Without remove the selection, user should able to use on demand feature to fetch more items. Can this be done?

Veselin Vasilev
Telerik team
 answered on 10 Dec 2009
2 answers
794 views
I have a gridtemplate column, like so:

<telerik:GridTemplateColumn UniqueName="colClockInToShow" HeaderStyle-Width="45px"
    <HeaderTemplate> 
        <asp:Label ID="lblClockInHeader">Clock In</asp:Label> 
    </HeaderTemplate> 
    <ItemTemplate> 
        <asp:Label ID="lblClockInData" Text="temp" /> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 
 

During the course of my radGridTimeCard_ItemDataBound sub, I have logic that will select the proper value to be displayed in the label (which is now displaying "temp").  But I just can't seem to figure out how to access that label's text property programatically. 

Help??
Denise Duggan
Top achievements
Rank 1
 answered on 10 Dec 2009
2 answers
193 views
Hi there,

I've got a gridtemplatecolumn which gives the following error when I try to use the filter.
ERROR: "is neither a DataColumn nor a DataRelation for table DefaultView. "

The column I am trying to filter is:
                    <telerik:GridTemplateColumn HeaderText="Description" EditFormColumnIndex="1" SortExpression="Description" 
                        UniqueName="Description"
                        <ItemTemplate> 
                            <%#Eval("Description") %> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 

Thanks,
Darren
Top achievements
Rank 2
 answered on 10 Dec 2009
2 answers
137 views
there's no option for developing a skin for the datepicker within the visual style builder. Instead, I tried using the calendar skin maker. I'm unsure how to use the calendar skin then for the calendar portion of the radDatePicker. anyone have an example of how to properly use it in my situation? thanks.
Paul J
Top achievements
Rank 1
 answered on 10 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?