Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
111 views
hi i am zaib ali mughal
i have got a error when i reset password
i am getting this error
Exception Details: Nolics.ORMapper.Base.NolnetException: The object belongs already into a different transaction


  pass = Telerik.Security.UserManager.Default.MembershipProvider.ResetPassword(custObj.Username, "no");

i am updating user password through above code and i got this when i click on link which i recieve through email can you help me how can i handle this issue

Thank you
zaib
Top achievements
Rank 1
 asked on 31 Jan 2012
2 answers
252 views
I have a compound element in a Listview(see code) I am trying to change the background of the Panel when I click on the CheckBox. I can't figure out the  JavaScript to do it.

<
telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" ItemPlaceholderID="PlaceHolder1"
    Skin="listview_2" EnableEmbeddedSkins="false" OnItemCreated="RadListView1_ItemCreated"
    DataKeyNames="id,filenameextension,typeAbbr,title" OnNeedDataSource="RadListView1_NeedDataSource">
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Windows7">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="25" PagedControlID="RadListView1"
                BorderWidth="0" OnFieldCreated="RadDataPager1_FieldCreated" CssClass="dataPagerClass">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                        TextBoxWidth="15" />
                    <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                            <b>Total Number of Assets Found:
                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                            </b>
                        </PagerTemplate>
                    </telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="float: left; width: 162px; height: 200px; background-color: White;">
            <asp:Panel ID="myThumb" runat="server" CssClass="myClass" Style="border: 0; white-space: normal;
                padding: 5px 2px 25px 2px; text-align: center; width: 156px;  background-color: White;">
                <asp:HyperLink ID="HyperLink1" runat="server">
                    <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AutoAdjustImageControlSize="False"
                        CssClass="myClass" ImageUrl='<%# Eval("thumbUrl") %>' AlternateText="Click to view preview"
                        ToolTip="Click to view preview" Width="150px" Height="150px" />
                </asp:HyperLink><br />
                <asp:CheckBox ID="ChkImage" runat="server" Style="float: left; padding-top: 5px" /><small><asp:HyperLink ID="lnkAsset1"
                        runat="server" Visible="false" Style="float: left; padding-top: 5px">
                    </asp:HyperLink><asp:HyperLink ID="lnkAsset2" runat="server" Style="float: left;">
                    </asp:HyperLink><asp:HyperLink ID="lnkAsset3" runat="server" Style="float: left;
                        padding-left: 20px"></asp:HyperLink></small><br />
                <asp:HiddenField ID="hiddenAssetId" Value='<%# Eval("id") %>' runat="server" />
            </asp:Panel>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found
    </EmptyDataTemplate>
 </telerik:RadListView>
Tonyz289
Top achievements
Rank 1
 answered on 31 Jan 2012
3 answers
130 views
I have been trying to install the tools developer ajax tools and I have had several issues.  The latest is this.

Telerik.Web.UI.RadToolTipManager with ID='RadToolTipManager1' was unable to find embedded skin with name 'Sunset'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

I am guessing this has to do with the tools.  I have installed them but I was still getting messages that the tools were licensed.  Any idea what is going on here?  I haven't changed this code so I am guessing the tools are no longer installed/
Marin Bratanov
Telerik team
 answered on 31 Jan 2012
3 answers
92 views

I have a Radscheduler in a control and I'm using a Radwindow to replace the Delete confirmation. I'm using a window because i needed to save a Note for the reason of deleting. The only problem im having is that i need it to cause a postback on the scheduler to reflect that the Appointment was deleted. I was trying to do it with javascript, here is the code i was using.

On the window i have the following:

on the aspx

function Close() {
var oWindow = GetRadWindow();
oWindow.Close();
//oWindow.BrowserWindow.refreshData(); RadScheduler1
oWindow.BrowserWindow.__doPostBack('ucScheduler1$RadScheduler1', '');
}

on the .cs

protected void btnOK_Click(object sender, EventArgs e)
{
 EAppointment.DeleteAppointment(int.Parse(Request.QueryString["AppID"].ToString()), txtRazon.Text.ToString());
string script = "<script>Close()</" + "script>";
ClientScript.RegisterStartupScript(this.GetType(), "Close", script);
}

Marin Bratanov
Telerik team
 answered on 31 Jan 2012
1 answer
89 views
Hi,
I am using RadXMLHttpPanel control in my applicaiton to implement callback functonality.

