Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
123 views
Hi,
I am just trying to use the scheduler for the first time.
My client has a need to allow it's members use of 4 rooms.
I have set this up in a database and can add, edit, delete and move appointments around in the rooms etc no problem.
However at the moment all users can modify all appointments.
Is there a way to restrict editing and movement of appointments to the person that created it (and an admin user)

Scenario:
User B wants to use room A at 12PM, he signs on but sees that User A already has the room booked at that time.

At the moment User B can just move User A's appointment and insert their own.

I am assuming I will have to write custom code that grabs the creating, modifying and moving events and tests if the current user is the user that created the appointment and if not cancel it?

Just want to check there is not any unbuilt functionality or examples of this type of code (I cant be the first person to want this) before I start writing anything.
Only bought the controls a few days ago so still familiarizing myself so sorry if I have asked something obvious.
Peter
Telerik team
 answered on 24 Mar 2009
2 answers
75 views
I'm using RadEditor with a couple different button configurations. I just upgraded to Q1 2009. I am noticing that the buttons for the default skins do not display the same when there are (for example) 2 rows of buttons in the toolbar as opposed to 4 rows (for a complete button set). The icons get pixelated, as if the height were getting reduced slightly. I'm just using the default toolsfile.xml file that has a complete button set that was included with the demo applications. I'd like the toolbar buttons to appear as cleanly as they do when there are only 2 rows. Any suggestions?
Michael Cranford
Top achievements
Rank 1
 answered on 24 Mar 2009
2 answers
187 views
In my application I have 2 RadGrids, both have the same width.

Now I need to synchronize the scrollbars in a mirror way, that means if I move the scrollbar of the second RadGrid to the right, the Scrollbar of the first RadGrid shall move to the left.

Here is my code which doesn't work exactly (there is a differenz of 40px):

function Scroll2(sender, eventArgs)  
 {  
 
     var RadGrid1 = $find("<%= RadGrid1_ClientID %>");  
     if(RadGrid1 != null)   
     {  
     var scrollArea = RadGrid1.GridDataDiv;  
     scrollArea.scrollTop = eventArgs.get_scrollTop();  
     scrollAreascrollArea.scrollLeft = scrollArea.offsetWidth-eventArgs.get_scrollLeft();  
     }  
     
 } 

Does someone see the fault?

thanks

Christian
Christian
Top achievements
Rank 1
 answered on 24 Mar 2009
2 answers
398 views
Hi -

I'm using the PagerStyle-Mode = "NextPrevNumericAndAdvanced" so that my client can have all the paging options and *mainly* dynamically be able choose the exact number of records returned using the textbox.  They requested to have the paging put on the TopAndBottom, but the textbox to directly input the page size disappears. 

Short of writing all the code to have custom paging to revive this feature, is there any way to have this function reappear on the TopAndBottom?  Or any reason why it only appears with the pager style at the bottom?

Thanks!
Rich
Rich
Top achievements
Rank 2
 answered on 24 Mar 2009
2 answers
132 views
Hello!  First here is an overview of what I have currently:

-A user control that consists of a RadGrid and a public function for pages using the Control to set/data bind the data source.
-A page with a RadScriptManager, RadTabStrip, and a RadMultiPage
-The tabstrip has two tabs defined in the aspx file
-The multipage has two RadPageViews that each contain an instance of my user control, they have different ID's defined

The only thing I have in the aspx code behind file is:

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Retrieve ret = new Retrieve();
                List<Document> movies = ret.GetDocs("Movies");
                moviesDocumentList.SetDataSource(movies);   //moviesDocumentList is the first instance of my userControl

                List<Document> docs = ret.GetDocs("Screams");
                screamsDocumentList.SetDataSource(docs);  //the second instance of my user control
            }
        }

Whenever I load the page like this, the moviesDocumentList Control shows up, but the entire tab strip disapears (you can see it in the html if you do view source though).

Now, what really wierds me out is that if I comment out the last two lines in my page load function (the one that binds data to the screamsDocumentList) the tabs strip will display correctly.

I had some other issues past this, but I think they all stemed from this initial confusion.  Any idea what is up?  I can provide my solution if needed.
Zachary
Top achievements
Rank 1
 answered on 24 Mar 2009
9 answers
268 views
I have the RadInputManager targeted on a RadGrid with TextField's. However I get an error if one of the TextField's has Visibility="False". This error comes if just one single field is hidden in a grid with 20 item rows.

The JavaScript error is:

_4f is null 

Which targets the following line in a ScriptResource.axd:

