Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
139 views
Dear Sir/ Madam

I have some problem

I have a page and a popup(radwindow) is opening from that page. How can i access any control of parent page on popup page.
Querystring or session won't solve my problem.



Thanks
Chandan kumar
Chandan Kumar
Top achievements
Rank 1
 answered on 18 Oct 2010
3 answers
92 views
Hi I am using version 7.1.1.0 of the Ajax RadEditor and cannot upgrade. I need to strip out all Word tags and HTML with the exception of bold, italic, underline and some special characters like trademark, and copywright.

I added the following javascript from the documentation so I can strip the tags on the sumbit :

<script type='text/javascript'>

function OnClientLoad(editor, args)

{

editor.add_submit(function ()

{

editor.fire('SelectAll');

editor.fire('FormatStripper', {value : 'WORD'});

alert(editor.get_html());

});

}

</script>



when the page loads I receive the following javascript alert: 
"Exception while exeduting client event OnClientLoad Error:Object doesn't support this property or method"

Again all I need to do is remove all word tags, script, span, and div tags.

Rumen
Telerik team
 answered on 18 Oct 2010
1 answer
57 views
I have a listbox used for reordering.  IN the aspx page it is defined thus:

<

 

 

telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True"

 

 

 

AppendDataBoundItems="True" DataSourceID="SqlDataSource1" DataTextField="Input"

 

 

 

DataValueField="TestTakerOrderID" EnableDragAndDrop="True" Font-Size="Medium"

 

 

 

Width="360px" >

 

 

 

<buttonsettings showreorder="False" />

 

 

 

</telerik:RadListBox>

 



From everything I can gather the "Showrerder="false" should hide the reorder buttons; thus allowing only drag and drop.  That is not the case.  The buttons always appear.  How can I not show them but still allow drag and drop reordering?

Shawn
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
88 views

 
In the following code i have specified DataKeyNames as "id , abbrev" but while binding to the grid I dont need to show the "id" column.
In this case, how can I fetch the "id" key column using client side API.

<MasterTableView  DataKeyNames="id,abbrev" ClientDataKeyNames="id,abbrev">
<Columns>
    <telerik:GridBoundColumn DataField="Abbrev" HeaderText="Abbreviation" />
    <telerik:GridBoundColumn DataField="MyName" HeaderText="My Name"/>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>

Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
73 views
I have a radgrid displayed with columns from a table and with a checkbox column on left which allows selection.....i have enabled multiple row selections...I have a button on the page by clicking it i should be able to insert all the selected records into other table....can you tell me how to do multiple  row insertions on button click event....
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
277 views
Hi,

I need to use the drag and drop feature of the RadGrid, so I checked out the demo (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx). Unfortunately, the way Telerik demostrates how to use this feature is not suitable for my situation. The following are the main two reasons (staying in the demo context: shipped and pending orders):

 

  1. Telerik uses the Session variable to store the shipped and pending orders. In my case multiple pages will be opened; a user will open pages to view and compare the different orders. Therefore, storing the orders in the session will not work since when a row is dragged both windows will be affected by the changes upon postback.
  2. On Row drop event, Telerik retreives the entities again, then inserts and deletes the dragged items from the entities's collection and afterwards, rebinds the grids. I don't understand why this has to be done this way. Why can't we manipulate the GridDataItems instead? We would just have to moved the GridDataItems, no need to retrieve the data source again and play around with the data source. Furthermore, in my scenario, the rows in the grid are added dynamically by the user. When a row is added, it is not yet saved in the database, the new records added to the RadGrid and the data will only be saved in the database when the user clicks "save". Playing with the entities's collection will not work in this case since it is not yet aware of the new rows added...

With all this being said, how can I implement the drag and drop feature to properly fit my scenario? Maybe having the drag and drop feature only client side, that would probably work...

Here's a short example of what I wish to acheive (server side):

<h2>Pending Orders</h2>
<telerik:RadGrid runat="server" ID="grdPendingOrders" OnNeedDataSource="grdShippedOrders_NeedDataSource" OnRowDrop="grdShippedOrders_RowDrop" AllowMultiRowSelection="true">
    <MasterTableView DataKeyNames="OrderId">
        <Columns>
            <telerik:GridDragDropColumn Visible="false" />
        </Columns>
    </MasterTableView>
    <ClientSettings AllowRowsDragDrop="True">
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
    </ClientSettings>
</telerik:RadGrid>
  
