Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
110 views
We are using the RadEditor with the LinkManager.ascx dialog (v2012.3.1308.45). We had to extend the link manager to add additional attributes to the link. To do so, we modified the _insertClickHandler function in link manager to the following:

_insertClickHandler: function (e) {

var modifiedLink = this.getModifiedLink();
modifiedLink.setAttribute("LinkOptions", "2");

var args = new Telerik.Web.UI.EditorCommandEventArgs("LinkManager", null, modifiedLink);
//backwards compatibility
args.realLink = modifiedLink;
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(args);

},

This worked fine in our previous version of controls (v2011.something). After upgrading this now returns a link without the added attribute at the beginning of the editor.

Expected results:

some text.....
< a href LinkOptions="2" / >
some text....


Actual results:
< a href / >
some text...
some text...

I also tried the following:

_insertClickHandler: function (e) {
var modifiedLink = this.getModifiedLink();
modifiedLink.setAttribute("LinkOptions", "2");

var args = new Telerik.Web.UI.EditorCommandEventArgs("LinkManager", null, modifiedLink);
//backwards compatibility
args.realLink = modifiedLink;

var editor = this._clientParameters.editor;
editor.pasteHtml(args.value.outerHTML);

Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},


Not handing in args to the close routine keeps the added attribute and paste position and works well in chrome, but not in IE. How can I return the link I want at the cursor position? This worked great in previous versions. I don't want Telerik assuming that 'LinkOptions' is an invalid element and stripping it before it gets to the editor.

Thanks
Rumen
Telerik team
 answered on 19 Feb 2013
1 answer
103 views
Hi,

I am new to telerik and slowly working my way through the product so please excuse my ignorance.

I have looked at the Window MDI example which I think might be  quite a nice way to present my Dashboards and BI Forms. Where I am a little confused is that in the menu item you place the URL in the value property as opposed to the navigate URL property. The challenge I have is that normally, if using a standard menu, I would put something like ~/Sales/DailySales.aspx in the navigate URL property but the same does not work for the Value property.

In all the examples I have seen the all call external URL's using a fully qualified URL. If I try and use ~/sales/DailySales.aspx it cannot find the page.

What am I doing wrong?

Campbell
Marin Bratanov
Telerik team
 answered on 19 Feb 2013
1 answer
116 views
I'm having an issue with frozen colums and the RadGrid.  The problem exist with IE9 and Chrome.  When the webpage completes rendering the Radgrid paints with all rows showing (in this case there are only four rows) then it collaspes to 2 rows showing with a vertical scroll bar.
After resizing the webpage manual (by one or two pixels) the Radgrid will repaint all four rows will show,  the vertical scroll bar goes away, and the frozen colums work as expected.  As a hack, I tried using the windows.onload event to resize the window and move the window to see if that would fix the issue--it does not.  I also tried the onGridCreated function and it did not resolve the issue. Any ideas?   

Thanks
Angel Petrov
Telerik team
 answered on 19 Feb 2013
1 answer
125 views
Is there a way to reduce the number of ScriptResource.axd files that load when a page is requested?  I routinely have upwards of 20 of these files load each request.
Dimitar Terziev
Telerik team
 answered on 19 Feb 2013
2 answers
221 views

I am having some trouble figuring out how to get the row index value from the radgrid.

Using Microsoft Gridview I 've been able to accomplish the following:

 

Dim row As GridViewRow = DirectCast(btnDetails.NamingContainer, GridViewRow)

 

 

'Grab the LabAcc_PK and feed it to the Lab details datasource
' finally, rebind the detailview

  
DBConnect.Open()

cmd.Connection = DBConnect
cmd.CommandType = Data.CommandType.StoredProcedure

cmd.CommandText = "usp_GetLabAccountDetails"

 
 'Add Parameters of SQL Procedure

 
cmd.Parameters.AddWithValue("LabAcc_PK", Convert.ToString(Gridview1.(row.RowIndex).Value))


How do I do the same thing but using the radgrid.

thanks -

Danny
Top achievements
Rank 1
 answered on 19 Feb 2013
2 answers
214 views
Hi,

I am using RadEditor with the InsertLink dialog, which opens a custom dialog.
when I select the link and right-click on it, I get a context menu and when I choose set link properties, I get an exception regarding the dialogs handler which is not registered in my web.config. I tried to add it, but I still get the exception.

Finally, I decided to disable the right-click on link items.
I tried your example:
                                   
    <telerik:EditorContextMenu TagName="A" Enabled="false">
      
