Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
I am trying to determine if the MenuItem that was clicked is a child and if so what is the parent or owner value or text. I am using the server-side event  RadScheduler1_TimeSlotContextMenuItemClicking and am having difficulty getting it.

Protected Sub RadScheduler1_TimeSlotContextMenuItemClicking(ByVal sender As ObjectByVal e As Telerik.Web.UI.TimeSlotContextMenuItemClickingEventArgs) Handles RadScheduler1.TimeSlotContextMenuItemClicking  
        If e.MenuItem.Value = "EnableGrouping" Then 
            RadScheduler1.GroupBy = "Location" 
        ElseIf e.MenuItem.Owner.??? Then 
        Do Something  
 
        End If 
 
        UpdateScheduler()  
    End Sub 

Thanks in advance
Peter
Telerik team
 answered on 17 May 2010
1 answer
154 views
Hi,

I created a raddock programmatically and then use the LoadWidget routine to add a Web user control to it. It works well but how can I pass parameters  to of the web user control? 

Thanks.
Pero
Telerik team
 answered on 17 May 2010
5 answers
292 views
We have a problem that we're able to reproduce consistently with nothing on a page but a radwindowmanager and a few textboxes.

When we popup a modal dialog and then close it the ability to tab between the textboxes is removed. We've tried everything to no avail. If the dialog is not modal everything works fine. Is there something we need to do to fix this or is this a bug with telerik?

Thomas Eberhard

Below is the page we're using - the "Pagewithinformation" doesn't have any affect on the popup as we've tried it with many different pages and they're all the same
<html> 
    <head> 
        <title>Title</title> 
        <script type="text/javascript"
            function OnClientClose() [ ] 
            function CallBackFunction() [ ] 
 
            function ShowInformation() [ 
                    var oManager = GetRadWindowManager(); 
                    var oMailWnd; 
                    oMailWnd = window.radopen('Pagewithinformation.aspx'); 
                    oMailWnd.setSize(400, 250); 
                    oMailWnd.set_modal(true); 
            ] 
                 
        </script> 
 
    </head> 
    <body> 
        <form runat="server"
            <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager> 
            <telerik:RadWindowManager 
                ID="radWindowManager" 
                Skin="Office2007" 
                VisibleOnPageLoad="true" 
                OnClientClose="OnClientClose" 
                Width="468" 
                ClientCallBackFunction="CallBackFunction" 
                VisibleStatusBar="false" 
                Height="306px" 
                runat="server"
            </telerik:RadWindowManager>     
 
        <asp:TextBox ID="TextBox1" runat="server" /> 
        <asp:TextBox ID="TextBox2" runat="server" /> 
        <asp:TextBox ID="TextBox3" runat="server" /> 
        <asp:TextBox ID="TextBox4" runat="server" /> 
        <asp:TextBox ID="TextBox5" runat="server" /> 
        <asp:TextBox ID="TextBox6" runat="server" /> 
        <asp:TextBox ID="TextBox7" runat="server" /> 
        <asp:TextBox ID="TextBox8" runat="server" /> 
        <asp:TextBox ID="TextBox9" runat="server" /> 
        <button onclick='javascript:ShowInformation();'>Click Me</button> 
        </form> 
    </body> 
</html> 
 

Svetlina Anati
Telerik team
 answered on 17 May 2010
21 answers
790 views
Hi,
 I'm following the documentation section 'Defining custom CSS styles' and I can't seem to get the rad editor to use the custom external stylesheet defined in RadEditor.css.

I've created a new css file whose path is: C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.1.0.0__1f131a624888eeed\RadControls\Editor\

The styles dont appear in the drop down style picker even after restarting IIS.

I'm using the rad editor with WSS v3.0.

Any help would be much appreciated,
Tom.
Lini
Telerik team
 answered on 17 May 2010
6 answers
212 views
Hi. Here's my problem:

I'm trying to set some items in a ListBox to be checked after the ListBox is databound. My problem is that even though the loop is executed and Visual Studio reports each item I want as checked = true, it doesn't appear to be so. Any suggestions?

            
            rlbRoles.DataBind(); 
            stmt = 
                @"Select auth_Roles.Name as Name, auth_Roles.NameEL as NameEL from auth_Roles INNER JOIN auth_UserRoles on auth_UserRoles.RoleId = auth_Roles.RoleId INNER JOIN auth_Users on auth_UserRoles.UserId = auth_Users.UserId 
                    WHERE auth_Users.UserId = @UserId"
 
            dt = DbSql.ExecuteDataTable(stmt, 
                                        new List<SqlParameter>(new[] 
                                                                   { 
                                                                       new SqlParameter("@UserId"
                                                                                        DataBinder.Eval(sender, 
                                                                                                        "DataItem.ID")) 
                                                                   } 
                                            ) 
                ); 
 
            int i = 0; 
            foreach (DataRow r in dt.Rows) 
            { 
                rlbRoles.FindItemByValue(dt.Rows[i]["Name"].ToString()).Checked = true
                i++; 
            } 
