Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
Hello,

I have searched through the forums and either not found a solution that solves my problem, or was unable to get it to function how I wanted.

I have a set of data that looks like this:

Item#        Item edition date        last updated date
123            12/1/2010                    6/1/2011
123            11/1/2010                    2/1/2011
123            2/2/2010                      3/1/2010
555            6/30/2011                    7/5/2011
555            4/1/2011                      5/1/2011
666            1/1/2010                      12/31/2010
666            10/1/2009                    12/31/2009


I would like to group the data by the Item#, which I can do, but then I want the groups sorted by the last updated date only, which I cant do. The SQL I use to get the data performs the grouping and sorting correctly, but its not reflected when I bind it. I am using AdvancedDatabinding as well.

Any suggestions/help?
Iana Tsolova
Telerik team
 answered on 12 Oct 2011
1 answer
134 views
Hi:
I have RadGrid with a calculated column with custom aggregate footer.
<telerik:GridCalculatedColumn HeaderText="Total" UniqueName="PriceExtendedColumn"
    HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"
    DataFields="Quantity, Price"
    DataType="System.Decimal" Aggregate="Custom" FooterText=" ">
</telerik:GridCalculatedColumn>
I am getting a blank screen.

Phil
Phil
Top achievements
Rank 2
 answered on 12 Oct 2011
0 answers
159 views
Hi, 
I am using RadGrid and I have  added the  scriptmanager to the page from code, making sure that the  first control on the  form is  always a scriptmanager. However, while loading the  page it works fine but  on postback it  throws the  error "Script Control may not be  registered before prerender". 

 Stack Trace: 