<telerik:EditorTool Name="SetLinkProperties" />
      <
telerik:EditorTool Name="Unlink" />
    </
telerik:EditorContextMenu>

but I get an exception regarding spell-check:

'..\App_Data\RadSpell\en-US.tdf' is missing. The spellchecking functionality of RadEditor requires a dictionary file named 'en-US.tdf' in the '..\App_Data\RadSpell\' folder. Please, ensure that all needed dictionary files from the original RadEditor distribution are present. See the help for more details Controls > RadEditor > Spellchecker

How can I cancel the option to right-click on a link? Why do I get spellchecker error?
or how can I show my dialog on "set link properties"?

do you have any idea?

Thanks for your help.
Covertix
Top achievements
Rank 1
 answered on 19 Feb 2013
0 answers
90 views


if i put   ProjectName.DataBind(); after the records are come in radlistbox
if i don't put that record are shown one time but for each doesn't go inside

see the screen shot
.cs

if (service[0].grupname.ToString() == "SubCon")
                                {
                                    using (var db = new DoskContractServicesDataContext(Globals.strCon))
                                    {
                                       
                                        var Projec = (from a in db.DSProjectMasters where a.FinalStatus == "Cls" && a.Status != "Del" select new { a.ProjectCode, a.ProjectTitle }).ToList();
                                        ProjectName.DataSource = Projec;
                                        ProjectName.DataValueField = "ProjectCode";
                                        ProjectName.DataTextField = "ProjectTitle";
                                        ProjectName.DataBind();
                                    }
 
                                    ProjNam.Visible = true;
                                    ProjectName.Visible = true;
 
                                    string md = service[0].Projectid.ToString();
 
                                    string[] Projid = md.Split(',');
 
                                    for (int i = 0; i < Projid.Length; i++)
                                    {
                                        string val = Projid[i].ToString();
                                        int m = 0;
 
                                        foreach (RadListBoxItem item1 in ProjectName.Items)
                                        {
                                            string Md1 = ProjectName.Items[m].Value;
                                            if (Md1 == val)
                                            {
                                                item1.Checked = true;
                                            }
                                            m++;
                                        }
                                    }
                                }



Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 19 Feb 2013
3 answers
218 views
Hi,

we are using Version 2012.3.1308.35 of Telerik dll´s and Visual Studio 2010 in a SharePoint 2010 project. All 3 dll´s (Web.UI, Web.Design, Web.UI.Skins) are properly deployed to the GAC. I´ve added the Telerik controls to the toolbox as described.

When I drop the AsynUpload to a page, Visual Studio displays no properties in the properties window and the SmartTag functions are not displayed. When I selected the AsyncUpload control from the properties window dropdown, Visual Studio crashes every time.

When I deploy the solution to SharePoint and click on the "Select" button, sometimes Internet Explorer crashes without any message, or I get an cryptic javascript error message.

All other Telerik controls show up properly in Visual Studio designer and work fine.

Do you have any clues how to solve this isssue?

Thank you!
Plamen
Telerik team
 answered on 19 Feb 2013
2 answers
101 views
Just upgraded from 2012.2 607 to 2012.3 1308.

All my RadComboBox' selected items are right aligned. The list is properly left aligned.

I started a new project to see if this was a generic issue or just related to the upgraded project and the new project everything is properly aligned.

Nencho
Telerik team
 answered on 19 Feb 2013
1 answer
135 views
Hello,
I have a asp panel and inside a table with fields telerik. I run with a button to save data in the database and then opens a radnotification to alert the user to the notification. But radnotification not see, if I remove radajaxloadingpanel then it works, why?

code aspx:

<telerik:AjaxSetting AjaxControlID="ImageButtonAggiorna">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="Panel3"
            LoadingPanelID="RadAjaxLoadingPanel1" />
    </UpdatedControls>
</telerik:AjaxSetting>
 
                                         <asp:Panel ID="Panel3" runat="server">
                                            <asp:ImageButton ID="ImageButtonAggiorna" runat="server" ImageUrl="~/Image/conferma.png" OnClientClick="ImageButtonAggiorna_Click" />
                                         </asp:Panel>



code behind:

Private Sub ImageButtonAggiorna_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImageButtonAggiorna.Click
    Me.RadNotification1.Show("Servizio non disponibile, effettuare la registrazione.")
     End Sub



Marin Bratanov
Telerik team
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?