Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
Hi,

           In my sharepoint project page I have a panelbar, a label, a radbutton. In the button click and panelbar item click  i have to postback tha page. In server side, I have written a code for getting the event argument  and set it into the label. In my page I have used RadAjaxManagerProxy for ajax operation. I have placed the radajaxmanager  in MasterPage. In the button click the label is successfully updated. My problem is that  in PanelBar Item click the page is postbacked but the label is not updated.

I have attached the code below
<telerik:RadScriptBlock ID="DemoScriptBlock" runat="server">
        <script type="text/javascript" language="javascript">
 
            function OnClientItemExpand(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(args.get_item().get_value());
 
            }
 
 
            function OnButtonClick(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(sender.get_text());
 
            }
 
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManagerProxy ID="PanelbarDemoAjaxmanagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="uxProfileList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="uxProfileList" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="DemoButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoButton" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
     
    <telerik:RadPanelBar ID="uxProfileList" OnClientItemClicked="OnClientItemExpand"
        OnClientItemExpand="OnClientItemExpand" ExpandMode="FullExpandedItem" Width="100%"
        runat="server">
        <Items>
            <telerik:RadPanelItem runat="server" Text="Personal Info" Value="PersonalInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Profile Info" Value="ProfileInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Education" Value="Education" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="WorkExperience" Value="WorkExperience"
                Font-Bold="true">
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
 
    <asp:Label ID="DemoLabel" Text="Demo Label" runat="server"></asp:Label>
 
    
 
    <telerik:RadButton ID="DemoButton" Text="Demo Button" OnClientClicked="OnButtonClick" runat="server">
    </telerik:RadButton>

C#:

protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                DemoLabel.Text = Request["__EVENTARGUMENT"].ToString();
             
        }

Thanks,
Velkumar.
Maria Ilieva
Telerik team
 answered on 16 Mar 2012
1 answer
130 views
I use RadMenu Control with Images (icons) from a table in the database and works fine. the problem is that every time I load a web page, the menu is reloaded and becomes very slow. 
Please can you help me resolve this issue. thanks 


Public Class Site1
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then

            'enlazo el control de menú al DataTable
            Me.RadMenuPrincipal.DataSource = CargarMenu()
            Me.RadMenuPrincipal.DataFieldID = "ID_MODULO"
            Me.RadMenuPrincipal.DataFieldParentID = "ID_MODULO_PADRE"
            Me.RadMenuPrincipal.DataTextField = "NOMBRE_MODULO"
            Me.RadMenuPrincipal.DataValueField = "ID_MODULO"
            Me.RadMenuPrincipal.DataNavigateUrlField = "LINK_PAGINA"

            Me.RadMenuPrincipal.DataBind()

        End If
    End Sub


    Private Sub RadMenuPrincipal_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenuPrincipal.ItemDataBound
        'Set additional properties. ToolTip for example:  
        Dim row As DataRowView = CType(e.Item.DataItem, DataRowView)
        e.Item.ToolTip = row("Tooltip").ToString()
        e.Item.ImageUrl = row("LINK_IMAGEN").ToString()
    End Sub
End Class
Kate
Telerik team
 answered on 16 Mar 2012
1 answer
105 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
110 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
84 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
158 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
155 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
105 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
204 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
106 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
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?