RadXMLHttpPanel control is defined in usercontrol as below:

<

 

telerik:RadXmlHttpPanel OnServiceRequest="RadXmlHttpPanel1_ServiceRequest" OnClientResponseEnded ="CallSuccess" OnClientResponseError="CallFailed" runat="server" ID="RadXmlHttpPanel1" EnableClientScriptEvaluation="true">

 

 

<asp:HiddenField ID="hfdShowNotification" runat="server" EnableViewState="false" />

 

</

 

telerik:RadXmlHttpPanel>.

The page in which this usrcontrol is being used has RadAjaxPane defined as below:

 

 

<radA:RadAjaxPanel ID="pnlajax" runat="server">

 

 

 

 

 

<asp:Button ID="btnAjax" runat="server" Text="Ajax" OnClick="btnAjax_Click" />

 

 

 

 

 

</radA:RadAjaxPanel>

RadXmlHttpPanel  works properly if there is no any ajax request but it throws invalid viewstate error when there is ajax request before
RadXmlHttpPanel 's callback request. this happens only for first time after that it works properly.
 following steps  raised this problem:
1) made ajax request (after loading page) by clicking on button defined in RadAjaxpane.
2) Clicked on one button which call set_value() method of RadXmlHttpPanel  panel.

Error details:
Invalid viewstate.
 Client IP: 100.0.0.1
 Port: 3001
 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CWADS32; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E)
 ViewState: /wEWddCALx5bYxApSGk6MEAtXckYssscIAoznisYGAvn22fgLAtHShNsPAuKx89IBAtySgKME+dddoas2of+LhBH8VxAspilwM51wms=
 Referer:

Its very urgent for me to resolve this problem, so please look in this as soon as possible.
Thanks

 

Pero
Telerik team
 answered on 31 Jan 2012
2 answers
160 views

RadListBox Transfer Items from Source to Destination is getting fired even when I click a button in the Page. How Do I stop That?

Steps to Reproduce the Issue – Load the Page. Click the button. See the Item counts for the List Boxes inside the AJAX Update Panel. It will show correctly – 7 (source) and 0 (target) respectively. Move one item from Source to Target RadListBox. Click the button again – it shows 6 (source) and 1 (target) for the first time. Then click the button again – it shows 5 (source) and 2 (target) ..then click button.. it shows 4 (source) and 3 (target). Nothing is changing in the User Interface.

I believe that Transfer event from source to target is getting fired even when I click the button. How do I stop the Transfer event when the button is clicked?

 In my page, I have to refresh the AJAX Update panel but I do not want the items in the RadListBox to get changed at the same time.

ASPX Page -

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestRadListBox.WebForm1" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <table>
            <tr>
                <th colspan="2">Move 1 Item from Left to Right and then click the button below and see the Item Counts</th>
            </tr>
            <tr>
                <td>
                    <telerik:RadListBox ID="SourceRadListBox" runat="server" Height="100px" Width="200px"
                        AllowTransfer="true" TransferToID="TargetRadListBox">
                    </telerik:RadListBox>
                </td>
                <td>
                    <telerik:RadListBox runat="server" ID="TargetRadListBox" Height="100px" Width="175px"
                        AllowReorder="true" />
                </td>
            </tr>
        </table>
    </div>
    <br/>
    <div>
        Time OUTSIDE Update Panel : <asp:Label ID="timeOutsideLabel" runat="server"/>
    </div>
    <br/>
    <div align="left">
        <asp:Button ID="addRuleButton" runat="server" Text="Click To Refresh The Time Below Inside AJAX Update Panel"
            onclick="addRuleButton_Click" />
    </div>
    <br/>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <table border = "2">
                <tr><th>AJAX Update Panel</th></tr>
                <tr><td>Time INSIDE Update Panel : <asp:Label ID="timeInsideLabel" runat="server"/></td></tr>
                <tr><td>Item Count in Source RadListBox : <asp:Label ID="srcCount" runat="server"/></td></tr>
                <tr><td>Item Count in Target RadListBox : <asp:Label ID="tarCount" runat="server"/></td></tr>
            </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="addRuleButton" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

