Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
237 views
I'd like to replace the "edit-delete-etc" text of GridHyperlinkColums with the GridCommandColumn sprites, per the current skin, and display accordingly to skin setting changes.

What's the simplest and most logical way to do it?

Or, would it be better to use a GridTemplateColumn?

Or.. maybe force a GridCommandColumn to act like a link??

Thanks for help.. opinions.

David
Dimo
Telerik team
 answered on 13 Dec 2008
3 answers
112 views
Hello,

I see the RadControls have their own in-built validation into the controls, but when do those validations fire?  Do they prevent the page from being processed (set Page.IsValid to false) if a control is invalid?  Does the validation need manually triggered?  I see in some cases, the answer is no...

Thanks.
Dimo
Telerik team
 answered on 13 Dec 2008
7 answers
1.2K+ views
I have a radgrid with auto generated columns. I programmatically add a hidden field to one of the columns in the grid. When a certain event fires, I call a method to loop through each of the rows in the grid, then each of the columns to find the hidden field. I've tried a couple of different approaches but I cannot seem to retrieve the hidden field.

void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.ItemType == GridItemType.Item ||
            e.Item.ItemType == GridItemType.AlternatingItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            HiddenField hiddenField = new HiddenField();
            hiddenField.Value = "HiddenFieldValue";
            hiddenField.ID = "HiddenFieldId";
            item[ColumnName].Controls.Add(hiddenField);
        }
    }

private void GetHiddenFieldValue()
{
        foreach (GridDataItem item in this.RadGrid.MasterTableView.Items)
        {
            foreach (GridColumn column in this.RadGrid.MasterTableView.AutoGeneratedColumns)
            {
                    HiddenField hiddenField1 = (HiddenField)item[column.UniqueName].FindControl("HiddenFieldId");
                    HiddenField hiddenField2 = (HiddenField)item[column].FindControl("HiddenFieldId");       

                    // more code here
            }           
        }
 }


Thanks for your help!
Dimo
Telerik team
 answered on 13 Dec 2008
6 answers
135 views
Hi,

I haven't downladed the new ASP.NET AJAX controls yet as some of our stuff is still in 1.1. Do the new controls support .NET 1.1 or only 2.0 and 3.5?

Many Thanks
Daniel
Telerik team
 answered on 12 Dec 2008
1 answer
138 views
I'm using the code below to paste a link in the Editor from a custom dialog.

 

var elem = editor.getSelectedElement();
.
.

 

var

 

insertLinkCallBack = function(sender, args) {

 

    editor.pasteHtml(

"<a href=\"" + args.href + "\">" + args.html+ "</a>");
}

When I select a piece of text wrapped in <div> the pasted html is wrapped the div twice (?)

Before paste: 

<div id="myid">my content<br />
<br /></div>

After paste:

<div id="myid"> <a href="http://mylink">
<div id="myid">my content<br />
<br />
</div></a></div>

Tervel
Telerik team
 answered on 12 Dec 2008
4 answers
276 views
We have used older Rad Controls for years and have a bunch of client-side code that works. We have also gone through RadAJAX client API for hours.........

Can anyone tell us Why doesn't the following code work?????
alert(RadNumericTextBox) simple returns null instead of the object...and we can never get the value.....

A simple example would be greatly appreciated......

_____________________________________________________________________________
<body onload="init();">
    <form id="form1" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>   
    <div>
    <script>
        function init()
        {
        var RadNumericTextBox = $find('<%= RadNumericTextBox1.ClientID%>');
        alert(RadNumericTextBox);
        alert(RadNumericTextBox.get_value());
        }
    </script>

        <telerik:RadNumericTextBox ID="RadNumericTextBox1"  runat="server" Value="5">
        </telerik:RadNumericTextBox>

        </div>
    </form>
</body>
Dimo
Telerik team
 answered on 12 Dec 2008
1 answer
59 views
I'm currently using RadControls ASPNET AJAX Combo Box (with the single Telerik assembly) on a page with one of the older RadCombo versions on the same page. I cannot give you the exact versions at this time.

The problem I am having involves using the same Skin that the older RadControl uses. The "Classic" skin is not available in the newer Combobox, and I need to find a way to at least change the combobox so that it looks the same.

I understand the structure of the new controls have changed, but so far I've been unable to see where the skins/css/images reside for the default skins that are provided, let alone figuring out how to alter those in order to change their appearance.

So far I haven't found much complete information on how to do this while browsing your documentation online. If someone can point me in the right direction on this site, or let me know what I'm missing, that would be very helpful.

Thanks in advance,

Adam


Atanas Korchev
Telerik team
 answered on 12 Dec 2008
5 answers
233 views
I'm not understanding whey this is not returning the text box control client side. The asp textbox is always Null. I just want to set the textbox to have focus when the page loads.

 

<telerik:RadToolBar ID="ProductFindViewRadToolBar" OnButtonClick="ProductFindRadToolBar_ButtonClick" OnClientLoad="FocusFindTextBox" Runat="server" CausesValidation="false" >

 

<Items 

 

<telerik:RadToolBarButton id="ProductFindViewRadToolBarTextBoxButton" CausesValidation="false" Value="TextBox">

 

<ItemTemplate>

 

<div style="padding:0 0 0 5px">

 

<asp:TextBox ID="ProductFindTextBox" Width="250px" onkeydown="OnEnterKeyDown()" runat="server" />

 

<asp:Label ID="WarningLabel" CssClass="GenericAlertMessage" runat="server" Text="" Width="0" /></div>

 

</ItemTemplate>

 

</telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Find Now" ToolTip="Find Now" id="ProductFindViewRadToolBarFindButton"></telerik:RadToolBarButton>

 

</Items>

 

</telerik:RadToolBar>

 

function FocusFindTextBox() {

 

var toolBar = $find("<%= ProductFindViewRadToolBar.ClientID %>");  //Good Object

 

var button = toolBar.findItemByValue("TextBox") //Good Object

 

var textBox = button.findControl("ProductFindTextBox"); //NULL EVERY TIME

alert(textBox);

}

 

 

Atanas Korchev
Telerik team
 answered on 12 Dec 2008
1 answer
43 views
I am trying to do an update to a child table but it does not work.
Here's the code.
What is the most amazing is that I don't get any errors.
When I press Update the column is remaining the same and it does not update itself.
I have used all the commands to a single table and everything works fine.
So it seems that there is a bug with child tables or I am missing something in this scenario where I must update a child table.
If you have problems reading the greek words just tell me so that I replace them with english words.
Thank you.

http://www.shorttext.com/w75s2jj
Georgi Krustev
Telerik team
 answered on 12 Dec 2008
2 answers
103 views
Hello all,
 I know about cleaning the word documents on paste and have that working fine, but there are still styles that are in the coding area.  Is there a way to strip all styles from the code so that it leaves just <p> and header tags?

Thanks in advance.
chad
Top achievements
Rank 1
 answered on 12 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?