Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
67 views
I recently upgraded my laptop to Windows 7, and also upgraded my browser to IE9.

After installing Visual Studio (2008) I installed the RadControls (Q1 2010). Everything worked fine until I ran my application, and noticed that the FormDecorator was no longer working for buttons. More specifically, the FormDecorator does not work when a form contains multiple buttons. If there's only one button it works, but with multiple buttons nothing happens. The decorator works fine for other controls, like CheckBoxes and RadioButtons. I did turn on compatibility view to see if it was a browser issue, but that didn't make any difference.

Considering that the site uses a variation of the Sunset theme (Red, orange, brown, etc.), gray/blue buttons stick out like a sore thumb.

What can I do to fix this problem? I've included a picture to illustrate the problem, and also some code to show how I'm creating the decorators in HTML.

Thanks.

<telerik:RadFormDecorator ID="ButtonDecorator" DecoratedControls="Buttons" Skin="Sunset" RegisterWithScriptManager="true" EnableRoundedCorners="false" runat="server" />  
<telerik:RadFormDecorator ID="CheckBoxDecorator" runat="server" Skin="Sunset" DecoratedControls="CheckBoxes" EnableRoundedCorners="false" />
<telerik:RadAjaxLoadingPanel ID="DefaultLoadingPanel" runat="server" Skin="Sunset"></telerik:RadAjaxLoadingPanel>
James
Top achievements
Rank 2
 answered on 17 Mar 2011
1 answer
31 views
I am creating a pop up with the ActiveRegions for the PieChart, and when I click on the pie chart it creates a weird border around the chart.  Please help.

this is the map 
<area shape="poly" coords="100,100,174,99,174,141,141,174,100,174,58,175,25,141,24,100,24,58,58,24,99,25,141,24,174,58,174,99" alt="Open: 408" title="Open: 408" border=0 onclick="radopen('/popups/Dashboard.aspx', null);" />
Missing User
 answered on 17 Mar 2011
3 answers
136 views
I have a Telerik grid.  For each row there is a details table. The row is of type NominationTypeClass and the rows in the details table is of type Nomination.  So what this means for each nomination type there is a list of nominations.  The grid's code:

<telerik:RadGrid
   AllowPaging="true"
   AllowSorting="true"
   AutoGenerateColumns="false"
   GridLines="None"
   ID="rgMyNominations"
   OnDetailTableDataBind="rgMyNominations_DetailTableDataBind"
   OnItemDataBound="rgMyNominations_ItemDataBound"
   OnNeedDataSource="rgMyNominations_NeedDataSource"
   OnUpdateCommand="rgMyNominations_UpdateCommand"
   PageSize="5"
   runat="server"
   ShowHeader="false"
   ShowStatusBar="true">
   <MasterTableView DataKeyNames="NominationTypeID" HierarchyDefaultExpanded="true" Width="100%">
      <Columns>
         <telerik:GridTemplateColumn>
            <ItemTemplate>
               <b><asp:Label ID="lblNominationType" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.NominationType") %>' /></b>
            </ItemTemplate>
            <ItemStyle Width="100%" />
         </telerik:GridTemplateColumn>
      </Columns>
      <NoRecordsTemplate>No Nomination Types.</NoRecordsTemplate>
      <DetailTables>
         <telerik:GridTableView PageSize="5" Name="Nominations" GridLines="None" Width="100%" ShowHeader="true" DataKeyNames="NominationID">
            <Columns>
               <telerik:GridTemplateColumn HeaderText="Person / Team">
                  <ItemTemplate>
                     <asp:Label ID="lblName" runat="server" Text='<%# GetName(DataBinder.Eval(Container, "DataItem")) %>' />
                  </ItemTemplate>
                  <ItemStyle VerticalAlign="Top" Width="20%" />
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn HeaderText="Date Nominated">
                  <ItemTemplate>
                     <asp:Label ID="lblNominationDate" runat="server" Text='<%# FormatDate(DataBinder.Eval(Container, "DataItem.NominationDate")) %>' />
                  </ItemTemplate>
                  <ItemStyle VerticalAlign="Top" Width="14%" />
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action_Column">
                  <ItemTemplate>
                     <b><asp:HyperLink ID="hlEdit" runat="server" Text="Edit" /></b><br />
                     <b>
                        <asp:LinkButton
                           CausesValidation="false"
                           CommandName="Update"
                           ID="lbWithdrawnStatus"
                           runat="server"
                           Text="Withdraw"
                           OnClientClick="javascript:return ConfirmWithdrawnStatusChange();" />
                     </b>
                  </ItemTemplate>
                  <ItemStyle VerticalAlign="Top" Width="7%" />
               </telerik:GridTemplateColumn>
            </Columns>
            <NoRecordsTemplate>No Nominations.</NoRecordsTemplate>
         </telerik:GridTableView>
      </DetailTables>
   </MasterTableView>
   <ClientSettings AllowExpandCollapse="true"></ClientSettings>
</telerik:RadGrid>

Here is how I populate my rows:

protected void rgMyNominations_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
   try
   {
      if (!e.IsFromDetailTable)
      {
         rgMyNominations.DataSource = GetNominationTypes();
      }
   }
   catch (Exception ex)
   {
      // Handle exceptions
   }
}

Here is how I populate my details table:

