Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
197 views
Sometimes there are duplicate sub menu items created for no apparent reason.  Sometimes it works fine.

Say there are 3 submenu items under a parent, select one of those, move off it, go back to it a second later and those same 3 subitems have been repeated usually 1-3 times so that there are now 6-12 items under the parent.  It's also always the full set of subitems that are repeated, it's never just 1 or 2 out of the 3.

It seems to be somewhat random.  The menu is created in code and I've confirmed that code is ONLY being hit on the initial page load and not any postbacks.  The only other interaction in code with the menu is to enable or disable certain items depending on what the user had selected.

Other than the client menu item click handler, all code referencing the menu is on the server side.
Peter
Telerik team
 answered on 21 Sep 2011
5 answers
50 views
HI all,

Been working with the scheduler and using both the RadDock and the RadWindowManager to create advanced edit form for scheduler. So I am wondering which one is the recommended/best practice to use?

Thanks,

Brian 
Stuart Hemming
Top achievements
Rank 2
 answered on 21 Sep 2011
6 answers
321 views
Hi,

I have radgrid. i am using export to excelML from radgrid. i want give caption or header like "Employee Report 2011-2012". how to get set manually in code behind?

Is there any possible way this one?

Thanks,
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 21 Sep 2011
4 answers
239 views
I am getting the below error after I added the radtooltip to the rad grid, The data is bound in the code behind but the rad grid is defined in the page code, please advise how to get the radtooltip working with this set up... 
Value cannot be null. Parameter name: Cannot find a server control with ID=headerChkbox3. If you need to specify a client-side element ID, please set IsClientID to true.
<
telerik:RadGrid ID="TopicRadGrid" EnableAJAX="True" OnNeedDataSource="TopicRadGrid_NeedDataSource"  ShowHeader="true" ShowFooter="false" AllowMultiRowSelection="true"  runat="server" Width="400px">
                                                        <MasterTableView AutoGenerateColumns="False">
                                                            <Columns>
                                                                <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn3" HeaderStyle-Width="30px">
                                                                   <HeaderTemplate>
                                                                        <asp:CheckBox id="headerChkbox3"  Text="  Select All" OnCheckedChanged="ToggleTopicSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                                                                        <telerik:RadToolTip ID="RadToolTip2" runat="server"   TargetControlID="headerChkbox3" Width="250px"  RelativeTo="Element" Position="MiddleRight" EnableShadow="true" Text="Please select all the topics you want to subscribe">                                                                          
                                                                         </telerik:RadToolTip>
                                                                    </HeaderTemplate>                                            
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox id="CheckBox3"  OnCheckedChanged="ToggleTopicRowSelection"  AutoPostBack="True" runat="server"></asp:CheckBox>
                                                                        <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="CheckBox3" Width="250px"  RelativeTo="Element" Position="MiddleRight" EnableShadow="true">
                                                                           <%# DataBinder.Eval(Container, "DataItem.Description") %>
                                                                         </telerik:RadToolTip>
                                                                         <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.topic") %>'>
                                                                         </asp:Label>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings EnableRowHoverStyle="true" >                                                              
                                                        </ClientSettings>
                                                        </telerik:RadGrid>
Simba
Top achievements
Rank 1
 answered on 21 Sep 2011
2 answers
119 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
98 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
149 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
181 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
234 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
387 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
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?