This is a migrated thread and some comments may be shown as answers.

Problems with RadEditor

3 Answers 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 28 Mar 2011, 05:12 PM

Hello,

I have some questions about the insert, update and delete RadGrid:

1) By deleting a record, I want to display a yes/no alert. If the user confirm then the record is deleted, If not, then the alert is closed and the record stay. How can I do that?

2) I cant display a radwindow from the edit form, why? and how can I do that?

3) Before executing the delete action, I need to retrieve a specific value from the deleted record, for example the value which displayed in the "PagNam" column in order to remove the file with the name "PagNam" by deleting the record.
How can I do it?

Please, I need your hep,
It is appreciated to send me a sample code with an explaination.

Regards,
Bader

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 31 Mar 2011, 01:35 PM
Hi Bader,

Straight to your questions:

1) Deletion of RadGrid items with confirmation dialog is demonstrated in the following online demo:
Automatic Operations

2) What do you mean by saying that RadWindow cannot be opened from edit form? What code are you trying in order to do so? By default there should be no problem with such scenario.

3) If you are going to recognize the items by this value and it is unique to each record, I would advise you to assign it as DataKeyName of the grid. Then, when Delete command happens, you can access it by using (e.Item as GridDataItem).GetDataKeyValue("PagNam"). If this field cannot be a DateKeyName, you can just access the cell of the current dataitem by UniqueName and take the value:
Accessing cells and rows

Regards,
Tsvetina
the Telerik team
0
Bader
Top achievements
Rank 1
answered on 10 Apr 2011, 09:00 AM
Hello,

Thank you for you reply, iy was useful,
I'm facing another three problem with the silverlight dialog within the RTL RadEditor:
1) The Dialog is not designed well in RTL mode (Common problem for all dialogs in RTL mode).
Please view the attached image.

2) As you can see in the attached image I can't add InitParameters to the silverlight control. Is there any way to set the InitParameters without using the HTML Mode of the RadEditor (I mean manually)? Is there any way to add fields to this dialog? If it is possible, please explain to me how I can do that?

3) What does the following properties means:
    a. Windowless
    b. Auto Upgrade
    c. Enable Hml Access

Please, I need your help in order to solve the above problems.
It is apreciared to send me a code which solves the first two problems and an explaination for the third problem.

Regards,
Bader
0
Dobromir
Telerik team
answered on 13 Apr 2011, 05:45 PM
Hi Bader,

Straight to the questions:
  1. The file browser dialogs are using RadFileExplorer control which does not support right-to-left direction out of the box. To fix this problem you need to add some extra CSS selectors related to the RadFileExplorer in the CSS file that is loaded in the editor dialogs via RadEditor's DialogsCssFile property (as explained in this live demo). For your convenience I have applied the required modifications and prepared a sample page using the CSS files from the above mentioned demo, please find the sample page attached.
  2. At present Silverlight Manager dialog does not offer the possibility to set InitParameters to the HTML object, however, it is possible to modify the dialog to extend its functionality. More information on how to modify the RadEditor's built-in dialogs is available in the following Live Demo:
    Customize Built-in Dialogs
    For your convenience I have modified the SilverlightManager.ascx built-in dialog with the additional field. Please find it attached.
  3. The mentioned properties are standard Silverlight properties that can be applied to the <object> element through <param> inner tag. You can find the description of these properties in MSDN:
    http://msdn.microsoft.com/en-us/library/cc917827%28v=vs.95%29.aspx
    http://msdn.microsoft.com/en-us/library/cc838156%28v=vs.95%29.aspx
    http://msdn.microsoft.com/en-us/library/cc838264%28VS.95%29.aspx

All the best,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Bader
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Bader
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or