Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
299 views

Hello,

i want to allow that the user of a schedule system may select there own color-combinations for there appointments. When i use CSS cooded by hand it is working, but because i have no idear how many users will register for this calender, i store the background/forecolor in there user Profile. It may come 120 User total, so i don't want the change the CSS and

select
case
statement


all the time

When i just set these color during appointment creating like

e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(rw(

"backcolor"))e.Appointment.ForeColor = System.Drawing.ColorTranslator.FromHtml(rw("fontcolor"))

the colors are correct but i have a background-grafik overlap at the upper border of my appoinment. i guess this is cooming from the oroginal (in my Case Office2007) skin i am using.

This is not the case when i used hard cooded CSS with no background-image defined, then the grafik is gone.

What must i do to remove the grafik, when i set the colors by code behind.

Kind Regards

Martin Gartmann

Susan
Top achievements
Rank 1
 answered on 19 Feb 2008
2 answers
83 views
I am currently in the process of moving most of my RadControls to the Prometheus controls.  I also use the CSS layout Blueprint (http://code.google.com/p/blueprintcss/) to help keep the pages uniform between browsers.  I have found that on Firefox the combobox works fine but in IE 7 the scrolling (you have to have more items in the list than you have screen real estate for) is all messed up.

Has anyone else experienced this or know of a quick fix?  I am assuming one of the styles in the blueprint css files is the cause.  If that is the case I just need to find out which one and put it in my skin for the combobox.

Thanks


Curt
Top achievements
Rank 1
 answered on 19 Feb 2008
1 answer
146 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
328 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
224 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
116 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
163 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
221 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
106 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
224 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?