<h2>Shipped Orders</h2>
<telerik:RadGrid runat="server" ID="grdShippedOrders" OnNeedDataSource="grdShippedOrders_NeedDataSource" OnRowDrop="grdShippedOrders_RowDrop" AllowMultiRowSelection="true">
    <MasterTableView DataKeyNames="OrderId">
        <Columns>
            <telerik:GridDragDropColumn Visible="false" />
        </Columns>
    </MasterTableView>
    <ClientSettings AllowRowsDragDrop="True">
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
    </ClientSettings>
</telerik:RadGrid>
protected void grdShippedOrders_RowDrop(object sender, GridDragDropEventArgs e)
{
    foreach (var item in e.DraggedItems)
    {
        grdShippedOrders.MasterTableView.InsertItem(item); //add to destination
        grdPendingOrders.MasterTableView.PerformDelete(item); //remove from source
    }
}
  
protected void grdPendingOrders_RowDrop(object sender, GridDragDropEventArgs e)
{
    foreach (var item in e.DraggedItems)
    {
        grdPendingOrders.MasterTableView.InsertItem(item);  //add to destination
        grdShippedOrders.MasterTableView.PerformDelete(item); //remove from source
    }
}

Hope my explanation is clear and thanks for your support.

Eric





Veli
Telerik team
 answered on 18 Oct 2010
2 answers
1.3K+ views

Hi,

I visited the foll link http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenuitem-onclient-events-anyone.aspx and realized that there are no click events for radmenuitems.

Following is the heirarchy of my menu items i need to handle click events for


<div style="color:Black">
    <radM:RadMenu ID="RadMenu1" runat="server"  OnClientLoad="onClientLoad" EnableEmbeddedSkins="False"  Skin="Outlook"  
        OnClientItemClosing="onClientItemClosing" EnableRoundedCorners="true" OnItemClick="RadMenu1_ItemClick">
        <Items >
            <radM:RadMenuItem id = "lblWelcome" GroupSettings-Flow="Vertical">
                <Items>
                    <radM:RadMenuItem Text="SignOut" ImageUrl="../images/SignOut.gif" />
                    <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" /> 
                                <items>
                             <radM:RadMenuItem Text="fr-FR"  /> 
                             <radM:RadMenuItem Text="en-US"  /> 

                                <items> 
                    <radM:RadMenuItem Text="My Profile" ImageUrl="../images/MyProfile.gif" GroupSettings-Flow="Vertical" />
                </Items>
            </radM:RadMenuItem>
        </Items>
    </radM:RadMenu>
</div>

1. Signout : onclicking signout it should navigate to home.aspx
2. for items (fr-FR, en-US etc) of "Select my language perference" on clicking fr-FR etc i need to display an icon besides it.


Kindly assist at your earliest.
Thank you,
Parthavi

parthavi h
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
116 views
I have the following javascript method defined:

  function rowDropping(sender, eventArgs) {           
                var selectedRows = sender.get_masterTableView().get_selectedItems();
                for (var i = 0; i < selectedRows.length; i++) {
                    var row = selectedRows[i];
                   
                    //need to get row's index in the grid

                }
}

How can I access the index (in the source grid) of each of the selected rows?
Iana Tsolova
Telerik team
 answered on 18 Oct 2010
2 answers
160 views
Hi,

I have this following heirarchy  of menus
<div style="color:Black">
    <radM:RadMenu ID="RadMenu1" runat="server"  OnClientLoad="onClientLoad" EnableEmbeddedSkins="False"  Skin="Outlook"  
        OnClientItemClosing="onClientItemClosing" EnableRoundedCorners="true" OnItemClick="RadMenu1_ItemClick">
        <Items >
            <radM:RadMenuItem id = "lblWelcome" GroupSettings-Flow="Vertical">
                <Items>
                    <radM:RadMenuItem Text="<%$ Resources:,res:home_login_login_to_factnet%>" ImageUrl="../images/SignOut.gif" />
                    <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" />
                        <Items>
                            <radM:RadMenuItem text = "fr-FR" />
                            <radM:RadMenuItem text = "en-US" />
                        </Items>
                    <radM:RadMenuItem Text="My Profile" ImageUrl="../images/MyProfile.gif" GroupSettings-Flow="Vertical" />
                </Items>
            </radM:RadMenuItem>
        </Items>
    </radM:RadMenu>
</div>


Need to show a 'checkmark' image besides the menuitem ('fr-FR' or 'en-US') itself, indicating that particular item is selected ; if the user clicks on 'fr-FR' or 'en-US'. And hide the image if the user clicks on another menu-item (other than the one that is selected)

Kindly assist.

Thanks,
Parthavi
parthavi h
Top achievements
Rank 1
 answered on 18 Oct 2010
3 answers
102 views
hi,


       Is it possible to set RadDatePicker day and month only constant .
But  year should be changeable . Please reply


Regards

Susha
  
susha
Top achievements
Rank 1
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?