Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
143 views
 

This is Alex  and need some help regarding RadEditor (specifically the Insert image feature in RadEditor).

 

Description :

 

The demo shown  @ http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx , works as expected in IE8 ie I am able to insert image through image manager and resize it by dragging but same can’t be done using Chrome, ie. I’m able to insert image but not able resize it by dragging.

 

 

Dsffd
Top achievements
Rank 1
 answered on 07 Jan 2014
5 answers
146 views
Hi, 
The value in Html is empty.

<input type="button" value="" class="ruButton ruBrowse" tabindex="0">

We appreciate any feedback and suggestions.
Shinu
Top achievements
Rank 2
 answered on 07 Jan 2014
2 answers
63 views
i want to add an image to all tree nodes and all nodes childs and so on in javascript ... 
how to make it please ??
Hossam
Top achievements
Rank 1
 answered on 06 Jan 2014
3 answers
160 views
At my development machine, I can run the Olympic Games Medals by Sport online demo with no problem.  I can click on any bar in the "Medals by Sport" bar chart, and it shows the label (example:  33 medals) and the "Medal Type" pie chart updates accordingly.

However, attempting to demonstrate that to my supervisor on his brand-new iPad Mini using the Safari browser, I can click on any bar and it shows the label - but the "Medal Type" pie chart does not ever update.  It only ever displays the Gold/Silver/Bronze medal breakdown for the first bar.

Does anyone know what it would take to fix this demo?  I was trying to show that the Telerik controls would work in any browser.
Dimitar
Telerik team
 answered on 06 Jan 2014
1 answer
129 views
Hi,

1. We have a form with Captcha.

2. If user try to get the audio, browser will try to get the link below: 
~/Telerik.Web.UI.WebResource.axd?type=cah&guid=84332214-d590-4e5d-8070-c903a4cf548e

3. As you can see in generated HTML, instead of audio, it generate an embed.
<div id="dp_swf_engine" style="position: absolute; width: 1px; height: 1px;"><embed style="width: 1px; height: 1px;" type="application/x-shockwave-flash" src="http://www.ajaxcdn.org/swf.swf" width="1" height="1" id="_dp_swf_engine" name="_dp_swf_engine" bgcolor="#336699" quality="high" allowscriptaccess="always"></div>


4. It happens only in this hosting package. 

5. Is it caused by the server's permission issue or other reasons?

Thanks.




Slav
Telerik team
 answered on 06 Jan 2014
3 answers
144 views
Hi,

I am having a  very strange issue. I am getting drop down as disabled only. Don't know why.

I have simply right down below code, and binding it from database
    <telerik:RadDropDownList ID="ddlChangeRole" runat="server"    AutoPostBack="true" Skin="Web20">
                               </telerik:RadDropDownList>

So, can i have a solution for the same at earliest?

Nencho
Telerik team
 answered on 06 Jan 2014
2 answers
262 views
Dear Expert,

i am getting wrong values of dropdownlist selected item when i am using item inserting command.
i bind the ddl on item created event and able to get reference in item inserting event.
please help.

Thanks

protected void RadListView1_ItemCreated(object sender, RadListViewItemEventArgs e)
        {
            if (e.Item is RadListViewInsertItem)
            {
                
                DropDownList frmyr = (DropDownList)e.Item.FindControl("drpFromYear");
                DropDownList toyer = (DropDownList)e.Item.FindControl("drpToYear");
                int yearLast = DateTime.Now.Year;
                int yearThen = yearLast - 60;
                for (int i = yearLast; i > yearThen; i--)
                {
                    ListItem list = new ListItem();
                    list.Text = i.ToString();
                    list.Value = i.ToString();
                    frmyr.Items.Add(list);
                    toyer.Items.Add(list);
                }
 
            }
 
        }
 protected void RadListView1_ItemInserting(object sender, RadListViewCommandEventArgs e)
        {
            try
            {
                RadListViewInsertItem editedItem = (RadListViewInsertItem)e.ListViewItem;
                DropDownList ddltest = (DropDownList)RadListView1.InsertItem.FindControl("drpFromYear");
                string tt = ddltest.SelectedItem.Text;(Wrong Values)
               
}
}
Rizwan Ansari
Top achievements
Rank 1
 answered on 06 Jan 2014
1 answer
70 views
Hi,

I am trying to export PDF from my RadGrid and its exporting successfully. But i am facing some design issues in the exported PDF file.

1. All the text are coming with Hyperlinks in the exported PDF.
2. Set the Forecolor and width, which are not getting reflected in the exported PDF.

Below is my c# code 

protected void btnExportToPDF_Click(object sender, ImageClickEventArgs e)
        {
            ApplyStylesToPDFExport(RadGrid1.MasterTableView);
            RadGrid1.ExportSettings.OpenInNewWindow = true;
            RadGrid1.ExportSettings.IgnorePaging = true;
            RadGrid1.ExportSettings.FileName = "Test";
            RadGrid1.MasterTableView.ExportToPdf();
        }
 
