Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views
Hi,

Will Copy/Paste phone number support for RadMaskedTextBox? if  so plz guide me to solve my issue. Right now im using textbox and wrote javascript to overcome this. But i need to use prometheus control. so if u have any solution let me guide.

Regards
Jai
Giuseppe
Telerik team
 answered on 19 Feb 2008
6 answers
330 views
I am developing an ASP.NET app using C# 3.5, VS 2008.  I am using the AspNetSqlMembershipProvider with three levels of users, the general public who do not login, users and administrators.  There are some features that only administrators can access and some features that only users and administrators can access.

Currently, I am using a WebSiteMap, SiteMapDataSource and TreeView to handle the navigation.  When first accessing the app, the restricted features are not visiable.  When an user logs in, then the user features become visiable on the tree view.  Likewise, when an administrator logs in, then both the user and administrator features appear.

I would like to replace the WebSiteMap, SiteMapDataSource and TreeView with the Prometheus RadMenu with the options being displaced horizonally across the top of the MasterPage. 

I did try the option of indicating that the data source to the RadMenu was the SiteMapDataSource but this option only displayed the first note ("Home") with the other options as children and only when the home option was selected.  (The first leve in a WebSiteMap can have only one note.)

Does anyone know how to integrate the RadMenu with the MembershipProvider such that retricted buttons only appear if the user is authorized to access those features>
Robert
Top achievements
Rank 1
 answered on 19 Feb 2008
2 answers
227 views
I'm using a rad window to upload some files to the server.  When I upload the first time it works, how ever if I use the same form and upload a second time, it saves the file twice in the target folder.  Once with the name I give in in the function below and the other file is without the appended documentid.  So i get two files like this: 143test.txt and test.txt.


Here is my bindresults function that is called on the sumbit click.  Any ideas?  Its as if the inital save uses the default temp folder and then on subsequent saves it changes the temp folder to the targetphysical path.

    private void BindResults()
    {
        thisUser = new User(SessionHandler.UserID);

        string folderpath = ConfigurationManager.AppSettings["AttachmentsLocation"].ToString();
        RadUpload1.TargetPhysicalFolder = folderpath;
        string targetFileName = "";
        foreach (UploadedFile f in RadUpload1.UploadedFiles)
        {
            string ext = f.GetExtension().Replace(".", "");
            int size = f.ContentLength;
            double fsize = Convert.ToDouble(size) / 1000;
            Int32 docid = DataAccess.SaveDocument(thisUser.UserID, f.FileName, ext, "", fsize);
            targetFileName = Path.Combine(folderpath, docid.ToString() + f.FileName);
            f.SaveAs(targetFileName);
            int attachmentid = DataAccess.DocumentAttach(docid, Convert.ToInt32(Request.QueryString["todoid"].ToString()), AllItemTypes.ToDo);
        }
    }
John
Top achievements
Rank 1
 answered on 19 Feb 2008
4 answers
120 views
Hello all,

I have a Portal built from the MyPortal example posted here.  I also have a user control that has a MS ReportViewer Control inside it which I use to dynamically bind reports to. 

When I try to add a dock to the portal with this control inside it, I get a jscript error in the page 

Microsoft JScript runtime error: 'frames.119_C_ctl00_ctl00TouchSession0.location' is null or not an object

i have noticed that 119 is the PageWidgetID of the dock I am trying to place, and the error happens on this line
<iframe name="119_C_ctl00_ctl00TouchSession0" id="119_C_ctl00_ctl00TouchSession0" onload="if (frames['119_C_ctl00_ctl00TouchSession0'].location != 'javascript:\'\'') frames['119_C_ctl00_ctl00TouchSession0'].location.replace('javascript:\'\'');" src="javascript:''" style="position:absolute;width:0;height:0;visibility:hidden;"> 

This is a critical piece to my software, and my purchase order was sent back to us for revision, so I cannot attach a working project.  Is there any solution for this?

Thanks in advance

Greg
Petya
Telerik team
 answered on 19 Feb 2008
2 answers
167 views

Howdy,  I have a webform with a radscheduler (setup.aspx), code has the following javascript to intercept an appointment click and load additional data in a radwindow (setuppopup.aspx).  Setuppopup.aspx executed/behaved perfectly fine when running on its own (i.e. not inside a radwindow).  However, now, a dropdownlist isn't getting selected anymore, and a button that transfers values from a textbox to a listbox seems to duplicate all the values that it transfers.

In Setup.aspx:

        <script type="text/javascript">
        function ShowDetails(sender, eventArgs)
        {
            var id = eventArgs.get_appointment().ID;
            var stringUrl = "SetupPopUp.aspx?ID=" + id;
            var popup = radopen(stringUrl);
            popup.setSize(800,750);
            popup.Center(); 
        } 
        </script>


 <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
 </telerik:RadWindowManager>