Lighthouse Developer
Top achievements
Rank 1
 answered on 17 May 2010
6 answers
124 views
Hello,

In my page I have one main RadAjaxPanel and inside I have 3 RadPageView. The second and most important page has one repeater to show products and inside of it there's another repeater to show, lest say, orders of that product. This page became bigger and bigger so a new RadAjaxPanel was added so the navigability was more pleasant to user witch were great. On every row of the repeater I've created 2 div's, one visible to show (only with labels) and the other hidden to edit (with labels and textboxes)... To this textboxes I've assigned different asp validators but they don't fire because they are inside more than one RadAjaxPanel. I've commented the inside panel and they were working fine, but with them they just don't do anything.

Is there any way I can enable those validators even being inside several panels?

Thank you for you're time.
Maria Ilieva
Telerik team
 answered on 17 May 2010
5 answers
218 views
Dear Telerik,
         I reviewed the help page and came to know the advantage of RadInputManager. I would like to know one information that whether it is possible to apply RadInputManager to all type of validator controls like required,compared etc ?. I have the below kind of validator code in my application;
<asp:textbox id="txtWidth" tabIndex="5" runat="server" title="(float)"  MaxLength="7" Columns="6"></asp:textbox><asp:requiredfieldvalidator id="rqux" Runat="server" Width="100%" InitialValue="" ErrorMessage=":: Required 'Width' missing or invalid." 
                                                    Display="Dynamic" ControlToValidate="txtWidth">&nbsp;<span class="warning">*</span></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="rgux" Runat="server" Width="100%" ErrorMessage=":: Required 'Width' invalid (format: '0-9999.99')." 
                                                    Display="Static" ControlToValidate="txtWidth" ValidationExpression="^\d{1,4}(\.\d{1,2})?$">&nbsp;*</asp:regularexpressionvalidator> 
So how can we apply the above code with RadInputManager;

I also would like to know, if i am having 10 text boxes and two dropdowns in my EditFormTemplate. Is there any possibility to apply RadInputManger with dropdown? and also can we use one RadInputManager settings to all textboxes in EditFormTemplate? as i demonstrated below;
<telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Office2007">  
                    <telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" InitializeOnClient="false">  
                        <TargetControls> 
                            <telerik:TargetInput ControlID="txt1" /> 
                        </TargetControls> 
                        <TargetControls> 
                            <telerik:TargetInput ControlID="txt2" /> 
                        </TargetControls> 
                        <TargetControls> 
                            <telerik:TargetInput ControlID="txt3" /> 
                        </TargetControls> 
                    </telerik:TextBoxSetting> 

I came over all help topics related to RadInputManager, but no one gave adequate information related to above mentioned scenarios. So please do the favourable to know the ideas.

Regards,
Chandran
Maria Ilieva
Telerik team
 answered on 17 May 2010
3 answers
94 views
I have a grid that I am binding manually using the NeedsDataSource event, rather than using a DataSourceControl.

I am using EditMode="Popup", EditFormType="Template".

The template is working great for editing rows.

I am having trouble figuring out how to get the insert to work. When I click on the "Add New Record" link at the top of the grid, nothing is happening. It acts like it is making a callback, and the OnInsertCommand event is firing, but the popup does not open.

Is there a way to get this to work without using a DataSourceControl and Automatic Inserts?
Pavlina
Telerik team
 answered on 17 May 2010
1 answer
124 views
hi guys.
when i use teleric component and when form or code behinde has an error i see this page!!!
how i can fix it that see the error.non this page?
page pic when contain error : http://img.elemancity.ir/images/fvp6q3bklhjfrjgurkxj.jpg
tnx
fvp6q3bklhjfrjgurkxj.jpg
Kiara
Top achievements
Rank 1
 answered on 17 May 2010
12 answers
236 views

When we attempt to use the image picker on one of our blogs, we get an error message. This error message is specific to this blog only - the tools work fine on other blogs. (Even other blogs in the same site collection.) We've tried disabling and re-enabling the feature, with no luck. Any help would be greatly appreciated!

Here's the error message:

 

Server Error in '/' Application.

List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x81020026): List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +0
   Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +333

[SPException: List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.]
   Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +447
   Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName) +1228
   Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName) +131
   Microsoft.SharePoint.SPListCollection.ItemByInternalName(String strInternalName, Boolean bThrowException) +565
   Microsoft.SharePoint.SPListCollection.GetListById(Guid uniqueID, Boolean bThrowException) +138
   Microsoft.SharePoint.SPListCollection.get_Item(Guid uniqueID) +76
   Telerik.SharePoint.Editor.SPContentProvider.GetPermissions(Guid listId, SPWeb web) +54
   Telerik.SharePoint.Editor.SPContentProvider.CreateDirectoryItem(SPFolder folder) +168
   Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) +36
   Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) +10
   Telerik.Web.UI.RadFileExplorer.GetFolders(String virtualPath) +70
   Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode) +172
   Telerik.Web.UI.RadFileExplorer.BindExplorer() +859
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +599
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

 

Stanimir
Telerik team
 answered on 17 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?