Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
How do you remove the weeks from the calendar popup?

thanks,


Jeff
Shinu
Top achievements
Rank 2
 answered on 10 Nov 2008
4 answers
157 views
Hi,
I am populating the nodes of a treeview control during the initla page load. I have set AllowNodeEditing="True". When a button on the page is clicked and the page is posted back  I step through the nodes in the treeview control. I expect that the Text property of each node will be updated with the value typed in by the user. This does not seem to be the case. How do I get the data posted back to be updated with the user input?
Clayton.
skysailor
Top achievements
Rank 1
 answered on 09 Nov 2008
1 answer
101 views
Hi,
I'm trying to build a method so that when i fire my select command from one grid it will take the data from the other grid aswell.

protected void gvSuppliers_ToCart(Object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "AddToCart")
        {
            //ProductGrid "gvDetails"
            _productName = Convert.ToString(gvDetails.MasterTableView.DataKeyValues[e.Item.ItemIndex]["ProductName"]);
            _productDescription = Convert.ToString(gvDetails.MasterTableView.DataKeyValues[e.Item.ItemIndex]["ProductDescription"]);
            _ean = Convert.ToInt32(gvDetails.MasterTableView.DataKeyValues[e.Item.ItemIndex]["EAN"]);

            //SupplierGrid "gvSuppliers"
            _supplierName = Convert.ToString(gvSuppliers.MasterTableView.DataKeyValues[e.Item.ItemIndex]["SupplierName"]);
            _price = Convert.ToDouble(gvSuppliers.MasterTableView.DataKeyValues[e.Item.ItemIndex]["Price"]);
            }
        }
    }

Now, i'm now quite sure if both grids should have the same "OnItemCommand" or if I could just call it from my SupplierGrid. Please help, need this done by tuesday :S

Atm i'm just getting:

[ArgumentException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.]
   System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2132776
   System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +32
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