if((_4f.value)&&(_4f.value==this._owner.get_emptyMessage())){ 

I think it should be possible to hide fields, but please tell me if I'm missing something?


Henrik
Top achievements
Rank 1
 answered on 24 Mar 2009
1 answer
149 views
Hi

I am still missing that feature to have two or more independt Tooltips open at any given time.

With Q1 2009, how do I attach a function to the close button onclick event?

See this page
http://www.telerik.com/community/forums/aspnet-ajax/tooltip/two-independent-radtooltpmanagers.aspx

function OnClientShow(sender, eventArgs)
{

     var popup = sender.get_popupElement();
  var closeButton = $telerik.getElementByClassName(popup, "CloseButton", "A");
  closeButton.onclick = function() { alert("I was clicked"); }

}


This no longer works with Q1 2009.

Best Regards
Thomas Kristensen
Tervel
Telerik team
 answered on 24 Mar 2009
9 answers
319 views
I just upgraded my Telerik.dll to 2008.3.1312.35 and my filter on enter seems to have quit working.

I have this code in the code-behind for the ItemCreated event:
        If e.Item.ItemType = GridItemType.FilteringItem Then 
            Dim filterItem As GridFilteringItem = e.Item 
            For Each col As GridColumn In rgSelectCustNo.MasterTableView.RenderColumns 
                If col.UniqueName = "ExpandColumn" Or col.UniqueName = "RowIndicator" Then 
                    Continue For 
                Else 
                    Dim colName As String = col.UniqueName 
                    Dim txt As TextBox = CType(filterItem(colName).Controls(0), TextBox) 
                    If Not txt Is Nothing Then 
                        txt.Attributes.Add("onkeypress""filterOnEnter(this, event, '" & rgSelectCustNo.ClientID & "', '" & colName & "')"
                    End If 
                End If 
            Next 
        End If 

And this javascript in the HTML:
        var cancelFilterMenu = false
        var tableView = null
 
        function filterOnEnter(sender, e, gridId, col) { 
            if (e.keyCode == 13) { 
                cancelFilterMenu = true
                if (tableView == null) { 
                    tableView = $find(gridId).get_masterTableView(); 
                } 
                var filter = Telerik.Web.UI.GridFilterFunction.Contains 
 
                var query = sender.value; 
 
                if (query.endsWith('*') && query.startsWith('*')) { 
                    filter = Telerik.Web.UI.GridFilterFunction.Contains; 
                    query = query.substr(1, query.length - 2); 
                } else if (query.endsWith('*')) { 
                    filter = Telerik.Web.UI.GridFilterFunction.StartsWith; 
                    query = query.substr(0, query.length - 1); 
            } 
                 
                tableView.filter(col, query, filter); 
            } 
        } 
 

The application is still working on my development and production machine, but only because I have not upgraded the Telerik.dll yet. The web page with the above code has not been modified since deployment to both the development and production environments.

Thanks!


Henrik
Top achievements
Rank 1
 answered on 24 Mar 2009
2 answers
245 views
I am running into an issue with the "ctrl+v" functionality on a Mac running Safari version 3.1.2.  Using the Telerik web site as an example (http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) I am attempting to content copied from a Word document and pasting it into the editor body.

Here are the steps I am following:

- Mac OS X 10.5.5
- Safari 3.1.2
- Word document with lots of colors, images, font styles, sizes, etc
- Going to http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
- Open-Apple A to select all content
- Open-Apple V to paste Word content
- I do not get a dialog box or anything - it simply pastes all of the "ugly" formatted text directly into the editor
- If I click on the format stripper tool, it will remove the formatting
- If I click on the "Paste" icon, it will remove the formatting
- If I right-click and use "Paste" from the context menu, it will NOT remove the formatting
- If I click on the "Paste as plaint text" icon, it will display the popup dialog where I again use Ctrl+V, and it will remove the formatting

While there are work arounds from a user perspective, we cannot trust our users to go through these steps, and in fact, they are finding them and exploiting them to by-pass the style rules we have in place for our web site.  Is there a way on Safari to force Ctrl+V to clean/strip the formatting? 

I have tried the following programmatic approaches:

- Added Javascript code per http://www.telerik.com/help/aspnet-ajax/cleaningwordformattingonpageloadandonsubmit.html - to do the following:
    * ALL
    * SPAN
    * CSS
    * WORD_ALL
    * WORD_NO_FONT

- Added the <contextMenu> options to the tools file to remove the "Paste from Word" or "Paste HTML" options

- Added the StripFormattingOnPaste to AllExceptNewLines

Things work fine in IE and Firefox, just not Safari...

Thanks for any assistance anyone can offer.
Kyle Parker
Kyle Parker
Top achievements
Rank 1
 answered on 24 Mar 2009
0 answers
172 views
Hi,

I have a very long page.
I would like to have -scrolling the page- the panel bar always present on visible area of page.
Like a floating windows on the page with panel bar inside.

Is that possible?
There is an example?

Thanks

Renato
RRE
Top achievements
Rank 2
Iron
 asked on 24 Mar 2009
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?