Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
34 views
RadSchedular UI is getting disturbed when the user mouse hovers on the Asp.Net Menu items. The radshedular grid is expanding horizontally on every mouse hover on the menu items and looking awkward.
This issue occurs only in IE 8.  Please find the attached screen shots and let us know what is the solution for this.
Plamen
Telerik team
 answered on 18 Mar 2013
1 answer
143 views
Hello,

We are attempting to incorporate Radcontrols such as RadComboBox, RadGrid, etc. into the Kentico CMS system as Webparts (.ascx controls).  When we setup and test these controls in a non-Kentico project, they work as expected.  When we try to use them in Kentico they either don't work at all or generate errors.  For instance, we put a basic RadGrid into the .ascx and turn on filtering and sorting, and attach it to a basic SQL data source.  When the page runs, the grid displays with data from the data source, but if we try to filter or sort, nothing changes or updates in the grid.

Has anyone used Radcontrols in a Kentico CMS v6 or v7 project?  If so, any help would be greatly appreciated.  Kentico states that any standard .net controls can be used as Kentico is a .net based system, but we cannot get even basic funtionality yet.

Thanks again.
Pavlina
Telerik team
 answered on 18 Mar 2013
3 answers
321 views
Hello,

I'm using a RadToolTipManager to display a ToolTip (web user control).  I have a RadComboBox within this ToolTip 
(web user control).  The problem that I am having is that the dropdown from the RadComboBox is being displayed behind the ToolTip (web user control) instead of on top of the ToolTip. I've tried adjusting the ZIndex but to no avail.

Thanks in advance,
Quan
asp:FormView ID="DetailView" runat="server" BackColor="#EEEEEE" Width="750" style="z-index: 1;">  
    <ItemTemplate> 
        <table style="width: 670; height: 370;">  
            <tr> 
                <td> 
                    <div  align="center" style=" border:1px solid #999999; background-color:black; margin-right:20px; width:370px; height:370px; background-position:center; background-repeat:no-repeat; background-image:url('<%# Eval("LargeSize", "../../../Images/Large/{0}") %>');"> 
                    </div> 
                </td> 
                <td></td>  
                <td> 
                    <table style="float:left; width:300;">  
                        <tr> 
                            <td colspan="2">  
                                    <hr/> 
                                    <span class="TooltipDetailTitle">Caption: </span> 
                                     
                                    <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Eval("ItemCaption") %>' Width="250" BorderStyle="None" BackColor="#EEEEEE" Font-Italic="True" AutoPostBack="False">  
                                    </telerik:RadTextBox> 
                                    <br/> 
                                    <br/> 
                                      
                                    <span class="TooltipDetailTitle">Event: </span> 
                                    <asp:Label CssClass="TooltipDetailDesc" ID="Event" runat="server"><%# Eval("Event") %></asp:Label> 
                                    <telerik:RadComboBox ID="RadComboBox1" runat="server" Height="400" ZIndex="2">  
                                    </telerik:RadComboBox> 
                                    <br/> 
                                    <br/> 
 
                                    <span class="TooltipDetailTitle">Date: </span> 
                                    <telerik:RadTextBox ID="RadTextBox2" runat="server" Text='<%# Eval("DateTaken") %>' Width="250" BorderStyle="None" BackColor="#EEEEEE" Font-Italic="True" AutoPostBack="False">  
                                    </telerik:RadTextBox> 
                                      
                                    <br/> 
                                    <br/> 
 
                                    <span class="TooltipDetailTitle">File: </span> 
                                    <asp:Label CssClass="TooltipDetailDesc" ID="File" runat="server"><%# Eval("PrintSize")%></asp:Label> 
                                    <hr/> 
                                   
                                    <telerik:RadInputManager ID="RadInputManager1" runat="server">    
                                      
                                        <telerik:DateInputSetting BehaviorID="DateInputBehavior1" Validation-IsRequired="true" DateFormat="mm/dd/yyyy">  
                                              
                                            <TargetControls> 
                                                <telerik:TargetInput ControlID="RadTextBox2" /> 
                                            </TargetControls> 
                                              
                                        </telerik:DateInputSetting> 
                                                                        
                                    </telerik:RadInputManager> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                <asp:Button ID="Button1" runat="server" Text="Edit" onclick="Button1_Click"/>  
                            </td> 
                            <td> 
                                <asp:Button ID="Button2" runat="server" Text="Save" onclick="Button2_Click"/>  
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
        </table> 
 
    </ItemTemplate> 
