Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
107 views
We ar building a new system for a customer. We use EpiServer as our base system.
Mostly we have pages and usercontrols to display and get data from the user.

My senario is as follows:

#Masterpage
   #Page
       #Panel (used as a wrapper for updated controls, eg all controls inside can be updated)
           #Cusom usercontrol A (Contains a button with a click evenhandler defined)
           #Custom usercontrol B (Basicly only a specialised RadGrid inside and properties to feed the grid datasource)

I want to bind the button on usercontrol A to update the panel on the page.
I tried the following:
RadAjaxManager1.AjaxSettings.AddAjaxSetting((Button)SearchMember.FindControl("Button1"), PanelWrapper, RadAjaxLoadingPanel1);
The event fires but no loading panel is shown and the wrapper panel is not updated (the grid does not popout as it should.
However the following does make the grid popout but it stil does not display any loading panel.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UserControl_A">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelWrapper" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" BackgroundPosition="Center" Skin="Windows7">
    </telerik:RadAjaxLoadingPanel>

Any ideeas about what im doing wrong here ?
Iana Tsolova
Telerik team
 answered on 05 Oct 2011
1 answer
68 views
Hello,

I have created a treeview with a contextmenu, the problem I am experiencing is that the contextmenu isn't positioning itself correctly.

The reason for this is that the treeview is very long and is inside a div which has set overflow to auto, so the page itselft doesn't have scrollbars, instead the div has them.
This is causing the problem.

I've tried listening to showing/shown events on the contextmenu and I have tried manipulating the position with limited success. I've also tried to do a set_cancel on showing and then running a showAt(,,) on the desired position but that only worked halfway because the event bubbled up and the browser context menu also displayed.

Hope somebody can help me with this.
Plamen
Telerik team
 answered on 05 Oct 2011
7 answers
109 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
134 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
71 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
63 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
89 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
87 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
53 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
56 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?