Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views
When I load an RTF document that contains hyperlinks that work in MS Word, they aren't working (not treated as hyperlinks) in the editor in preview mode.
Rumen
Telerik team
 answered on 20 Nov 2012
11 answers
367 views
I'm new to RadControls to please bear with me if this is a simple question. 

I'm looking for a mechanism in which the server (ASP.Net app) can send notifications to the client controls to refresh themselves.  For instance a browser might be display a datagrid.  Rather than polling the server, the datagrid remains static until some event on the server triggers a notification to be sent to the client control to refresh itself. 

Do the telerik controls provide a solution for this situation?  I'm no ajax expert, but I'm wondering if an ajaxified control can listen and respond to server notifications, sort of like a long running callback.

Thanks!
Mark
Patrice Boissonneault
Top achievements
Rank 1
 answered on 20 Nov 2012
1 answer
114 views
 Please tell me how to attach a handler to the ColorChange event of the ForeColor tool in Radeditor.
 The following script I have is not picking up the ForeColor tool using  $find(editor.get_id() + "_ForeColor");

Also please let me know the event name corresponding to the color change. Is it add_colorChange?


 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

 </telerik:RadAjaxManager> 
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad" ToolsFile="~/Tools/ToolsFile.xml" Width="100%" Height="645"

 OnClientCommandExecuting="changeImageManager"  

ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, ConvertFontToSpan, IndentHTMLContent, EncodeScripts, OptimizeSpans, ConvertCharactersToEntities">

 <Content>  

</Content>  

 

</telerik:RadEditor

 

 

<script type="text/javascript">  

 

function OnClientLoad(editor) {

var

forePicker = $find(editor.get_id() + "_ForeColor");

forePicker.add_colorChange(

function(sender, args) { 

var color = sender.get_selectedColor(); 

sender.get_element().style.borderColor = color ? color : "transparent";

 editor.fire("ForeColor", { value: color });});
}

 

 

</script>

 

 

 

Rumen
Telerik team
 answered on 20 Nov 2012
2 answers
72 views
Hi,

I have a rad window open on click of some button in a page, inside rad window which i have check box and a rad datepicker.

on click of check box i am enabling and disabling the rad date picker, but the height of the pop up automatically increases and a scroll bar comes up, i don't want that to happen.

This issue exists only in IE (I am using IE 9 not sure in other versions of IE)

Please let me know if there is any solution.

<telerik:RadButton ID="btnExShip" Text="External Shipment" runat="server" Enabled="false" AutoPostBack="false" OnClientClicked="ExtrShipment"  ></telerik:RadButton>
 
<telerik:RadWindow runat="server" ID="RadWindow1" Modal="true" Behaviors="Close" Width="900" Height="540">
        <ContentTemplate>
            <asp:CheckBox ID="CheckBox1" runat="server" Text="Returnable" onclick="Returnable(this);" />
            <telerik:RadDatePicker ID="RadDatePicker2" runat="server"></telerik:RadDatePicker>
         </ContentTemplate>
    </telerik:RadWindow>
 
function ExtrShipment()
            {
                try
                {
                    popUp = $find('<%=RadWindow1.ClientID %>');
                    popUp.SetTitle("popup");
                    popUp.show();
    $find("<%=RadDatePicker2.ClientID %>").set_enabled(false);
                }
                catch (e)
                {
                    alert(e);
                }
            }
 
 function Returnable(objChk)
            {
                if (objChk.checked)
                {
                    $find("<%=RadDatePicker2.ClientID %>").set_enabled(true);   
                }
                else
                {
                    $find("<%=RadDatePicker2.ClientID %>").set_enabled(false);
                }
            }

Maria Ilieva
Telerik team
 answered on 20 Nov 2012
1 answer
126 views
Some of our users are experiencing session resets which led me to this article:

http://www.telerik.com/support/kb/aspnet-ajax/editor/cookies-and-session-overflows-with-many-telerik-controls-radeditor-v4-x-and-5-x.aspx

The article says this is fixed in RadEditor v6.  The version of my Telerik.Web.UI.dll assembly is 2012.1.411.35 but I cannot tell which version of RadEditor I am running.  Can someone please help? Thanks!