</asp:FormView> 
uan
Hristo Valyavicharski
Telerik team
 answered on 18 Mar 2013
1 answer
83 views
I have a RadToolTip that contains a RadComboBox. When the RadToolTip shows, the RadComboBox isn't visibile until the user hovers over it. I've tried setting the z-index higher, but that doesn't help.

Also, if I have FireBug enabled, it doesn't happen. Any fix or even debugging suggestions are appreciated.
Nencho
Telerik team
 answered on 18 Mar 2013
1 answer
61 views
I am using  usercontrols inside the Telerik RadTab.I need to pass parameters into the usercontrol (to load a grid inside it).But when i am setting parameters inside in the usercontrol and running the application,application starts but end in error and prompting  the visual studio to close the program.The sample of my tab control is this

 <telerik:RadPageView runat="server" ID="PageView1">
        <div class="contactWrap">
            <uc:Cover ID="covercontrol" runat="server" />
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView runat="server" ID="PageView2">
        <uc:settingdetail ID="settingDiscount" runat="server"  />
    </telerik:RadPageView>
The application runs fine  with this code.But when I set a property inside the user control "settingdetail" such as SettingId="0" to pass it to the grid inside the usercontrol ,then above problem occurs.

Please provide a solution for it.
Thanks,
Sheharban
Nencho
Telerik team
 answered on 18 Mar 2013
1 answer
72 views
We have an assignment control that's reused throughout our project.  It contains two rad grids:  Available and Assigned.  When the user double clicks the row in one of the grids, the item is moved to the opposite grid.  This is defined as follows for the Available grid (the Assigned grid is pretty much the same, except Available is replaced with Assigned where :

 <telerik:RadGrid runat="server" ID="grdAvailableFields" SkinID="AssignmentGridWithoutPaging" OnItemDataBound="grdAvailableFields_OnItemDataBound"
Width="280px" OnNeedDataSource="grdAvailableFields_NeedDataSource" OnDataBound="grdAvailableFields_DataBound">
<MasterTableView Name="AvailableFields" DataKeyNames="Id">
<Columns>
...

</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowSelected="grdAvailableFields_OnRowSelected"
OnRowDblClick="AvailableFieldDblClick" />
</ClientSettings>
</telerik:RadGrid>

The corresponding javascript is defined as follows:

function AvailableFieldDblClick() {
    $get("<%= btnAssignField.ClientID %>").click();
}
 
function btnAssignField_ClientClick() {
    if (assignFieldEnabled) {
        ResetFieldsButtons();
        MakeFieldsDirty();
        return true;
    }
    return false;
}

