Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
64 views
Hi,

First, let me explain the setup:
  • I am using the most recent 2011 version of Telerik Web.UI
  • The page is being developed for IE7 (though the same error occurs in Firefox 3.6).
  • In the code-behind, I am dynamically setting the OffsetY property of all GroupSettings objects so that all submenus fly-out at a consistent location (i.e., aligned with the top of the root menu, rather than lined up with the menu item that spawned them). 
  • I am dynamically setting the Height property as well, so that all submenus display at a consistent height. 
  • I have EnableAutoScroll and EnableScreenBoundaryDetection both set to false.

The problem occurs whenever a height is explicitly set for submenu groups.  It occurs both when it is set via each subgroup's GroupSettings.Height property (as I am doing), and when it is set via the DefaultGroupSettings-Height property. 

What happens is, whenever the browser is shrunk so that the menus would run off the page, the menus are automatically shrunk so as to fit on the page and scrollbars are added.  This is despite EnableAutoScroll and EnableScreenBoundaryDetection being false.  If a height is not explicitly set, this does not occur, and the menus simply go off the screen as expected.  What makes this issue worse is that if the browser is then enlarged so that the menus would no longer be going off the screen, the menus stay shrunk.

What's happening appears to be that, if and only if a height is explicitly assigned to a submenu group, some sort of screen boundary detection kicks in and resets the height of the menu so that it will fit on the screen.  Next, because the height of the menu is now too small to fit all of the items, scroll bars are automatically added.  When the browser window is then expanded, the height is never set back to what it originally was, and stays small with scroll bars.

I've attached a few images to show what I am talking about.

Is this indeed a bug?  It seems like it can't possibly be the intended functionality (edge boundary detection is occurring and scroll bars are automatically being added despite both being told not to do so).  Am I just missing some other parameter that would stop this from happening?

If this is a bug, is there any good way to work around this until it is fixed?  I have attempted, amongst other things, to reset the height of the submenu group on the client side in the OnClientItemOpening event using eventArgs.get_item().get_groupSettings().set_height(), but it appears as if altering this value does not have any affect once the menu has been rendered.  I've even gone so far as trying to work outside the API, using the eventArgs.get_item().get_element() function to access the actual DOM element, then using JavaScript to access the child DIV being used to represent the subgroup and manually setting its style element.  However, with the way that items are dynamically added and removed to the page, this has proven unreliable.

Lastly, is there anywhere where I can access a complete client-side API?  The best I've found in the help manuals is this page, which itself says it only has "the most important methods", and doesn't even contain things like item().get_groupSettings().  Further, I've seen in these help forums the use of other attributes, like item._slide, which as far as I can tell are undocumented.

I really appreciate any help you can provide!

Thanks,
Kevin
Kate
Telerik team
 answered on 21 Apr 2011
1 answer
116 views
Hello Telerik,

I want to set a margin between two docks, now the first dock's bottom is too close to the second dock's top.I try to get it with css like this:

