Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
146 views
Hi,

When inserting an image into the editor and clicking on the Imafe Editor icon I get "Image not found" when saving the image.  This only seems to happen when the image is in a different site to the one that the editor is running in.  For example my config looks like this:

  <property name="ImagesPaths">
    <item>PublishingImages</item>
    <item>/Global/Image/UserLibrary</item>
  </property>

If I'm trying to save the image to the "PublishingImages" library which is under the same site as the page I'm editing it all works OK.  If I'm editing an image that was in the second path I get the error.  The user I am editing the page as has full control (farm admin rights even!) to both sites.

Any ideas?

Thanks
Stanimir
Telerik team
 answered on 05 Oct 2011
5 answers
222 views

Hi,
   I'm trying to change tooltip content text font and color. I use the online StyleBuilder to produce a custom skin file, set the skin file directory,register it in the script and setting both "EnableEmbededSkin" and "EnableEmbededBaseStyle" to FALSE follow the skinning chapter in the tutorial. After setting the SKIN property to the custom skin name, nothing happens. I even tried changing the SKIN property to some unknown name like 'abcfff' the same tooltip style got displayed as if some thing was preset. Are there other properties must be set in order to apply custom skin for RadToolTipManager? 
   Also, I felt that the RadTooltipManager is not like the RadToolTip. I made a simple trial; using the embeded skin. I tried few different skin and there seemed no difference in tooltip appearance. And when I set the ManualClose property the tooltip appeared with no close button.
please refer to the attached test file.

Thank you!

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="iBOOKSTORE.WebForm1" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
 
</head>
<body>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
     <asp:TextBox ID="TextBox1" runat="server" Height="108px" Width="353px"
            TextMode="MultiLine" ToolTip="Show this in tooltip content">
            Move mouse over this control to show tooltip
     </asp:TextBox>
    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"
        Skin="Black" ManualClose="True">
    </telerik:RadToolTipManager>
    </form>
</body>
</html>

Marin Bratanov
Telerik team
 answered on 05 Oct 2011
1 answer
100 views
Hi,

In my webpage , has 3 RadGrids

one is Sourcegrid and another two grids are destination grids

when i want to drag n drop 1 row from source to destination , in the first destination grid working fine.
but the second destination grid when i drop a row i am getting Destdataitem as null.

can any body help me in this...please it is urgent....


Regards
Saikiran
Tsvetina
Telerik team
 answered on 05 Oct 2011
1 answer
89 views
when using checkboxs if you have a item set to isseperator then remove the checkbox from that option.
Kalina
Telerik team
 answered on 05 Oct 2011
2 answers
114 views
Hi,
I design image galery with rotator.i test it on ie its working.but click event doesnt work on firefox?Any opinion?

 protected void ShowImage(object sender, RadRotatorEventArgs e)
    {
        ImageButton img = e.Item.FindControl("ImageButton1") as ImageButton;
        Image1.ImageUrl = img.ImageUrl;
    }
 <telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="EntityDataSource1"
            Width="100%" RotatorType="Buttons" Skin="Vista" Height="70px" OnItemClick="ShowImage">
            <ItemTemplate>
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "CARDURL")%>'
                    Width="70px" Height="70px"/>
            </ItemTemplate>
        </telerik:RadRotator>
Slav
Telerik team
 answered on 05 Oct 2011
1 answer
103 views
in the example below I would like to have an ability to add a new  empty row every time
"add new record" is clicked and then roll through somekind of  "new items" collection to grab
all info entered and save to db  in one bulk transaction. Is this possible ?

 in the example It only allows to add one empty record and nothing happens when
"add new record" is clicked again. I also can not figure out how to get  that new record (before it is saved in db)
from outside of the grid, like from some button click. The Grid.Items collection does not reflect that new empty
record and EditItems is also empty.

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx



Radoslav
Telerik team
 answered on 05 Oct 2011