This all works fine when we only have one instance of the control on the page.  However, in some cases, we have to have it twice (they're located on different tabs of a multipage control -- tab 2 and tab 5).  In these cases, when the user doubleclicks the row, the javascript that fires belongs to the last control that was created (e.g., on tab 5), even though the user was on the control that was first created.  (When the control is used multiple times on the page, there are duplicate javascript functions in the aspx code.)

For example, if Grid1 and Grid2 are on Tab1 and Grid3 and Grid4 are on Tab2, when I doubleclick G3 or G4, the item moves to the correct paired grid.  However, if I doubleclick G1 (or G2), the javascript that's fired refers to G3 (or G4) and therefore nothing happens.

Since the javascript functions are the same for each control, the browser is calling the incorrect method (e.g., the method associated with the last grid) when the user doubleclicks on the first grid.  Since this is the same control, I can't change the function name in design and expect it to make a difference in production.

How can I differentiate which function to call so that when the user doubleclicks any of the grids, the function that's executed is the one associated with the correct grid?
Andrey
Telerik team
 answered on 18 Mar 2013
7 answers
749 views
Hi: I followed the suggestions both:

http://www.telerik.com/automated-testing-tools/community/forums/aspnet/grid/radgrid-mouseover.aspx and
http://www.telerik.com/help/aspnet/grid/grdsetstyleonmouseover.html

with no success. I am currently developing against the Q1 2010 tools and every time I add the clientsettings tag or the clientsetetings-clientevents-onrowclick property of the Rad Grid the page loads but it appears as though none of the JavaScript runs. My tooltops do not pop-up, the radpanels do not resize, etc. Any help is appreciated. Thanks

            <telerik:RadToolTip ID="AlertMenuToolTip" Animation="Slide" RelativeTo="Element" Position="BottomCenter"   
                        AnimationDuration="100" ShowCallout="false" TargetControlID="AlertNoticeIcon" IsClientID="true" 
                        OffsetX="-108" OffsetY="-5" runat="server" HideEvent="LeaveToolTip">  
                <div class="AlertMenuItemContainer">  
                <Telerik:RadGrid RegisterWithScriptManager="true" ID="StudentCheckListRadGrid" AutoGenerateColumns="false" runat="server" AllowSorting="true" ClientSettings-ClientEvents-OnRowClick="javascript:alert();" 
                  AllowPaging="false" ShowHeader="false" PageSize="10" Width="100%" BorderWidth="0" ItemStyle-BackColor="#E8E8E8" AlternatingItemStyle-BackColor="White">  
                    <MasterTableView AllowMultiColumnSorting="true" AutoGenerateColumns="false" ForeColor="#4B4B4B" Font-Names="Tahoma,Arial,Verdana" Font-Size="11px">  
                    <Columns> 
                        <Telerik:GridBoundColumn DataField="" HeaderText="TaskSummaryCheckList"></Telerik:GridBoundColumn> 
                    </Columns> 
                    </MasterTableView>        
                    </telerik:RadGrid> 
                </div> 
                <div style='text-align:center;'><a href="#" ID="StudentCheckListMoreLink" OnClick="OpenStudentCheckListWindow()">view more...</a></div>  
        </telerik:RadToolTip> 
Galin
Telerik team
 answered on 18 Mar 2013
1 answer
100 views
I have a RadGrid with a TemplateColumn that contains an ItemTemplate, InsertItemTemplate & EditItemTemplate.

I am getting the attached error.

My markup is as follows for the RadComboBox in the grid:
<telerik:GridTemplateColumn DataField="description" HeaderText="Service Type" UniqueName="ServiceType">
                                <ItemTemplate>
                                    <asp:Label ID="lblServiceType" runat="server" Text='<%# Eval("description") %>'></asp:Label>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <telerik:RadComboBox ID="ServiceTypeDDLIns" runat="server" DataSourceID="SqlDataSource2"
                                        DataTextField="description" DataValueField="code" ValidationGroup="CarrierSvc"
                                        SelectedValue='<%#Bind("code") %>' />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="ServiceTypeDDLIns"
                                        ForeColor="Red" Text="*This field is required" runat="server" Display="Dynamic"
                                        ValidationGroup="CarrierSvc">
                                    </asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="ServiceTypeDDLEdit" runat="server" DataSourceID="SqlDataSource2"
                                        DataTextField="description" DataValueField="code" ValidationGroup="CarrierSvc"
                                        SelectedValue='<%#Bind("code") %>' />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="ServiceTypeDDLEdit"
                                        ForeColor="Red" Text="*This field is required" runat="server" Display="Dynamic"
                                        ValidationGroup="CarrierSvc">
                                    </asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>

My DataSource is as follows:
<asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:wmssql03Trident %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SelectServiceType" SelectCommandType="StoredProcedure"
        runat="server"></asp:SqlDataSource>

The results from my sql query is also attached with a column named "description".

I understand what the error means, but don't know why it is getting the error when I see the "description" column coming out in the SQL query.

Can someone please explain to me what I'm doing wrong so I can correct this? I am "dead in the water" with this right now and can't proceed testing until I get some insight what is the problem.....

Thanks in advance....
 
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Mar 2013
1 answer
234 views
Is it possible to dynamically create a RadButton on the client? 

I tried

var MyBtn = new Telerik.Web.UI.RadButton();

When I do this, I get an error:

Sys.ArgumentException: Value must be a DOM element.
Parameter name: element

Is it possible to do this?
Princy
Top achievements
Rank 2
 answered on 18 Mar 2013
1 answer
97 views
I have a page that has a Grid on it.  It also has a UserControl that contains a button. How do I add an AjaxSetting to the AjaxManager so that when the Button is clicked, the grid will be updated?

Thanks
Shinu
Top achievements
Rank 2
 answered on 18 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?