Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
266 views
I have 2-level menus and the second level menus have many menus. I have a window media player right below the menu. So when the second level menus are pulled out, some of them are behind the window media player.

How can I set the menu to always be on top of other elements on a page?

Thanks
Brew
Yana
Telerik team
 answered on 13 Dec 2010
1 answer
113 views
I have a form which user enters a main Sales Order number as a "main key". This key is used to fetch data and display it on a gridview. In the same form, users can enter multiple other keys. This is when a customer has multiple sales order associated with a project.

1. Can I popolulate the data in the gridview in multiple key?
2. If this can be done only programatically, how to I keep appending the dataset on every data fetch before binding it to the grid?

Thanks in advance.
Radoslav
Telerik team
 answered on 13 Dec 2010
1 answer
74 views
Hi there,

After I refresh the browser when the vertical bar is visible, the position of series is a couple of inches below the chart. So how can I update the position in Javascript, or JQuery?

Thanks,

Nazmi
Yavor
Telerik team
 answered on 13 Dec 2010
2 answers
175 views
First let me say, our company and developers complettly love your products. It speeds up a lot of our development time. I have a problem with implementing a background image into the radtabstrip controller for a DotNetNuke site. Here is my HTML:
<div class="menusplittop">   
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="" 
        MultiPageID="RadMultiPage1" SelectedIndex="0" EnableEmbeddedSkins="false">
                <Tabs>
                    <telerik:RadTab runat="server" Width="108px" Height="46px" CssClass="activeCourses"
                        SelectedCssClass="activeCoursesSelected" Selected="True">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Width="108px" Height="46px" CssClass="inactiveCourses" 
                        SelectedCssClass="inactiveCoursesSelected">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
</div>

and here is my CSS snippet:
.activeCourses
        {
            background-image: url(img-blue/activeoff.png);
            width:108px;
            height:46px;
        }
          
        .inactiveCourses
        {
            width:108px;
            height:46px;
            background-image: url(img-blue/inactiveoff.png);
        }
          
        .activeCoursesSelected
        {
            background-image: url(img-blue/activeon.png);
        }
  
        .inactiveCoursesSelected
        {
            background: url(img-blue/inactiveon.png);
        }

The image is showing up when I view the tab is design mode of Visual Studio but when I actually build and run the site, the background image is not displaying. The tabs themselves are there b/c I can click them but no image in the background. Is there something I am doing wrong?  
Yana
Telerik team
 answered on 13 Dec 2010
1 answer
124 views
Hello,

Is it possible to have RADSTRIP IN EDITFORM INSIDE RADGRID with EditMode="EditForms". My idea is to NOT have the form too big in height and instead have two to three Tabstrips which should populate when the EditCommand is fired?

If so, Can you please give working example(s)?

Thanks,
Sanjay
Shinu
Top achievements
Rank 2
 answered on 13 Dec 2010
1 answer
62 views
Can the PagerTextFormat be used to align the buttons to the right of the pager?  If so, how?
Princy
Top achievements
Rank 2
 answered on 13 Dec 2010
1 answer
219 views
Greetings,

I've been trying to something similar as described in this url (http://www.telerik.com/help/aspnet-ajax/grddefaulteditmodeforgriditemsoninitialload.html) but with a different approach.

I've got a Radgrid with an EditForm, which besides textboxes and other controls, has another Radgrid that needs to be in edit mode on load.

The problem is that I can't directly make reference to this lattest Radgrid because of being inside an edit form.

<telerik:RadGrid runat="server" EditMode="EditForms">
 <EditFormSettings EditFormType="Template">
  <FormTemplate>
   <table>
    <tr>
     <td>                                        
      <telerik:RadGrid runat="server">
       <MasterTableView CommandItemDisplay="Top" EditMode="InPlace">
        <Columns>
         <telerik:GridBoundColumn HeaderText="Company"/>
         <telerik:GridCheckBoxColumn UniqueName="View" HeaderText="View" DataField="View"/>
         <telerik:GridCheckBoxColumn UniqueName="Edit" HeaderText="Edit" DataField="Edit"/>
        </Columns>
       </MasterTableView>
       <ClientSettings Selecting-AllowRowSelect="true"/>
      </telerik:RadGrid>
     </td>
    </tr>
   </table>
  </FormTemplate>
 </EditFormSettings>                    
</telerik:RadGrid>

Any thoughts would be appreciated.

Best Regards,

Francisco
Princy
Top achievements
Rank 2
 answered on 13 Dec 2010
2 answers
180 views
Hi,

