Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
394 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
283 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
158 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
142 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
198 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
210 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
279 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
417 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
99 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
121 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?