3 answers
73 views
I've hierarchy  grid with a runtime controls in the details of each row,
There's a checkbox control in the last column.
and there's a textbox and a validator in the second column
------------------------------------------------------------------------------------------------------------------------------------
Label with name Please type a valuePlease Enter Only Numbers
-------------------------------------------------------------------------------------------------------------------------------------
All these controls are runtime controls built in the "_ItemDataBound" event.
-------------------------------------------------------------------------------------------------------------------------------------
 if (e.Item is GridDataItem)
            {
                if (e.Item.OwnerTableView.Name == "GroupPoints")
                {
                            RequiredFieldValidator rv = new RequiredFieldValidator();
                            rv.ID = "RequiredFieldValidator4";
                            rv.ControlToValidate = "txtPointValue";
                            rv.Display = ValidatorDisplay.Dynamic;
                            rv.ErrorMessage = "Please select a value";
                            rv.CssClass = "validator";
                            rv.ValidationGroup = "CallID";
                            rv.InitialValue = "";
                            e.Item.Controls[3].Controls.Add(rv);

                           TextBox txt = new TextBox();
                            txt.ID = "txtPointValue";
                            txt.Width = 100;
                            e.Item.Controls[3].Controls.Add(txt);

                    TextBox txtNotes = new TextBox();
                    txtNotes.ID = "txtNotes";
                    txtNotes.TextMode = TextBoxMode.MultiLine;
                    txtNotes.Width = 250;
                    e.Item.Controls[4].Controls.Add(txtNotes);

                    CheckBox chkbxNotApplicable = new CheckBox();
                    chkbxNotApplicable.ID = "chkbxNotApplicable";
                    chkbxNotApplicable.Text = "Not Applicable";
                    chkbxNotApplicable.AutoPostBack = true;
                    chkbxNotApplicable.CheckedChanged += new EventHandler
                        (chkbxNotApplicable_CheckedChanged);
                    
                    e.Item.Controls[5].Controls.Add(chkbxNotApplicable);

                }
            }
--------------------------------------------------------------------------------------------------------------------------------------
The check box has "_CheckedChanged" event that do what I want server side.
---------------------------------------------------------------------------------------------------------------------------------------
 protected void chkbxNotApplicable_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox chkbxNotApplicable = (CheckBox)sender;
            GridDataItem item = (GridDataItem)((GridTableCell)chkbxNotApplicable.Parent).Parent;
            RequiredFieldValidator validator = ((RequiredFieldValidator)((Control)item["Pointvalue"].Controls[0]));
            validator.Enabled = !chkbxNotApplicable.Checked;
        }
---------------------------------------------------------------------------------------------------------------------------------------
I want to access the "RequiredFieldValidator4" javascript and disable it if the user check the chkbxNotApplicable checkbox.
I mean, I want to do the same job of the chkbxNotApplicable checkbox using javascript not a server side code.

Is it possible?

Thank you.
Mohamed
Top achievements
Rank 2
 answered on 05 Oct 2011
1 answer
84 views
I have a radGrid on a ASP.NET page.  If the user clicks a row in the readonly radgrid and all rows in the grid are not fully visible in the browser (i.e. need to scroll IE to see the rest of the grid), the radgrid will shift its location up in the IE page so that the entire grid is visible.  In other words, the IE page jumps when clicking a row in the radgrid.  I don't want the screen to jump in this manner.  Is there a Telerik grid setting that can be changed to prevent this behavior?
Pavlina
Telerik team
 answered on 05 Oct 2011
1 answer
68 views
During one of the recent updates a small display bug was introduced when using the fileexplorer with the windows 7 skin.
The skins sets a blue-ish background on the file list, which makes the highlight on hovering over a file display incorrectly and very confusing.

It can be easily verified on the file explorer demo's when setting the skin on windows 7.

The offending style is ".RadGrid_Windows7 .rgRow { background-color: #ebeff3; }"

While it is easy to override with a css, I've been unable to apply this fix for the file explorers used in the dialogs of the RadEditor, since they are displayed in an iframe and my stylesheets are not applied there.
Dobromir
Telerik team
 answered on 05 Oct 2011
1 answer
87 views
hi all :)

I have a list view, and I want to set some parameters to some controls

i have this function

void RadListBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
        Literal1.Text = YouTubeScript.Get(RadListView1.SelectedItems[0].GetDataKeyValue("Video_Path").ToString(), auto, _W, _H);
        Label1.Text = RadListView1.SelectedItems[0].GetDataKeyValue("Video_Path").ToString();
    }


and when I write this line at page_load, I got his error:

http://msasoftware.net//Hamza/Pics/Programmingproblems/problem874564.png


how can I fix it ?
Mira
Telerik team
 answered on 05 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?