I have a server ajax control which inherits RadToolBar control, with OnInit event I popolate items from XML file (the file was taken from the Demo website, so I assume it's format is correct) 
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports Telerik.Web.UI
  
  
  
Public Class GridCommandItem
    Inherits RadToolBar
    Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
        MyBase.OnInit(e)
        Me.LoadContentFile("ToolBar.xml")
    End Sub
     
End Class

When I place the server control on page and run the application I got the following error:

Server Error in '/' Application.
--------------------------------------------------------------------------------
  
<ToolBar xmlns=''> was not expected. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.InvalidOperationException: <ToolBar xmlns=''> was not expected.
  
Source Error
  
  
Line 14:     Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
Line 15:         MyBase.OnInit(e)
Line 16:         Me.LoadContentFile("ToolBar.xml")
Line 17:     End Sub
Line 18:    
   
  
Source File: D:\Profiles\bah029\My Documents\Visual Studio 2008\Projects\CommonServerControls\GridCommandItem.vb    Line: 16 
  
Stack Trace: 
  
  
[InvalidOperationException: <ToolBar xmlns=''> was not expected.]
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderGridCommandItem.Read1_GridCommandItem() +259
  
[InvalidOperationException: There is an error in XML document (2, 2).]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +613
   System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) +102
   Telerik.Web.UI.ControlItemContainer.LoadXml(String xml) +113
   Telerik.Web.UI.RadToolBar.LoadContentFile(String xmlFileName) +99
   CommonServerControls.GridCommandItem.OnInit(EventArgs e) in D:\Profiles\bah029\My Documents\Visual Studio 2008\Projects\CommonServerControls\GridCommandItem.vb:16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
  
  

any idea how to solve it?

Avidan
Simon
Telerik team
 answered on 12 Dec 2010
1 answer
136 views
I have tried everthing to get the SelectedValue of a radCombo to work, but it always seems to have a value of "1".
I have a simple scenario, a radcombo in ASP.FormView in edit mode.

The combo definition looks like:
<telerik:RadComboBox ID="EmployeePotentialCombo" runat="server" DataSourceID="EmployeePotentialList"
    DataValueField="eptID" Text="Employee Potential:" DataTextField="eptDesc" Width="350px"
    EmptyMessage="Select Employee Potential" Label="Potential:">
</telerik:RadComboBox>

The list populates correctly.

First I tried to set the value this way:
<telerik:RadComboBox ID="EmployeePotentialCombo" runat="server" DataSourceID="EmployeePotentialList"
    DataValueField="eptID" Text="Employee Potential:" DataTextField="eptDesc" Width="350px"
    EmptyMessage="Select Employee Potential" Label="Potential:" SelectedValue='<%# Bind("eptID") %>'>
</telerik:RadComboBox>

With no results. Next attempt was with code-behind:
protected void FormView1_DataBound(object sender, EventArgs e)
{
    DataRowView drv = (DataRowView)FormView1.DataItem;
    RadComboBox combo = (RadComboBox)FormView1.FindControl("EmployeePotentialCombo");
    combo.SelectedValue = drv["eptID"].ToString();
   // combo.SelectedValue = "3";
}

Setting the value from the DataRowView (null) or forcing a value to "3" had no effect, SelectedItemValue was always "1"

Any ideas?

Update: The first scenario worked OK except for nul values from the database. Is there a way to show the empty message for nulls?
Simon
Telerik team
 answered on 12 Dec 2010
7 answers
274 views
Hello All,

I have a default button which clicks on enter key press. But if the cursor is on the RadCombo box then the enter key is not working. Please help me. I am writing the code for this.

<asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate">
    <div style="position: relative; height: 135px; width: 100%; padding-top: 5px; background-color: #ffe5ad;">
        <asp:ValidationSummary ID="VSReqTrak" ShowSummary="false" HeaderText="Please complete the required fields."
            ShowMessageBox="true" runat="server" />
        <span style="position: absolute; top: 20px; left: 0px; width: 120px; text-align: right;">
            Category: </span>
        <asp:RequiredFieldValidator ErrorMessage="" Text="*" ControlToValidate="rcbCategory"
            Style="position: absolute; top: 21px; left: 123px; height: 20px;" ID="RFVCategory"
            runat="server" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
        <telerik:RadComboBox ID="rcbCategory" runat="server" Width="210px" Style="position: absolute;
            top: 20px; left: 140px;" MarkFirstMatch="true" DataSourceID="ObjCategories" DataTextField="CategoryName"
            AllowCustomText="true" SelectedValue='<%# DataBinder.Eval( Container, "DataItem.CategoryID" ) %>'
            DataValueField="CategoryID">
        </telerik:RadComboBox>
        
            <asp:ImageButton ID="btnUpdate" ToolTip="Update" ImageUrl="~/Images/Update.gif" Text="Update"
            Style="position: absolute; top: 90px; left: 650px;" runat="server" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'
            CommandName="Update" />
        <asp:ImageButton ID="btnCancel" ToolTip="Cancel" ImageUrl="~/Images/Cancel.gif" Text="Cancel"
            Style="position: absolute; top: 90px; left: 680px;" runat="server" CausesValidation="False"
            CommandName="Cancel" />
    </div>
</asp:Panel>
Simon
Telerik team
 answered on 12 Dec 2010
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?