Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
150 views
<asp:Image ID="imgMain" runat="server"/>
<telerik:RadToolTip ID="RadToolTip2" runat="server" TargetControlID="imgMain" Width="400px" RelativeTo="Element" EnableShadow="true" Position="BottomCenter" Animation="Slide"            AnimationDuration="300" ShowDelay="200" Skin="Vista" HideEvent="LeaveToolTip">
</telerik:RadToolTip>

Hi im using the RadToolTip as above.
Im also adding a Image inside the RadToolTip at runtime, the ImageUrl of this Image is set via my own custom Image Handler which is used within the site and works fine.

When the user hovers over 'imgMain' the RadToolTip should show the same image but at a different size, but all im getting is the RadToolTip showing the title.
If i hard code the Image Urls into the Image inside the RadToolTip is shows fine so i know its not a problem with my ImageHandler.

Is there any known issues with dynamically showing images from a Image Handler iside a RadToolTip?

My Server side code is below
imgMain.ImageUrl = String.Format("~/dbimagehandler.ashx?record=product&empty=showt&imageno=1&recno=-1&wid={0}&hgt={1}&productid={2}", "188", "196", this.ProductId)
 
imgMain.AlternateText = ds.Ds.Tables["Table"].Rows[0]["Title"].ToString();
imgMain.ToolTip = ds.Ds.Tables["Table"].Rows[0]["Title"].ToString();
 
RadToolTip2.TargetControlID = imgMain.ID;
Image imgsmall = new Image();
imgsmall.ImageUrl = String.Format("~/dbimagehandler.ashx?record=product&empty=showt&imageno=1amprecno=-1&wid={0}&hgt={1}&productid={2}", "376","392", this.ProductId);
RadToolTip2.Controls.Add(imgsmall);

Any help on this would be mcuh apreciated.

Neil
Top achievements
Rank 1
 answered on 21 Sep 2011
3 answers
137 views
Hello,

     I have a aspx page in Sharepoint with some buttons, labels e.t.c. I am using radajaxmanager for ajax operation. But ajax will not work in this page. if I creating ordinary wesite ajax will work properly. But  didnt work  as a sharepoint site. Please give the solution for this problem.
Maria Ilieva
Telerik team
 answered on 21 Sep 2011
3 answers
192 views
Hi, on my grid in edit mode, i would like to disable a check box if it is already checked so it can not be changed. How can I do this?

Thanks
Maria Ilieva
Telerik team
 answered on 21 Sep 2011
1 answer
202 views
Hi,

I'm using a rad grid to show line items for an invoice. Each row has an image button column used to delete the row when clicked.
I prefer to do this on the client and everything works fine until I call rebind to update the grid. It just doesn't work.The results in my data store show's the row has been delete. I am using a content page if that makes a difference. Here is my code. Thanks for your help.
function DeleteRow() {
             EstimateWebService.DeleteEstimateItems(rowId.Id, OnDeleteRowSucess)
         }
function OnDeleteRowSucess() {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
         }
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                    EnableViewState="false" onajaxrequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnAddNewRow">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                  <telerik:AjaxSetting AjaxControlID="grdEstimateItems">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                </AjaxSettings>
           </telerik:RadAjaxManager>
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "Rebind")
    {
        //RadGrid1.MasterTableView.SortExpressions.Clear();
        //RadGrid1.MasterTableView.GroupByExpressions.Clear();
        grdEstimateItems.Rebind();
    }
}
Iana Tsolova
Telerik team
 answered on 21 Sep 2011
5 answers
269 views
Have four Charts ,2nd chart changes on the click event of 1st  and 3rd on second and so on.
The third Chart is having the horizontal scroll bar ,but here the click event is not firing !!!!!!!

please help

prasanth
Giuseppe
Telerik team
 answered on 21 Sep 2011
4 answers
414 views
I have a dataset coming back that has 2 columns with Y or N values that indicate whether someone received a packet and whether or not they attended an event.