protected void rgMyNominations_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
   try
   {
      GridDataItem gridDataItem = (GridDataItem)e.DetailTableView.ParentItem;
      if (e.DetailTableView.Name == "Nominations")
      {
         int nominationTypeID = int.Parse(gridDataItem.GetDataKeyValue("NominationTypeID").ToString());

         List<Nomination> nominations = new List<Nomination>();

         // For each nomination type, add the nomination
         foreach (Nomination n in myNominationsList)
         {
            if (n.NominationType.NominationTypeID == nominationTypeID)
            {
               nominations.Add(n);
            }
         }

         e.DetailTableView.DataSource = nominations;
      }
   }
   catch (Exception ex)
   {
      // Handle exceptions
   }
}

I have an action column that has a link that says Withdrawn.  When clicked I have a JavaScript confirm box with a Yes or No option.  If yes, then the nomination status is updated to withdrawn.  Then I want the grid to be refreshed to show the updated status.  I used the grid's update command to to show the show the JavaScript's command box.  It updates, but is it the correct way to do it?

protected void rgMyNominations_UpdateCommand(object source, GridCommandEventArgs e)
{
   try
   {
      StatusManager.InsertStatus( /* required parameters */ );

      // Refresh grid
      rgMyNominations.DataSource = GetNominationTypes();
      rgMyNominations.DataBind();
   }
   catch (Exception ex)
   {
      // Handle exceptions
   }
}

The binding of the grid doesn't want to work properly after the status was updated.  The grid row is of type NominationTypeClass and the details table is of type Nomination.  I debugged, and there where it set the datasource for each it is correct, but when the view is rendered for:

<asp:Label ID="lblNominationDate" runat="server" Text='<%# FormatDate(DataBinder.Eval(Container, "DataItem.NominationDate")) %>' />

...it says that NominationDate is not a property of NominationTypeClass.  This is wrong, I don't know why it is taking the type for the row to be the type of the details table?  NominationDate is a property of Nomination.  It seems like it is overriding the datasources.

Are there any online samples of what I am trying to accomplish?  Any advice would be appreciated.

PS: Sorry for not using the code formatter, but it looks horrible, it just shows a whole lot of HTML tags.

Vasil
Telerik team
 answered on 17 Mar 2011
3 answers
204 views
Please how to center RadProgressArea on screen with javascript function. Thank you.
Dimitar Terziev
Telerik team
 answered on 17 Mar 2011
9 answers
182 views
Hi Guys, I just downloaded IE9 Beta 64bit and was browsing around and ended up on  your editor demos page and the rendering is all over the place. Now I know this is a beta which you don't support but I thought I would let you know anyway. What does IE9 do so differently to get the rendering so out of whack!
Rumen
Telerik team
 answered on 17 Mar 2011
1 answer
79 views
Hi

Is there any way to implement custom paging with virtual count in "Tree List"?
In my senario I am having treeview with more than 2,00,000 records, In one case, a child node having approximately 50,000 records.

Or Is there any way to implement paging in Treeview?
Veli
Telerik team
 answered on 17 Mar 2011
8 answers
316 views
Hi all, 
I'm trying to work out a solution to use RadFilter on a RadGrid without FilterContainerID, but setting the FieldEditors manually.

My problem is that my RadGrid must show only some of the fields that I want to be able to filter for. i.e. the Grid shows Name and Surname, but the DataSource (which by the way is an ObjectDataSource) provides also JobPosition, HireDate, and so on.
If I use the FilterContainerID the FieldsEditor are excluded and I can see in the radFilter only the fields "mapped" through a column of the Grid.
To make a long story short I would like to be able to do something similar to the sample reported in http://www.telerik.com/help/aspnet-ajax/listview-filtering-with-radfilter.html but using the RadGrid control instead of the RadListView.

Is it somehow possible ?

Thanks

Lorenzo

Lorenzo
Top achievements
Rank 1
 answered on 17 Mar 2011
2 answers
152 views
Hi!

I found an issue on the ASP.NET Ajax Menu Drop-Down, it does not work on the newest Google Chrome version 10.

Try this demo and more samples below:
http://demos.telerik.com/aspnet-ajax/menu/examples/megadropdown/defaultcs.aspx

Thanks,
Johnny
Helen
Telerik team
 answered on 17 Mar 2011
3 answers
54 views
Hi,

I used the radgrid specifying width for the horizontal scroll bar to appear along with filter, sort and paging options in my page. There is no problem when the page is viewed in IE8 and Firefox. However, In IE7, the page has some extra space. (Please refer the screenshots attached).

There are other controls and validators in the page. And when I try to save and the validators fail, I get the grid aligned perfectly. (Since it is a validator level aligning, there is no postback to get the grid alignment.)

I have no clue why this occurs. This occurs only in a radgrid. If I use a regular grid, this problem does not occur.

Does anyone face the same issue? Any replies are welcome!

~ Gsk
Charles
Top achievements
Rank 2
 answered on 17 Mar 2011
3 answers
195 views
Hey,
can somebody provide me with a sample or link to a virtual scrollable radgrid with working filters.
I have the problem, that filter only filters first page of grid, because grid's current page index seems to be lost (is lost!) when filtering on page N of the grid, and therefore no result is found, as long as you are not searching for objects on the first page of the grid.

Any help would be appricated. Thx in advance.
Veli
Telerik team
 answered on 17 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?