which is not really the most helpful stack trace :(
Daniel Neergaard
Top achievements
Rank 2
 answered on 09 Nov 2008
0 answers
121 views
I had a solution running with Rad controls in .Net framework 2.0. As I've updated my solution to framework 3.5, I'm facing this error in my page with RadWindow:

The control with ID 'radWManager' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.


But the ScriptManager is there before the "RadWManager", which is a RadWindowManager. What can be the case here?


M Iftekharul
Top achievements
Rank 1
 asked on 09 Nov 2008
1 answer
117 views
Hi!

I have created a simple Application to find out how to use the RadGrid with an UserControl as EditForm.

For this scenario i have created a typed DataSet / TableAdapter with Methods to fill the DS / Update / Delete and Insert Values and a ObjectDataSource which bounds to the Grid and points to the corresponding methods. Then i have created a usercontrol as the EditForm and configured the Grid to use this UserControl. In the ItemDataBound Event of the Grid I pass the values to my UserControl and everything is fine. But for the Update i have not figgured out how to pass the Values back to the Grid.

Can you help me on that?

Thx!

Pascal
Vlad
Top achievements
Rank 1
 answered on 09 Nov 2008
1 answer
86 views
I installed the Q3 demos and I am getting a database error when I try to run the tooltip demo. I see in the web.config that SQLExpress is expected. Should this have been installed with the demo as part of the dev server?
Alexandre
Top achievements
Rank 1
 answered on 09 Nov 2008
1 answer
272 views
I have a web form with a radgrid on it and when the user clicks edit, I want them to be redirected to another page with the data from the selected record id filled in. I need help figuring out how pass the record id to the new page and then open the new page in the same window. I already have code in the Page_Load event of the new page that fills in data based on an ID that I have hardcoded for now. Here is my aspx page:

<%

@ Page Language="VB" MasterPageFile="~/Masters/PU89AdminMasterPage.master" AutoEventWireup="false" CodeFile="EditNews.aspx.vb" Inherits="Admin_EditNews" title="PU89 - Admin Area" %>

 

<%

@ Register Assembly="Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

 

<

Table id="tblAdminEditNews" runat="server" class="PageFont">

 

 

<tr>

 

 

<td style="height: 10px">&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp</td>

 

 

<td class="HeaderText" style="border-bottom: solid 3px #FF7700; height: 10px" colspan="2">PU89 Admin: News - Edit</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="height: 10px">&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp</td>

 

 

<td style="width: 694px">

 

 

<telerik:RadGrid ID="rgdEditNews" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="dsEditNews"

 

 

GridLines="None" PageSize="30" Width="100%" Skin="Gray" OnDeleteCommand="rgdEditNews_DeleteCommand"

 

 

OnNeedDataSource="rgdEditNews_NeedDataSource" OnEditCommand="rgdEditNews_EditCommand">

 

 

<MasterTableView AutoGenerateColumns="False" DataSourceID="dsEditNews" Width="693px" DataKeyNames="ID">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="column1">

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="column1">

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridBoundColumn DataField="Title" EmptyDataText="&amp;nbsp;" HeaderText="Title"

 

 

SortExpression="Title" UniqueName="Title">

 

 

<ItemStyle Width="425px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="BDate" DataType="System.DateTime" EmptyDataText="&amp;nbsp;"

 

 

HeaderText="Date" SortExpression="BDate" UniqueName="BDate">

 

 

<ItemStyle Width="100px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridCheckBoxColumn DataField="Display" DataType="System.Boolean" HeaderText="Display"

 

 

SortExpression="Display" UniqueName="Display">

 

 

<ItemStyle Width="100px" />

 

 

</telerik:GridCheckBoxColumn>

 

 

<telerik:GridBoundColumn DataField="ID" Display="False" EmptyDataText="&amp;nbsp;"

 

 

UniqueName="ID" Visible="False">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

</ClientSettings>

 

 

<FilterMenu EnableTheming="True" Skin="Gray">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

 

</telerik:RadGrid><asp:SqlDataSource ID="dsEditNews" runat="server" ConnectionString="<%$ ConnectionStrings:PU89 %>"

 

 

SelectCommand="SELECT [ID], [Title], [BDate], [Display] FROM [tblNews]" ConflictDetection="CompareAllValues" DeleteCommand="DELETE FROM [tblNews] WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display" InsertCommand="INSERT INTO [tblNews] ([Title], [BDate], [Display]) VALUES (@Title, @BDate, @Display)" OldValuesParameterFormatString="original_{0}" UpdateCommand="UPDATE [tblNews] SET [Title] = @Title, [BDate] = @BDate, [Display] = @Display WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display">

 

 

</asp:SqlDataSource>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="height:275px">&nbsp</td>

 

 

</tr>

 

</

Table>

 

</

asp:Content>

My edit module is called rgdEditNews_EditCommand but it is empty for now because i wasn't sure where to begin. Thanks!

 

sbowman
Top achievements
Rank 1
 answered on 08 Nov 2008
2 answers
102 views
I have a custom pager template in my RadGrid that incorporates a RadSlider control. Whenever the full screen can be viewed at one time the slider does not cause any problems when paging back and forth using the grid. Although, when the page is long and you scroll down the the bottom the content shifts each time I page back and forth. The entire page shifts upward. After stripping my page down I realized that the RadSlider was causing the problem. As soon as I delete it or make it invisible everything works as expected. It's odd that this only occurs when web browser vertical scrollbar is enabled and I am scrolled down to the bottom of the page.

Any ideas what might be causing the issue. I had the latest 3.5 sp1 framework installed.I'm also tried removing all the css styles to make sure it wasn't that. Please see my follow up posting below.

Thanks,
Levi

 

 

 

Levi
Top achievements
Rank 1
 answered on 08 Nov 2008
0 answers
49 views
i m displaying a tool tip(user control file) on tree node.but  on tool tip that user control file is not displaying , plz reply me what could be the problem.

Usman
Top achievements
Rank 1
 asked on 08 Nov 2008
0 answers
86 views
i m using ur new tool tip manager  displaying on tree view ,i m using ur example  but when i use the following code i m getting the error is productdetails is not defined.can u plz help me how to define this product details

protected

 

void RadToolTipmanager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)

 

{

 

ProductDetails details = (ProductDetails)this.LoadControl("ProductDetails.ascx");

 

details.ProductID = e.Value;

e.UpdatePanel.ContentTemplateContainer.Controls.Add(details);

}

reply me plz

Usman
Top achievements
Rank 1
 asked on 08 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?