Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi.  Has anyone experienced an issue when using Chrome and copying-pasting between RadEditors, the '&nbsp;' and '<br>' characters are inserted and the cursor automatically goes to the next line?

I've done google searches, and it does seem this is an issue with other applications.  But I couldn't find anything mentioning Telerik.

This issue doesn't happen in Firefox or IE; however, in Safari, even more HTML code is added then what appears when using Chrome.

Does anyone have any advice or suggestions on how to handle this?

Thanks!
Rumen
Telerik team
 answered on 16 Mar 2012
5 answers
119 views
Hi,
I'm having trouble finding and binding my ddl control server side - mainly falling at the first hurdle - I can't find the control!

Here's the inlineinserttemplate:

        <InlineInsertTemplate>
            <div id="InlineInsertTemplate" class="rsCustomAppointmentContainer technical">
                <div>
                </div>
                <span class="rsCustomAppointmentContainerInner">
                    <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%"
                        TextMode="MultiLine" Height="20px"></asp:TextBox>
                    <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">
                        Insert
                    </asp:LinkButton>
                    <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel">
                        Cancel
                    </asp:LinkButton>

                    <span class="inline-label">Type</span>
                    <asp:DropDownList ID="ddlActivityType" runat="server" DataValueField="activity_type_uniq" DataTextField="activity_type_name">
                    </asp:DropDownList>

                    <asp:LinkButton ID="InsertMoreButton" runat="server" CommandName="More" CssClass="rsAdvancedEditLink">Advanced</asp:LinkButton>
                </span>
            </div>
        </InlineInsertTemplate>

Can anyone help me with where to look and what event to look in?

Cheers!
Plamen
Telerik team
 answered on 16 Mar 2012
1 answer
97 views
Hi,
I have a radgrid, with EditMode as "PopUp". I want the Update and cancel Button to be of PushButton Type. But, when I set the ButtonType Property, It comes with default skin. But I want it to have a radButton skin. How to set it?
Thanks and Regards,
Deepika Karanth
Milena
Telerik team
 answered on 16 Mar 2012
1 answer
163 views
I need to set the toggle state via jQuery when an item is updated somewhere else on the page.
The class of the radbutton is "theRequiredButton" and the button has an attribute of "data-stepinstanceid" (there are multiple instances of this button on the page, and I use the data attribute to find this instance.
I use this to find the element:
var thebutton = $(".theRequiredButton[data-stepinstanceid='" + args + "']"); where args is the stepinstanceid of this particular button.
How do I now change the button's appearance, in effect, toggling it to the selected/unselected state?
I tried "$(thebutton).set_checked('true');, but this throws an error
Kevin
Top achievements
Rank 2
 answered on 16 Mar 2012
1 answer
169 views
Hi there,

I have a RadGrid control with configured sorting and paging. Grid Sorting is working with Postbacks.

Once i configure RadAjaxManager to update the RadGird control through Ajax when the control changes. sorting of a column works the first time a column header is clicked. When a column header is clicked a second time, I receive an error "updatePanelElement.innerHTML=rendering".

Here is the Code:

<

 

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" AjaxFrameworkMode="Enabled" />

 

 

 

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

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="myGrid">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="myGrid" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 


Grid Properties:

<

 

 

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

 

 

 

AllowSorting="True" AllowPaging="True" AllowCustomPaging="True" PageSize="5"

 

 

 

AllowFilteringByColumn="True" OnDataBinding="myGrid_DataBinding" OnPageIndexChanged="myGrid_PageIndexChanged"

 

 

 

OnSortCommand="myGrid_SortCommand" CellSpacing="0"

 

 

 

GridLines="None" EnableAjaxSkinRendering="False"

 

 

 

onneeddatasource="myGrid_NeedDataSource">

 



Anyone have any suggestions on how to fix?

Thanks in Advance
-Hari
Maria Ilieva
Telerik team
 answered on 16 Mar 2012
2 answers
108 views
Hi,

I want to get the index of the selected row in onkeypress event.

Help me
Thnx in advance
Remya
Top achievements
Rank 1
 answered on 16 Mar 2012
2 answers
211 views
Hi,

My keypress event is,

function RowKeyPress(sender, eventArgs) {
                    var keycode = eventArgs.get_keyCode();
                    if (keycode == 13) {
                        var grid = sender;
                        var masterTable = grid.get_masterTableView();
                        var row = masterTable.get_dataItems();
                        var index = sender.get_masterTableView().get_selectedItems()[0]._itemIndexHierarchical;
                        var Code = row[index].getDataKeyValue("Code");
                        if (Code != "") {
                            $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(Code);
                            window.radopen("TelerikListSpecialityMaster.aspx?SpecialityID=" + Code, "SpecialityList");
                        }
                    }
                }
but my Ajaxrequest is not firing on keypress.
Help me.
Thnx in advance
Remya
Top achievements
Rank 1
 answered on 16 Mar 2012
1 answer
110 views

Hi Everyone,

I am trying to implement item level security in my application and i have run into an issue wherein i wish to hide a few of the controls in my grid view. Below are the complete details of my scenario,

I have list named as States which contains the following data

  1. Washington - Item Permissions assigned - Adam has Write permissions
  2. New York - Item Permissions assigned - Charles has Read permissions
  3. Texas - No Permissions assigned to both the users

According the SharePoint object model when i try to fetch all the records, i get the data as per my requirement i.e. Adam is only able to view Washington and Charles is only able to view New York.

Now this data is shown in the gridview which has view,edit buttons against it.

i wish to trim these buttons according to the permissions of the user on the list items. Kindly let me know if there is a way to do it.

I was curious to know whether anyone has knowledge of what does SPSecurityTrimmedControl.PermissionContext property do? Does it apply security triming based on the current list item permission, if so how does it do it. please provide a sample

Regards,

Abhijit Narvekar
Tsvetoslav
Telerik team
 answered on 16 Mar 2012
1 answer
108 views
I want to only delete/update/copy/move on the grid side select not on the treeview node select. is there a way to do that?
Pero
Telerik team
 answered on 16 Mar 2012
3 answers
363 views
Hello,

When someone is using the Rad Editor and tries to add a link to a file whose name includes accented characters, the url gets html encoded.

I used the ASP.NET Editor Demo on your website and used the Upload File dialog of the Rad Editor to upload a PDF whose name included accented characters - çemplatés 2.pdf. I then used the same dialog to add a link to the editor to the file. It came out as this:
<a href="/aspnet-ajax/Editor/Img/UserDir/Marketing/&ccedil;emplat&eacute;s 2.pdf" target="_blank">

My question is why is the file name being html encoded? Shouldn't it be url encoded instead or not encoded at all?

And is there a way to prevent it from being html encoded?

Thanks,
Cameron


Rumen
Telerik team
 answered on 16 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?