private void ApplyStylesToPDFExport(GridTableView view)
        {
            GridItem headerItem = view.GetItems(GridItemType.Header)[0];
            foreach (TableCell cell in headerItem.Cells)
            {
        switch (cell.Text)
                {
                    case "A":
                        cell.Width = Unit.Pixel(5); // Tried like this. Not reflecting
                        break;
                    case "B":
                        cell.Style["width"] = "15px"// Tried like this. Not reflecting
                        break;
        }
                cell.Style["font-family"] = "Verdana";
                cell.Style["font-bold"] = "true";
                cell.Style["text-align"] = "left";
                cell.Style["vertical-align"] = "middle";
                cell.Style["font-size"] = "8px";
                cell.ForeColor = System.Drawing.Color.Black; // Tried like this. Not reflecting
 
            }
            GridItem[] dataItems = view.GetItems(GridItemType.Item);
            foreach (GridItem item in dataItems)
            {
                foreach (TableCell cell in item.Cells)
                {
                    cell.Style["font-family"] = "Verdana";
                    cell.Style["text-align"] = "left";
                    cell.Style["vertical-align"] = "left";
                    cell.Style["font-size"] = "6px";
                    cell.Style["text-decoration"] = "none"// Tried like this. Not reflecting
 
                    cell.Style["ForeColor"] = "#000";
                }
            }
            dataItems = view.GetItems(GridItemType.AlternatingItem);
            foreach (GridItem item in dataItems)
            {
                foreach (TableCell cell in item.Cells)
                {
                    cell.Style["font-family"] = "Verdana";
                    cell.Style["text-align"] = "left";
                    cell.Style["vertical-align"] = "middle";
                    cell.Style["font-size"] = "6px";
                    cell.Style["text-decoration"] = "none";
                    cell.ForeColor = System.Drawing.Color.Black;
                }
            }
        }

Please advise.

Thanks
Ranjith
Kostadin
Telerik team
 answered on 06 Jan 2014
6 answers
98 views
Hello, I hope community and Telerik staff will help me to understand if I want too much from RadAjaxManager, and point me what I'm doing wrong.
Trying to explain to support person my problem for almost 4 days now, and still did not get any clear answer, or confirmation that behavior I'm expecting is bug or "by-design".

Anyway, I'm having RadScriptManager and RadAjaxManager controls created on my master page, and then I have this on my content page:

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
<telerik:RadAjaxManagerProxy runat="server">
 
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="cmdButton1" EventName="Click">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnl1" />
                <telerik:AjaxUpdatedControl ControlID="pnl2"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
        <telerik:AjaxSetting AjaxControlID="cmdButton2" EventName="Click">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnl2"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<asp:Button ID="cmdButton1" runat="server" Text="Button 1" OnClick="cmdButton1_Click" />
 
<asp:Panel ID="pnl1" runat="server">
 
    <asp:Button ID="cmdButton2" runat="server" Text="Button 1" OnClick="cmdButton2_Click" />
    <asp:Label ID="lblPnl1" runat="server" />
</asp:Panel>
 
<asp:Panel ID="pnl2" runat="server">
    <asp:Label ID="lblPnl2" runat="server" />
</asp:Panel>
 
</asp:Content>

and this is code I have in code-behind

protected void Page_Load(object sender, EventArgs e)
{
  lblPnl1.Text = lblPnl2.Text = DateTime.Now.ToString();       
}
 
protected void cmdButton1_Click(object sender, EventArgs e)
{
  //do nothing Page_Load will update content of labels
}
 
protected void cmdButton2_Click(object sender, EventArgs e)
{
  //do nothing Page_Load will update content of labels
}

As you can see I have 2 buttons, and I defined for them 2 AjaxSettings inside RadAjaxManagerProxy
So, according to these settings I'm expecting the following behavior:

1. When button cmdButton1 is clicked - RadAjaxManager should refresh my pnl1 and pnl2 Panels
2. When button cmdButton2 is clicked - RadAjaxManager should only refresh my pnl2 Panel.

However, when I'm clicking cmdButton2 - BOTH panels beeing refreshed.

If I remove AjaxSetting for button1 and click button2 - things starting work as expected (e.g. pnl1 is not refreshing)

So it seems that AjaxSetting for button1 somehow forces RadAjaxManager to refresh pnl1, even when button1 was not clicked.

Is this expected? Or bug? What you guys think? What behavior you would expect?

I gave up trying to explain why I think this is bug to support person :(

Maybe I don't understand something?

Thanks!
Maria Ilieva
Telerik team
 answered on 06 Jan 2014
3 answers
97 views
Hi,
I m using Rad Scheduler with My Custom Skin , when i try to add New Appointment I getting the following Error , To Overcome this issue which Class i need to change

Microsoft JScript runtime error:

Sys.WebForms.PageRequestManagerServerErrorException: Telerik.Web.UI.RadCalendar

with ID='SharedCalendar' was unable to find embedded skin with name 'Blue'.

Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin,

set EnableEmbeddedSkins=false..

Ivan Zhekov
Telerik team
 answered on 06 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?