In SetupPopUp.aspx.vb

    Private Sub GrabSQLMeetingInfo(ByVal MDBid As Int32)

        Dim Conn As New SqlConnection(ConStr)
        Conn.Open()
        Dim cmd As New SqlCommand("GetMeetingByID", Conn)
        Dim reader As SqlDataReader = Nothing

        Try
            cmd.CommandType = Data.CommandType.StoredProcedure
            cmd.Parameters.AddWithValue("@MDBid", MDBid)
            reader = cmd.ExecuteReader(CommandBehavior.SingleRow)
            If Not reader Is Nothing Then
                While reader.Read
                    Session("MeetingID") = reader.GetInt32(0)
                    Dim meetcontact As String = reader.GetString(3)
                    lblPresenter.Text = meetcontact
                    For Each li As ListItem In ddlPresenter.Items
                        If li.Value = meetcontact Then
                            li.Selected = True
                        End If
                    Next
                    'grabs other data that shows up fine in labels
                End While
            Else
            End If
        Catch ex As Exception
        Finally
            cmd.Dispose()
            Conn.Close()
        End Try
    End Sub

ddlpresenter (dropdownlist) is tied to a sqldatasource control, textvalue is "firstname, lastname", valuefield is "username".  sql side for the record being pulled by MDBid variable above only has the 'username' stored.  lblpresenter shows that the correct value is being pulled, the ddlpresenter however doesn't seem to respond.

The button that is supposed to parse the textbox and spit out to a listbox does the following:

  Private Sub FromStringToList(ByVal parsing As String)

        If parsing.Length > 0 Then
            Dim myArray() As String = Nothing
            myArray = parsing.Split(Environment.NewLine)
            Dim count As Integer = 0
            For z As Integer = 0 To myArray.Length - 1       'last one is an empty place, so ignore it
                Try
                    lbGuestsPending.Items.Add(Trim(myArray(z).ToString))
                    count = count + 1
                Catch ex As Exception
                End Try
                uT.Color(lblNameAdded, Drawing.Color.Yellow, Drawing.Color.Green, "Added " & count & " name(s)")
            Next
        End If
    End Sub

The button click seems to be occuring twice now.

Incidentally, the lbGuestPending has its values loaded in the reader referenced above, after the ddlpresenter control is supposed to have its value selected, without problems.

Please let me know what i'm missing.

Thank you in advance.

aea13
Top achievements
Rank 1
 answered on 19 Feb 2008
5 answers
224 views
We are using a RadGrid with paging using the NextPrevNumericAndAdvanced pager style. When executing a paging operation (changing page index or page size, whether via the textbox or page numbers or arrows), the operation itself executes databinding, and then the PreRender on the Grid executes databinding again.

This behavior is especially costly when a database is used for the data source.

The stack trace on the first data bind is as follows:

  System.Web.dll!System.Web.UI.DataSourceView.Select(System.Web.UI.DataSourceSelectArguments arguments, System.Web.UI.DataSourceViewSelectCallback callback = {System.Web.UI.DataSourceViewSelectCallback}) + 0x12 bytes 
  System.Web.dll!System.Web.UI.WebControls.DataBoundControl.PerformSelect() + 0x96 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.PerformSelect() + 0x5 bytes 
  System.Web.dll!System.Web.UI.WebControls.BaseDataBoundControl.DataBind() + 0x47 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.DataBind() + 0x12b bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridPageChangedEventArgs.ExecuteCommand(object source) + 0x73c bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.RadGrid.OnBubbleEvent(object source, System.EventArgs e) + 0x93 bytes 
  System.Web.dll!System.Web.UI.Control.RaiseBubbleEvent(object source = {Telerik.Web.UI.GridTFoot}, System.EventArgs args = {Telerik.Web.UI.GridPageChangedEventArgs}) + 0x24 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridItem.OnBubbleEvent(object source, System.EventArgs e) + 0x2d bytes 
  System.Web.dll!System.Web.UI.Control.RaiseBubbleEvent(object source = {Telerik.Web.UI.GridPagerItem}, System.EventArgs args = {Telerik.Web.UI.GridPageChangedEventArgs}) + 0x24 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridItem.OnBubbleEvent(object source, System.EventArgs e) + 0x7d bytes 
  System.Web.dll!System.Web.UI.Control.RaiseBubbleEvent(object source = {Text = "2"}, System.EventArgs args = {System.Web.UI.WebControls.CommandEventArgs}) + 0x24 bytes 
  System.Web.dll!System.Web.UI.WebControls.LinkButton.OnCommand(System.Web.UI.WebControls.CommandEventArgs e) + 0x74 bytes 
  System.Web.dll!System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(string eventArgument) + 0x85 bytes 
  System.Web.dll!System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(string eventArgument) + 0x8 bytes 
  System.Web.dll!System.Web.UI.Page.RaisePostBackEvent(System.Web.UI.IPostBackEventHandler sourceControl, string eventArgument) + 0xc bytes 
  System.Web.dll!System.Web.UI.Page.RaisePostBackEvent(System.Collections.Specialized.NameValueCollection postData) + 0xb2 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint = true) + 0x6d3 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint = true) + 0x67 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest() + 0x57 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) + 0x13 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) + 0x32 bytes 
  System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x167 bytes 
  System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.CallHandlerExecutionStep}, ref bool completedSynchronously = true) + 0x41 bytes 
  System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x1b3 bytes 
  System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) + 0x8e bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr = {System.Web.Hosting.ISAPIWorkerRequestOutOfProc}) + 0x1b5 bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) + 0x62 bytes 
  System.Web.dll!System.Web.Hosting.ISAPIRuntime.ProcessRequest(System.IntPtr ecb, int iWRType) + 0xfd bytes 
  [Appdomain Transition] 
  [Native to Managed Transition] 