C# Code Behind -

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace TestRadListBox
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<string> week = new List<string> { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
                SourceRadListBox.DataSource = week;
                SourceRadListBox.DataBind();
                string timenow = DateTime.Now.ToLongTimeString();
                timeInsideLabel.Text = timenow;
                timeOutsideLabel.Text = timenow;
            }
        }

        protected void addRuleButton_Click(object sender, EventArgs e)
        {
            timeInsideLabel.Text = DateTime.Now.ToLongTimeString();
            srcCount.Text = SourceRadListBox.Items.Count.ToString();
            tarCount.Text = TargetRadListBox.Items.Count.ToString();
        }
    }
}

Andy
Top achievements
Rank 1
 answered on 31 Jan 2012
6 answers
437 views
I have a RadComboBox that I populate with checkboxes and associated labels as follows:
<ItemTemplate>
     <div onclick="StopPropagation(event)">
          <asp:CheckBox ID="CheckBox1" runat="server" Checked="True" AutoPostBack="False" OnClick="checkboxClick(this)" Text = '<%# DataBinder.Eval(Container, "Text") %>' />
     </div>
</ItemTemplate>

The RadComboBox has a client event that updates the combobox text by looping thru the selected checkboxes and assigning a custom text.

If a user clicks to the right of the checkbox label, the label text is selected and inserted into the combobox, even though the checkbox is not checked/unchecked. The combobox client code does not overwrite this, for some reason.

How can I stop this from happening?

Please help!

Thank you, 
-Megan

see attached - on 2nd image, you can see that 1.5 stars is in the combo text, but it doesn't match the dropdown.

 
Ivana
Telerik team
 answered on 31 Jan 2012
4 answers
107 views
I have a problem in time to also utilize the tabstrip with multipage, the problem is time to validate the email first
RadPageView can not click on the second RadPageView2 without first validating the first RadPageView RadTextBox with id = "email" as the RadPageView Faso to work independently to validate the fields.


added these commands in the example with the RadPageView RadTextBox:

  <telerik: RadTextBox id = "email" runat = "server" Height = "15px" Width = "300px"
                             ValidationGroup = "rep">
                         </ telerik: RadTextBox>
                         <asp: RegularExpressionValidator ID = "EmailValidator" runat = "server" Display = "Dynamic"
ErrorMessage = "Please, enter valid email address." ValidationExpression = "^ [\ w \. \ -]+@[ A-zA-Z0-9 \ -] + (\. [A-zA-Z0-9 \ -] {1,})*( \. [a-zA-Z] {2,3}) {1,2} $ "
ControlToValidate = "email" ValidationGroup = "rep"> </ asp: RegularExpressionValidator>
<asp: RequiredFieldValidator ID = "Requiredfieldvalidator1" runat = "server" Display = "Dynamic"
ControlToValidate = "email" ErrorMessage = "Please, enter an e-mail!" ValidationGroup = "rep" />

want to activate the link for the second RadPageView2 that will contain another form, ie the link only works if I RadPageView2 validate the email that is in RadPageView1
Dimitar Terziev
Telerik team
 answered on 31 Jan 2012
1 answer
167 views
hi,
    Recently ive downloaded Telerik dll from the Website (2011.3.1305.35) and when Im trying to build the application using this dll on V2.0 framewrok, i face some compatibility issues with System.web.Extension.

Error are as follows:
    Error 43 C:\Prabhu\Working Folder\Prototype\Prototype\Prototype\MasterPage\Proto.Master: ASP.NET runtime error: The base class includes the field 'UpdatePanel1', but its type (System.Web.UI.UpdatePanel) is not compatible with the type of control (System.Web.UI.UpdatePanel). C:\Prabhu\Working Folder\Prototype\Prototype\Prototype\MasterPage\Proto.Master 160 1 Prototype

    Error 44 Assembly 'Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Prabhu\Working Folder\Prototype\Prototype\Prototype\Assemblies\Telerik.Web.UI.dll Prototype

Note: Ive added the reference of 
    System.Web.Extensions (1.0.61025.0), 
    Telerik.Web.Design (2011.3.1305.35)
    Telerik.Web.UI  (2011.3.1305.35)
    Telerik.Web.UI.Skins (2011.3.1305.35)


Please help me on fixing this issue. thanks in advance.
Dimitar Terziev
Telerik team
 answered on 31 Jan 2012
1 answer
178 views
hi

in calendar control ,if user double clicks on date i need to show the alert message.

please suggest me solution.


thanks
Sri
Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
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?