I need to have a checkbox in the datagrid that is checked if the value is "Y" and not checked if the value is "N"
The problem I'm having is I can't even get the checkboxes to show up in the datagrid, and since they aren't there, when I try to set the checkbox in the code behind, the chkBox object is nothing, so it throws an error.

Here's my datagrid:
<telerik:RadGrid ID="RadGrid1" OnSortCommand="RadGrid1_SortCommand" EnableViewState="true" MasterTableView-RetrieveAllDataFields="false" MasterTableView-CanRetrieveAllData="false" EnableEmbeddedSkins="false" runat="server" AllowPaging="true" AllowSorting="true" Width="930px" Height="150px" PageSize="25">
    <ClientSettings ClientEvents-OnRowDblClick="dblClickRow" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="false" Scrolling-AllowScroll="true" Scrolling-SaveScrollPosition="true" Scrolling-UseStaticHeaders="true"></ClientSettings>
    <SelectedItemStyle CssClass="grdSelectedRowStyleDefault" Font-Underline="false" />
    <MasterTableView AutoGenerateColumns="False" RetrieveAllDataFields="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false">
        <PagerStyle CssClass="Label" Mode="NumericPages" HorizontalAlign="right"></PagerStyle>
        <HeaderStyle CssClass="grdHeaderStyleDefault" BackColor="#CE0042" ForeColor="White" ></HeaderStyle>
        <ItemStyle CssClass="grdRowStyleDefault"></ItemStyle>
        <AlternatingItemStyle CssClass="grdRowAlternateStyleDefault"></AlternatingItemStyle>
        <NoRecordsTemplate><table width="100%"><tr><td align="center"><asp:label runat="server" ID="lblNoRec" Font-Bold="false" Font-Size="small" ForeColor="Black" CssClass="label" BackColor="Gainsboro">No Data To Display.</asp:label></td></tr></table></NoRecordsTemplate>
        <Columns>
            <telerik:GridBoundColumn DataField="REGISTRATIONID" Display="false" DataType="System.String">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="EVENTID" Display="false" DataType="System.String">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ACCOUNTID" HeaderStyle-Width="75px" HeaderText="<span title='Account ID'>Account ID</span>" DataType="System.String">
                <ItemStyle Width="75px" Height="20px" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="LASTNAME" HeaderStyle-Width="150px" HeaderText="<span title='Last Name'>Last Name</span>" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Underline="false" DataType="System.String">
                <ItemStyle Width="150px" Height="20px" BorderStyle="Solid" BorderWidth="1px" Wrap="false" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FIRSTNAME" HeaderStyle-Width="135px" HeaderText="<span title='First Name'>Last Name</span>" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Underline="false" DataType="System.String">
                <ItemStyle Width="135px" Height="20px" BorderStyle="Solid" BorderWidth="1px" Wrap="false" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridNumericColumn  DataField="PLEDGEAMOUNT" HeaderStyle-Width="70px" HeaderText="<span title='Pledge Amount'>Pledge</span>" HeaderStyle-HorizontalAlign="Right" DataType="System.Decimal" NumericType="Currency">
                <ItemStyle Width="70px" Height="20px" HorizontalAlign="Right" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridNumericColumn >
            <telerik:GridNumericColumn  DataField="PAID" HeaderStyle-Width="70px" HeaderText="<span title='Paid'>Paid</span>" HeaderStyle-HorizontalAlign="Right" DataType="System.Decimal" NumericType="Currency">
                <ItemStyle Width="70px" Height="20px" HorizontalAlign="Right" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridNumericColumn >
            <telerik:GridBoundColumn DataField="TEAMCODE" HeaderStyle-Width="100px" HeaderText="<span title='Team Code'>Team Code</span>" DataType="System.String">
                <ItemStyle Width="100px" Height="20px" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REGISTRATIONDATE" HeaderStyle-Width="75px" HeaderText="<span title='Registration Date'>Reg Date</span>" DataType="System.String">
                <ItemStyle Width="75px" Height="20px" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridBoundColumn>
             
    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn1" HeaderStyle-Width="25px" HeaderStyle-HorizontalAlign="Center" HeaderText="<span title='Packet Sent'>P</span>">
        <EditItemTemplate>
            <asp:CheckBox ID="chkPACRECIND" AutoPostBack="false" runat="server" />
        </EditItemTemplate>
        <ItemStyle Width="25px" BorderStyle="Solid" BorderWidth="1px" />
    </telerik:GridTemplateColumn>
    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn2" HeaderStyle-Width="25px" HeaderStyle-HorizontalAlign="Center" HeaderText="<span title='Attended'>A</span>">
        <EditItemTemplate>
            <asp:CheckBox Runat="server" ID="chkATTIND" />
        </EditItemTemplate>
        <ItemStyle Width="25px" BorderStyle="Solid" BorderWidth="1px" />
    </telerik:GridTemplateColumn>
 
 
            <telerik:GridBoundColumn DataField="PACKETSENTDATE" HeaderStyle-Width="75px" HeaderText="<span title='Packet Sent Date'>Packet Sent Date</span>" DataType="System.String">
                <ItemStyle Width="75px" Height="20" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BIBTEXT" HeaderStyle-Width="75px" HeaderText="<span title='Bib Number'>Bib Number</span>" DataType="System.String">
                <ItemStyle Width="75px" Height="20" BorderStyle="Solid" BorderWidth="1px" Wrap="false" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ATTENDEDIND" Display="false" DataType="System.String">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PACKETRECEIVEDIND" Display="false" DataType="System.String">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