The stack trace on the second data bind is as follows:

  System.Web.dll!System.Web.UI.DataSourceView.Select(System.Web.UI.DataSourceSelectArguments arguments, System.Web.UI.DataSourceViewSelectCallback callback = {System.Web.UI.DataSourceViewSelectCallback}) + 0x12 bytes 
  System.Web.dll!System.Web.UI.WebControls.DataBoundControl.PerformSelect() + 0x96 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.PerformSelect() + 0x5 bytes 
  System.Web.dll!System.Web.UI.WebControls.BaseDataBoundControl.DataBind() + 0x47 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.DataBind() + 0x12b bytes 
  System.Web.dll!System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() + 0x53 bytes 
  System.Web.dll!System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(System.EventArgs e = {System.EventArgs}) + 0x14 bytes 
  Telerik.Web.UI.DLL!Telerik.Web.UI.GridTableView.OnPreRender(System.EventArgs e) + 0x28 bytes 
  System.Web.dll!System.Web.UI.Control.PreRenderRecursiveInternal() + 0x57 bytes 
  System.Web.dll!System.Web.UI.Control.PreRenderRecursiveInternal() + 0xab bytes 
  System.Web.dll!System.Web.UI.Control.PreRenderRecursiveInternal() + 0xab bytes 
  System.Web.dll!System.Web.UI.Control.PreRenderRecursiveInternal() + 0xab bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint = true) + 0x7fa bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint = true) + 0x67 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest() + 0x57 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) + 0x13 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) + 0x32 bytes 
  System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x167 bytes 
  System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.CallHandlerExecutionStep}, ref bool completedSynchronously = true) + 0x41 bytes 
  System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x1b3 bytes 
  System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) + 0x8e bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr = {System.Web.Hosting.ISAPIWorkerRequestOutOfProc}) + 0x1b5 bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) + 0x62 bytes 
  System.Web.dll!System.Web.Hosting.ISAPIRuntime.ProcessRequest(System.IntPtr ecb, int iWRType) + 0xfd bytes 
  [Appdomain Transition] 
  [Native to Managed Transition] 


Can you change the behavior during paging so that only data bind is executed, or at least only one call to the data source is performed?

Thanks,

David
none123456
Top achievements
Rank 1
 answered on 19 Feb 2008
1 answer
109 views
Hello,

I wanted to know if it is possible to extend the Prometheus RadScheduler Control.  I wanted to add a couple of textboxes that will show up on the loading of the Event Insertion screen.  These textboxes will submit data when the Insert Event is fired. 

Is this possible?

Thanks,
-David
David
Top achievements
Rank 2
 answered on 19 Feb 2008
3 answers
231 views
Hi

In RadScheduler, when you put in appointmentTemplate an ImageButton to do the exportCalendar event, when I do a postBack, it's appear "'null' is null or not and object" javaScript Error, but when I use a button instead of the imageButton, this error doesn't appear.

In my application I used AjaxUpdatePanels, RadLoadingPanels, RadCalendar, RadComboBox, RadTreeview, ...

Why this error appears when I use a imageButton and not when I use a button?

Thanks for all.

Peter
Telerik team
 answered on 19 Feb 2008
4 answers
214 views
All,
I've been struggling with how to ajaxify the prometheus RadGrid for a few days now, and would like some pointers.  In previous versions, I'd simply have to set the .EnableAjax, and the grid would be ajaxified.  Apparently, this functionaltiy is now gone.

So, here is my setup.

MasterPage -> ContentPage -> UserControl -> RadGrid

I'd like to programatically ajaxify the Grid for Paging, Sorting and Filtering.  I have the RadAjaxManager and ScriptManager on my MasterPage.

I have tried several varieties of:

RadAjaxManager.AjaxSettings.AddAjaxSetting(myBaseDataGrid, myBaseDataGrid)

But all, with no avail.

It doesn't seem that it should be this hard.  Can someone point me in the right direction?
Sean Eby
Top achievements
Rank 1
 answered on 19 Feb 2008
2 answers
167 views
Hi

I'm starting to take a look at the Prometheus grid and have found the following issue (it only seems to occur with the built-in Vista skin). When selecting a row, the row does not highlight correctly - the entire row has the correct border but the background image does not seem to be being repeated i.e. the image is only shown at the left hand side of each cell in the selected row.

Is this a known issue with the Vista skin or am I missing something?

Thanks
Keith
Keith
Top achievements
Rank 1
 answered on 19 Feb 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?