[InvalidOperationException: Script controls may not be registered before PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +349529
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66
   Telerik.Web.UI.RadCompositeDataBoundControl.RegisterScriptControl() +43
   Telerik.Web.UI.RadCompositeDataBoundControl.ControlPreRender() +15
   Telerik.Web.UI.RadGrid.ControlPreRender() +51
   Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

I have  used the  control as follows. 

 <radg:RadGrid CssClass="grid_container" ID="grdProperties" runat="server" EnableAJAX="true"
                                HeaderStyle-Wrap="false" BorderWidth="1" BorderColor="#cccccc" ItemStyle-Wrap="false"
                                AlternatingItemStyle-Wrap="false" AutoGenerateColumns="False" CellSpacing="0"
                                CellPadding="0" GridLines="None" AllowSorting="True" EnableEmbeddedSkins="false" EnableAjaxSkinRendering="false" EnableEmbeddedBaseStylesheet="false"> 
                                <ItemStyle CssClass="grid" BorderWidth="0" />
                                <AlternatingItemStyle CssClass="grid_alt" BorderWidth="0"></AlternatingItemStyle>
                                <HeaderStyle CssClass="grvHeadings"></HeaderStyle>
                                <MasterTableView BorderWidth="0" AutoGenerateColumns="false" ItemStyle-CssClass="grid"
                                    ItemStyle-BorderWidth="1" AlternatingItemStyle-CssClass="grid_alt" BorderColor="#cccccc">
                                    <Columns>
                                        <radg:GridTemplateColumn HeaderStyle-Wrap="false" ItemStyle-HorizontalAlign="Right"
                                            HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="grvHeadings" ItemStyle-Wrap="false"
                                            ItemStyle-BorderWidth="0">
                                            <HeaderTemplate>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                            </ItemTemplate>
                                        </radg:GridTemplateColumn>
 </Columns>
                   </MasterTableView>
            </radg:RadGrid>
 Could you guide me as how I could  handle this exception. 

Thanks in Advance. 


Subbaraya Prabu
Top achievements
Rank 1
 asked on 12 Oct 2011
6 answers
247 views
Hi
I'm using the RadPanelBar in my application.
I set the skin WebBlue.
When I move  mouse over the panelitem or items inside panelitem they showing the skyblue color.
I dnt want to show the blue color instead I want to show black color.
How cloud I achieve this. Please help me in Either  I need to any javascript event or custom skin.
I didn't aware of creating and using the custom skin for radcontrols. so please provide me any good example.

Ram
Top achievements
Rank 1
 answered on 12 Oct 2011
1 answer
77 views
hi i am using radtabstrip control for menu i want to open drag and drop functionality for rad tabs when i drag one tab in to place of another tab it will auto replace from another tab i want to do this work from client side can you help me for solve my problem
Thank you
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2011
4 answers
396 views
HI,
  I am getting problem with transfering the item from source to destinaion listbox. when transferring the data then source listbox lost the item while destination show blank row. i am using following code

 

<telerik:RadListBox ID="lstSourceCity" runat="server" AllowTransfer="true" EnableDragAndDrop="false"

 

 

 

Height="205px" TransferMode="Move" TransferToID="lstDestinationCity" Width="350px"

 

 

 

SelectionMode="Multiple" CssClass="Align" OnItemDataBound="lstSourceCity_ItemDataBound" OnTransferred="lstSourceCity_Transferred" AutoPostBackOnTransfer="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

 

<telerik:RadListBox ID="lstDestinationCity" runat="server" Height="205px" Width="350px"

 

 

 

CssClass="Align" OnItemDataBound="lstDestinationCity_ItemDataBound">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkIsFeatured" runat="server" />

 

 

 

<asp:Label ID="lblDestCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

protected void lstSourceCity_Transferred(object sender, RadListBoxTransferredEventArgs e)
{     

 

 

foreach (RadListBoxItem listBoxItem in e.Items)

 

{

listBoxItem.DataBind();

}

 I am searching the soluntion for last couple of day but did not find exact solution.

 

 

 

 

Dimitar Terziev
Telerik team
 answered on 12 Oct 2011
2 answers
132 views
Hi, I am using XmlDataSource with RadGrid. I need to use Column's Aggregate functionality to show sum (in footer) in one column. As datasource is XML, grid considers I have all string data even though I have numbers in the column. How can I use Sum Aggregate functionality with Xml data source?

code sample:
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/data.xml"  XPath="/root/Row"></asp:XmlDataSource>
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="XmlDataSource1" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="XmlDataSource1">
        <Columns>
          <telerik:GridBoundColumn DataField="col1" HeaderText="Product" SortExpression="col1" Aggregate="Count" ...

Thank you,
Amit Vaishnav
Amit
Top achievements
Rank 1
 answered on 12 Oct 2011
7 answers
99 views
I recently downloaded the trial version of Telerik Rad Controls for ASP.NET AJAX.  Last week, I was happily developing with the Telerik toolbox in Visual Studio 2008, but this week when Tererik asked me to upgrade to their latest version I chose not to upgrade.  After that, the Toolbox went missing.  Now I can't even use the tools.  How can I get the toolbox back?
Erjan Gavalji
Telerik team
 answered on 12 Oct 2011
9 answers
771 views
I'm wondering why RadInput only exposes one event for key presses? It seems like it should mirror the functionality of other events. Namely, it seems like there should be two events - OnKeyPressing (fires before new value is set and can be cancelled) and OnKeyPressed (fires after new value has been set).

I'm trying to implement a search box and I want the results to appear automatically as the user types into the RadTextBox. I can't use OnKeyPress because it doesn't fire when the backspace or delete keys are pressed. Even if it did, the value of the textbox hasn't been updated yet so it still wouldn't work. I need "OnKeyPressed" that fires any time any key is pressed and contains the new value of the input control.

Alternately, it might be nice if OnValueChanged actually fired when the value changed instead of when the control loses focus (isn't that what OnBlur is for?).
Vasil
Telerik team
 answered on 12 Oct 2011
1 answer
84 views

I have encountered a very strange problem applying a custom skin to a group of RadDatePickers.

Here is my mark up that causes the error.

<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <table>
                <tr>
                    <td><telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker3" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker4" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                </tr>
            </table>
        </div>
    </form>
</body>

Looks simple enough but does not render correctly

Error

What is bizarre about this error, is that if I remove the skin related code from ANY ONE of the controls, they all work correctly again.

In this example I have removed the code from the second RadDatePicker.

<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <table>
                <tr>
                    <td><telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="100"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker3" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker4" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                </tr>
            </table>
        </div>
    </form>
</body>

Running this code results in this image

Image 2

LIke I said above, I can remove that skins code from any one of the rows, and they will all work again.

This is one of the more bizarre errors I have seen in ages. Is this a bug of the RadDatePicker?. Is there another way to apply the skins that might not result in the error?



Galin
Telerik team
 answered on 12 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?