.RadDock .rdBottom{border-bottom:10px solid #fff; }

,but it doesn't work well, after collapse/expand it, the magin size was changed.How should I do? thanks
Big Q
Top achievements
Rank 1
 answered on 21 Apr 2011
2 answers
107 views
I have a situation similat to that in the "Copy A Record" post where I want to duplicate a records. But here is the hook, I want to take the selected record's data and populate the EditFormSettings FormTemplate without creating a new record until the user adds it. For example, I have a table with flight information for multiple users and instead of having to retpye each record I want to use the previous record data.

My initial thought was to add a button to the row and on the click expand the FormTemplate and populate the data. Is that the only way or is there an easier way. Really don't feel like wasting time on a Friday afternoon!
Mira
Telerik team
 answered on 21 Apr 2011
9 answers
103 views
After adding all the Telerik entires into the web.config of my SharePoint 2010 site the Teleirk controls were working fine. Problem was, I kept noticing other issues like, not being able to connect to the site with SharePoint Designer 2010 (it kept asking for credentials) and not being able to create a new view (was getting error: Cannot complete this action. Please try again.) After many, many hours troubleshooting by several people we were able to narrow it down to the Telerik entries in the web.config. After a couple more hours I discovered that it was directly caused by the RadCompressionModule entry in the web.config. After removing this entry, everything worked great.

Hope this saves someone else some time!
Thanks.
John Perry
Nick Larter
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
271 views
Hello Team,

        I have used RadGrid in my web page, now i had implement the headercontextmenu for RadGrid and its working well,

       Now on my grid each row have three command button (edit, delete, view log).

       Now is it possible to apply context menu for each row ??, where menu contains all these three command button.

       If user select grid row then on right click on selected row our context menu will get popup with delete, edit, view log link. and perform appropriate operation on selection of menu item.

Please help me.

Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Apr 2011
9 answers
405 views

Hello,

        I have create a Pie chart with following Dataset schema

       

        CallPriorityCode   CallPriorityName  NoOfCalls
                  1                          Low                  8
                  2                          Medium            10
                  3                          High                  2
 
      I want to show Pie chart with Percentage value ( Of NoOfCalls Data) as Lable and Call Priority Name in Legend Area.

     But I can Show either of them only, I can not set "CallPriorityName " to DataYColumn Property
     as this property requires Integer Data .

    MY Code :-
    

 

<

telerik:RadChart ID="radchartCallsByPriority" runat="server"

 

 

 

 

Skin="LightGreen" AutoLayout="true" Height="250px" Width="450px" PlotArea-EmptySeriesMessage-TextBlock-Text="No calls found" >

 

 

<Series>

 

 

 

 

<telerik:ChartSeries Name="No. Of Calls" Type="Pie" DefaultLabelValue="#%" DataYColumn="NoOfCalls" Appearance-LabelAppearance-LabelLocation="Inside" Appearance-LegendDisplayMode="ItemLabels" Appearance-LabelAppearance-Visible="true">

 

 

</telerik:ChartSeries>

 

 

 

 

</Series>

 

 

<PlotArea>

 

 

 

 

<XAxis Appearance-LabelAppearance-RotationAngle="-45" Appearance-TextAppearance-AutoTextWrap="False" AxisLabel-TextBlock-Appearance-TextProperties-Font="20px">

 

 

 

 

</XAxis>

 

 

 

 

</PlotArea>

 

 

<ChartTitle>

 

 

 

 

<TextBlock Text="Calls By Priority" Visible="false" />

 

 

 

 

</ChartTitle>

 

 

 

 

</telerik:RadChart>


  Any Help would be Higly appreciated.

  Thanks in Advance


 ----------------------------------------------------
Ajay

 

Steve
Telerik team
 answered on 21 Apr 2011
3 answers
222 views
I need to change the Series Item Label text font, size, and color. How can I do this programmatically?

Ves
Telerik team
 answered on 21 Apr 2011
2 answers
90 views
hello,
i am testing the funcionality of the Scheduler and would like to know if its possible to remove items from the ContextMenu, such as
"Go to Today" and "Show 24 hours" and if it's possible, how ?
Noé
Top achievements
Rank 1
 answered on 21 Apr 2011
8 answers
482 views

hi telerik team,

i am unable to do filtering in rad grid.Can you please tell me what i am doing wrong.

<telerik:RadGrid runat="server" ID="filteringRadGrid" OnNeedDataSource="filteringRadGrid_NeedDataSource"
AutoGenerateColumns="false">
<MasterTableView EditMode="InPlace" AllowFilteringByColumn="true">
<Columns>
<telerik:GridTemplateColumn HeaderText="Date" UniqueName="ShippedDate">
<ItemTemplate>
<asp:Label ID="dateLabel" runat="server" Text='<%#Eval("date")%>'></asp:Label>
</ItemTemplate>
<FilterTemplate>
  <telerik:RadDatePicker ID="filterRadDatePicker" runat="server" Width="100px" ClientEvents-OnDateSelected="DateSelected" />
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

<script type="text/javascript">
function DateSelected(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

var date = FormatSelectedDate(sender);
//alert(date);
tableView.filter("date", date, "EqualTo");
}
function FormatSelectedDate(picker) {
var date = picker.get_selectedDate();
var dateInput = picker.get_dateInput();
var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());

return formattedDate;
}
</script>

</telerik:RadScriptBlock>
</FilterTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Date Time">
<ItemTemplate>
<asp:Label ID="dateTimeLabel" runat="server" Text='<%#Eval("dateTime") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Compliance Status">
<ItemTemplate>
<telerik:RadComboBox ID="compStatusRadComboBox" runat="server">
<Items>
<telerik:RadComboBoxItem Value="0" Text="ao" />
<telerik:RadComboBoxItem Value="1" Text="bo" />
<telerik:RadComboBoxItem Value="2" Text="co" />
</Items>
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

protected void filteringRadGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("date");
dt.Columns.Add("dateTime");
dt.Columns.Add("cs");
dt.Rows.Add("1/12/2001", "1/12/2001 00:00:03 AM", "ao");
dt.Rows.Add("1/12/2002", "1/12/2002 00:00:06 AM", "co");
dt.Rows.Add("1/12/2003", "1/12/2003 00:00:09 AM", "bo");
filteringRadGrid.DataSource = dt;

}

Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
66 views
Hi Team,

I am Using Rad Grid.
And I want to Open One Popup Panel On Perticular Row, On Client Row Selection.
With The ID of Perticular Row.

How to Do it.?
Please Help .. 
Tsvetina
Telerik team
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?