Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
120 views

When checking to see if the document has been modified, I’m having a problem where the first key stroke is eaten.  On the first key stroke that makes the document dirty I send an ajax message to the server indicating the document is dirty and it is that first key stroke that gets eaten.  Other key strokes are ignored and no messages are sent.  Of course I’m assuming it’s the interaction with the ajax message that causes the key stroke to be eaten. 

Was wondering if anyone had a suggestions what to look into. 

Thanks.
___
Client Side

function OnKeyDown_Editor(e) {
            //debugger;
            if("<%=AllowTextEntry%>".toLowerCase()=="true".toLowerCase()){
                if(isPrintable_orDelete(e.keyCode)){
                    SetDocumentDirtyState(true);
                }
            }
…
            e.returnValue = <%=AllowTextEntry%>;//set to true most times
    }
 
   function SetDocumentDirtyState(MakeItDirty){
        var IsDirty=GetCookie("<%=EditorDirtyCookieName%>");
        if(MakeItDirty==true){
            if(IsDirty!='true'){
                /*
                 * write code to lock this document in database
                 */
                 var message="EditorIsDirty-true";
                 SendAjaxMessage(message);
            }
            SetCookie("<%=EditorDirtyCookieName%>",true,1);
        }
        else{
            deleteCookie("<%=EditorDirtyCookieName%>");
        }
    }
______Server Side:

       protected void Page_Load(object sender, EventArgs e)
        {
…
            if (!Page.IsPostBack)
            {
…
            /*
             * Setup Ajax Management
             */
            //Get reference to AjaxManager (from Master)
            var manager = RadAjaxManager.GetCurrent(this);
 
            //Create a new delegate to handle the AjaxRequest event
            manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxPanel1_AjaxRequest);
            manager.AjaxSettings.AddAjaxSetting(manager, this.RadEditor1);
 
 …
        }
 
       protected void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            string Action = null;
            string MyArgument = null;
            try
            {
                int Index=e.Argument.IndexOf("-");
                if(Index>0)Index++;//include the "-"
                Action = e.Argument.Substring(0, Index);
                MyArgument = e.Argument.Substring(Index);
            }
            catch (Exception exc) {
            }
 
 
            switch (Action)
            {
…
                case "EditorIsDirty-":
                    if(MyArgument=="true"){
                        /*eating character?*/
                    }
                    break;
…
            }
…
        }

Rumen
Telerik team
 answered on 11 Mar 2011
5 answers
320 views

Hi,
   I am using Telerik Treeview Control. I have 4000 sub nodes under a main node. its taking so much time in page load (approx 10 minutes). After loading of the page, I am trying to Check the Checkbox of the main node its getting hang my system. there is no response till one hours or more & finally I had to close the window.
   Rather this when I am trying any single node(which do not have any child node) its taking 5-8 seconds to check the checkbox after click on that. Please Suggess the soultion. the code is here underneath.

===============================================

 function UpdateAllChildren(nodes, checked)
  {
   var i;
   for (i=0; i<nodes.length; i++)
   {
    if (checked)      
    {
     nodes[i].Check();      
     s=nodes[i].value;
    } 
    else     
     nodes[i].UnCheck();
        
    if (nodes[i].Nodes.length > 0)     
     UpdateAllChildren(nodes[i].Nodes, checked);     
   }
  }

==================================================

    This above function is being calling while pressing any checkbox on the tree node.

Suresh Dev

Veronica
Telerik team
 answered on 11 Mar 2011
1 answer
96 views
Hello, 

I would like to use the editor spell checker in Hebrew.

I put the dictionary at the  path: ~/App_Data/RadSpell

and set the properties of the editor to:

<rad:RadEditor
      
Id="RadEditor1"
     
SpellCheckSettings-WordIgnoreOptions="UPPERCASE"
      
SpellCheckSettings-SpellCheckProvider="EditDistanceProvider"
      
SpellCheckSettings-SpellEditDistance="2"
      
Runat="server">
</
rad:RadEditor>
as mentioned in the guid.

and set the SpellCheckSettings-DictionaryLanguage Property to : he-IL


But still when i run the spell Checker with words in hebrew that contains errores it pop up window that says
'No Mistakes Found"
I supose i use the Q1 2010 version ( how can i be sure ?)
Rumen
Telerik team
 answered on 11 Mar 2011
1 answer
128 views

Hi,

I wonder, how can I achieve one thing: I have defined skin (in asp.net meaning of that word) in default.skin, to set appropriate skin to all telerik textboxes:

<telerik:RadTextBox runat="server" Skin="Vista" EnableEmbeddedSkins="true" />
This works fine for every textbox - appropriate skin is set to control. The only problem I'm having is, that filter textbox on RadGrid doesn't seem to respect this element. It's still rendered as it's defined in skin (for RadGrid I'm using custom skin).

Now, I would like filter textbox to use settings from default.skin file.

I've had no problem with RadComboBox used as filter control in my custom column class, skin was automatically applied. Why same thing isn't happening to textbox? And how could I achieve my goal?

Thanks in advance

Pako

Pavlina
Telerik team
 answered on 11 Mar 2011
4 answers
160 views
Hi @

I have set the following properties in Rad Grid to allow filtering on columns:

AllowFilteringByColumn

 

="true"

 

 

showfiltericon

 

="true" filterlistoptions="VaryByDataType"

 

But I am unable to see the filter options menu on click of Filter icon which appears in Header. Instead the page posts back.

Please let me know how to achieve the Filtering option in my grid?

I am using Telerik.Web.UI.dll 2010.3.1215.35 version in my application.

Thanks In advance.

Pavlina
Telerik team
 answered on 11 Mar 2011
1 answer
85 views
I have a radgrid that displays a radajaxloadingpanel upon update.
In IE, when update occurs, the entire grid is greyed out with the loading panel (desired). However, in firefox, if the user scrolls down to update a row that was not originally not visible, the greyed out effect of the loading panel only affects the originally visible rows in the grid. So if a user has scrolled so far down that none of the original rows are visible, they receive no feedback that anything is executing.
Pavlina
Telerik team
 answered on 11 Mar 2011
1 answer
93 views
Any one send me the ASP.NET AJAX - ListBox CSS with all skin


please help me


send me in fennrussel@gmail.com
Kate
Telerik team
 answered on 11 Mar 2011
1 answer
266 views
Hello,

I just upgraded to Telerik 2010 Q3.

I am facing issue to convert the characters to entities.
For eg.
If you paste this string "

&#x82E5;&#x8981;&#x4EE5;&#x4E2D;&#x6587;&#x9605;&#x8BFB;&#x6B64;&#x7535;&#x5B50;&#x90AE;&#x4EF6;&#xFF0C;&#x8BF7;&#x5355;&#x51FB;&#x6B64;&#x5904;&#x3002;

" (this resembles chinese characters) in html view and switch to design view it shows the chinese characters properly.
Again if you switch to html view it shows the same chinese characters in there where as it should show the unicode/entities for the characters.

I tried setting "ConvertCharactersToEntities" contentfilter but that didn't help too.

You can reporduce the above scenario in the built-in content filters demo.

Due to this "?????" is saved in db or when I write the content in file using RadEditor.Content property which returns the chinese characters as it is.

I want to display chinese characters in design view and in html view it should show the entities/unicode numbers for the characters.
By doing this RadEditor.Content property will return the unicode numbers and so in DB proper values will be saved.

Please help me in this senario.

Thanks in advance
Marin Bratanov
Telerik team
 answered on 11 Mar 2011
1 answer
113 views
I've gotten the RadPrompt working along with the Delete button column. The End user will click the delete button on a row, the radprompt will open and the user must input a reason for the deletion. Then he clicks OK, I take the text through the args passed to the clientside and store it in a hiddenfield and then I need the Radgrid to resume the Server Side  OnDeleteCommand code that is already wired. I know that I'm probably going to need to raise this on the client side once the radprompt closes. However, I cannot find any way of doing this. Help please!
Vasil
Telerik team
 answered on 11 Mar 2011
5 answers
480 views

Folks,

I am using RadControls for ASP.NET AJAX Q3 2010 SP2 with VS2010. I am using Form Template for editing rows. Below is my code.

In my form I have a RadioButton list (RadioButtonListApprovalType) with 3 list items. (Approved, Denied and Pending). I would like to see if the user's selects 'Denied', prior to updating the form, show an alert (i.e. 'Are your sure to Deny the Process?'). If user's chooses 'Yes', Update the row. If user's chooses 'No', Cancel the update. Basically I would like to see the same sort of alert prior to Deleting Radgrid rows.

Thanks

GC_0620
______________

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True" DataSourceID="SqlDataSource3" GridLines="None" AutoGenerateColumns="False"
                PageSize="8" Skin="Office2007" AllowAutomaticDeletes="True"
                AllowAutomaticUpdates="True" EnableLinqExpressions="False" OnColumnCreated="RadGrid1_ColumnCreated"
                OnUpdateCommand="RadGrid1_UpdateCommand" 
  
                OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound">
                        '''''
                        ''''               
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table id="Table2" class="form-controls" cellspacing="2" cellpadding="1" width="100%"
                                border="0" rules="none" style="border-collapse: collapse; background: #DCDCDC;">
                                  
                                            <tr>
                                                <td style="font-size: 11px">
                                                    Approval status:
                                                </td>
                                                <td>
                                                    <asp:RadioButtonList ID="RadioButtonListApprovalType" DataTextField="ProcessStatus"
                                                        TabIndex="11" DataValueField="ProcessStatus"
                                                        RepeatDirection="Horizontal" runat="server" SelectedValue='<%# Bind("ProcessStatus") %>'>
                                                        <asp:ListItem Text="" />
                                                        <asp:ListItem Text="Approved" />
                                                        <asp:ListItem Text="Denied" />
                                                        <asp:ListItem Text="Pending" />
                                                    </asp:RadioButtonList>
                                                </td>
                                                 
                                         
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="btnUpdate" runat="server" CssClass="form-button" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                            Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' />
                                           
                                        <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CssClass="form-button"
                                            CommandName="Cancel" Text="Cancel" />
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                    '''''
                    '''''
                  
            </telerik:RadGrid>
Tsvetina
Telerik team
 answered on 11 Mar 2011
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?