The last 2 columns are hidden and contain the Y/N value. I can get that value in the ItemDataBound Sub, but I can't find the checkbox, so the chkBox.Checked = True/False step errors.  If I skip setting the checkbox value, the grid loads, and I see the two checkbox columns, but the columns are empty.

lstr_PacketReceived = item("PACKETRECEIVEDIND").Text
Dim
chkBox As CheckBox = DirectCast(e.Item.FindControl("CheckBox1"), CheckBox)
If Not (lstr_PacketReceived Is Nothing) Then
    If lstr_PacketReceived.Equals("Y") Then
        chkBox.Checked = True
    Else
        chkBox.Checked = False
    End If
End If

Any idea what I'm doing wrong here?  I'm sure it's something simple, I just can't seem to figure this on out.
Thanks
Tim
Top achievements
Rank 1
 answered on 21 Sep 2011
2 answers
97 views
Greetings,

I have a requirement for an application where there are several controls (dropdown, textbox, etc..) and when the user clicks "+Add" another line of the same controls is supposed to be added to the page without a post (ajax). Can I use any of the Ajax RadControls to accomplish this?

Thanks for suggestions.
Christopher
Top achievements
Rank 1
 answered on 21 Sep 2011
1 answer
112 views
Hi...

i am developing one website using radcontrols.

in that i added rad rotator....it contains list of images and details

then i have a list of small images.if i click a any one image corresponding details will be disply in rotator..so i used initialitemindex..

but problem is...in that rotator button is there..if i used initialitemindex after that i could not click that button...after i frame only i can click this..

so pls give me a solution for this..

i have attached images
Slav
Telerik team
 answered on 21 Sep 2011
6 answers
213 views
HI,
    I am showing thumbnails of images(stored in ~\images\thumbnails\xyz_thumbnail.jpg) in RadRotator and when anybody drags and drops the thumbnail from the rotator into radeditor, then I need the main image(~\images\xyz.jpg) to be placed into the rad editor and not the thumbnail. Can anybody suggest the event in which I can do this and how?
Rumen
Telerik team
 answered on 21 Sep 2011
1 answer
58 views
 
Hi,
 I want to handle the event when user is dragging and dropping content( the content should be div) inside content area, How should i attach event to the OnDragEnd event of the content area's document. Anyone could give me an example with sample project. I am very much trouble with that as i need to confirm it to my CTO so that he might bought this product. Still i am not sure that is it possible to drag and drop content inside Red editor content area. If it is possible then will it be cross browser comfortable. Please advice if possible with sample code and project.

Thanks,
Rashim
Rumen
Telerik team
 answered on 21 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?