Rumen
Telerik team
 answered on 20 Nov 2012
1 answer
679 views
Hi,
My project is using .net framework 3.5 and telerik version 2008.03.1314.35 but this version not support IE

http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/javascript-error-when-using-formdecorator.aspx

 Probably this problem fixed in 2009 versions.

How can i download 2009 SP2 version ?
Rumen
Telerik team
 answered on 20 Nov 2012
3 answers
137 views
Hi

I have the following structure :

RadSplitter

    Pane1

    RadSplitterBar

    Pane2

On the first load, pane1 is 100% and 0% for pane2 but on specific event I would like to change it to 50/50% for exemple.
I don't find solution to achieve this client side or server side.

Someone can help me

Thank in advance

Ludo
Vessy
Telerik team
 answered on 20 Nov 2012
1 answer
187 views
I have a database table containing multiple columns and one column (AppliedName) is encrypted. On my page I have a radgrid which on databound I run a decrypt method so the actual text value shows up in the radgrid instead of the encrypted value. However, when I try to filter that column using "contains" filter function it wants to compare the filter text to the encrypted values in the databse... not the text displayed in the radgrid.  I can see why it would do this, but what I would like to do is decrypt the value before comparing the filter text I've entered into the filter text box to the values in the grid.  This way I can use the "contains" method.  I could probably first encrypt the filter text, but then I don't think I would be able to use contains...

Is there a way to do this, or is there a way I can do a client side filter that compares the filter text to the actual text that appears in the radgrid... not the database?

Any help is greatly appreciated!

Thanks,
Jon


Daniel
Telerik team
 answered on 20 Nov 2012
4 answers
313 views
Hi!
I have a radgrid and try to implement the radautocomplete object in an edititemtemplate like this:

<EditItemTemplate>
    <telerik:RadAutoCompleteBox
        ID="RadAutoCompleteBox1" runat="server"
        Width="400" DropDownWidth="200"
        DataTextField="Field1"
        DataValueField="Field1"
        DataSourceID="ADS_Field1"
        InputType="Text"
        Delimiter=";"
        AllowCustomEntry="true"
        TokensSettings-AllowTokenEditing="true"
        Text='<%# Bind("Field1") %>'>
    </telerik:RadAutoCompleteBox>
</EditItemTemplate>

1. Problem: the binded field value does not appear in the edit form
2. If I change the inputtype to "Token" you cannot write in this field
3. how can I remove the delimiter before update, because I don't want to have it in my database

Thank you!
Bernie
Top achievements
Rank 1
 answered on 20 Nov 2012
3 answers
373 views
So, I have a RadComboBox that is populated with a product number and a name (123456 - product name).  I want to be able to type in either the product number ("123456") or the product name and have the auto complete functionality work.

I know I need to have a client side script "OnClientItemsRequesting"
I know I can probably use a [WebMethod] - probably using the <WebServiceSettings> within the Telerik RadComboBox....
I know that I need to populate the data from a database...
I know that I have to do this for 6 different combo boxes.

...but my knowledge and skill set is terrible after that.

I'm assuming that my client side script will be something like this:
function OnClientItemsRequesting(sender, eventArgs) {
     var context = eventArgs.get_context();
     context["FilterString"] = eventArgs.get_text();
 }

My web method should be something like this:
public RadComboBoxItemData[] GetItem1Values(object context)
        {
            //previously declared global
            DataBaseConnection db = new DataBaseConnection();
 
            IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
 
            string filterString = ((string)contextDictionary["FilterString"]).ToLower();
            string filterNext = ((string)contextDictionary["FilterNext"]);
 
            BrandCode = cmbProd1Filter.SelectedItem.Value;
            DataTable dt = db.StoredProcedures.getItemBumbersByBrandCode_Command(QtyUp, BrandCode);
 
            var filterRows = (from dr in dt.AsEnumerable() select dr.Field<string>("ItemName")).ToArray();
 
          //I have no idea what happens after that... I need help
        }

Any help would be appreciated... I really need it.

Thanks in advance.
Mark
Top achievements
Rank 1
 answered on 20 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?