Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
243 views
Hi,
I found that I could not edit the Self-referencing hierarchy and there is filtering bug in Self-referencing hierarchy too!Here is the video demo and my code:

http://www.youtube.com/watch?v=X_HrlJJSgko

<form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <div> 
        <asp:AccessDataSource ID="adsCategories" runat="server"   
            DataFile="~/App_Data/dbmx.mdb"   
            SelectCommand="SELECT * FROM [Categories] where isDelete = False"></asp:AccessDataSource> 
        <asp:AccessDataSource ID="adsProducts" runat="server"   
            DataFile="~/App_Data/dbmx.mdb"   
            SelectCommand="SELECT * FROM [Products] where isDelete = False"></asp:AccessDataSource> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="adsCategories"   
            GridLines="None" AllowFilteringByColumn="True" AllowPaging="True"   
            AutoGenerateEditColumn="True" Skin="Office2007">  
            <MasterTableView DataKeyNames="categoryID,categoryParentID" HierarchyLoadMode="Client" DataSourceID="adsCategories" HierarchyDefaultExpanded="False">  
                <SelfHierarchySettings KeyName="categoryID" ParentKeyName="categoryParentID" /> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            </MasterTableView> 
            <ClientSettings> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </div> 
    </form> 
Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated  
        If TypeOf e.Column Is GridExpandColumn Then 
            e.Column.Visible = False 
        ElseIf TypeOf e.Column Is GridBoundColumn Then 
            e.Column.HeaderStyle.Width = Unit.Pixel(100)  
        End If 
    End Sub 
 
    Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load  
        If Assembly.GetAssembly(GetType(ScriptManager)).FullName.IndexOf("3.5") <> -1 Then 
            RadGrid1.MasterTableView.FilterExpression = "it[""categoryParentID""] = Convert.DBNull" 
        Else 
            RadGrid1.MasterTableView.FilterExpression = "categoryParentID IS NULL" 
        End If 
    End Sub 
 
    Public Sub Page_PreRenderComplete(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.PreRenderComplete  
        HideExpandColumnRecursive(RadGrid1.MasterTableView)  
    End Sub 
 
    Public Sub HideExpandColumnRecursive(ByVal tableView As GridTableView)  
        Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.NestedView)  
        For Each nestedViewItem As GridNestedViewItem In nestedViewItems  
            For Each nestedView As GridTableView In nestedViewItem.NestedTableViews  
                nestedView.Style("border") = "1" 
 
                Dim MyExpandCollapseButton As Button = DirectCast(nestedView.ParentItem.FindControl("MyExpandCollapseButton"), Button)  
                If nestedView.Items.Count = 0 Then 
                    If Not MyExpandCollapseButton Is Nothing Then 
                        MyExpandCollapseButton.Style("visibility") = "hidden" 
                    End If 
                    nestedViewItem.Visible = False 
                Else 
                    If Not MyExpandCollapseButton Is Nothing Then 
                        MyExpandCollapseButton.Style.Remove("visibility")  
                    End If 
                End If 
 
                If nestedView.HasDetailTables Then 
                    HideExpandColumnRecursive(nestedView)  
                End If 
            Next 
        Next 
    End Sub 
 
    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemCreated  
        CreateExpandCollapseButton(e.Item, "categoryID")  
 
        If TypeOf e.Item Is GridHeaderItem AndAlso Not e.Item.OwnerTableView Is RadGrid1.MasterTableView Then 
            e.Item.Style("display") = "none" 
        End If 
 
        If TypeOf e.Item Is GridNestedViewItem Then 
            e.Item.Cells(0).Visible = False 
        End If 
    End Sub 
 
    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        CreateExpandCollapseButton(e.Item, "categoryID")  
    End Sub 
 
    Public Sub CreateExpandCollapseButton(ByVal item As GridItem, ByVal columnUniqueName As String)  
        If TypeOf item Is GridDataItem Then 
            If item.FindControl("MyExpandCollapseButton") Is Nothing Then 
                Dim button As New Button()  
                AddHandler button.Click, AddressOf button_Click  
                button.CommandName = "ExpandCollapse" 
                button.CssClass = IIf((item.Expanded), "rgCollapse", "rgExpand")  
                button.ID = "MyExpandCollapseButton" 
 
                If item.OwnerTableView.HierarchyLoadMode = GridChildLoadMode.Client Then 
                    Dim script As String = [String].Format("$find(""{0}"")._toggleExpand(this, event); return false;", item.Parent.Parent.ClientID)  
 
                    button.OnClientClick = script  
                End If 
 
                Dim level As Integer = item.ItemIndexHierarchical.Split(":"c).Length  
                If level > 1 Then 
                    button.Style("margin-left") = level + 10 & "px" 
                End If 
 
                Dim cell As TableCell = (DirectCast(item, GridDataItem))(columnUniqueName)  
                cell.Controls.Add(button)  
                cell.Controls.Add(New LiteralControl("&nbsp;"))  
                cell.Controls.Add(New LiteralControl((DirectCast(item, GridDataItem)).GetDataKeyValue(columnUniqueName).ToString()))  
            End If 
        End If 
    End Sub 
 
    Sub button_Click(ByVal sender As Object, ByVal e As EventArgs)  
        CType(sender, Button).CssClass = IIf((CType(sender, Button).CssClass = "rgExpand"), "rgCollapse", "rgExpand")  
    End Sub 
louis chan
Top achievements
Rank 1
Iron
 answered on 17 Mar 2010
4 answers
244 views
Hi there,

I have a grouping grid and would like to insert something in the - I believe it would be the GridGroupSplitterColumn - of the individual items. I do not want to replace the Expand/Collapse images - I would like to use the space in the automatically created cell underneath the Expand/Collapse images (am I making sense here?)

Is this possible? Can someone point me in the right direction?
Thx in advance!
Rgds - Marcus.
Marcus
Top achievements
Rank 1
 answered on 17 Mar 2010
1 answer
63 views

 

The actual tool I am testing this on has 2 table views inside a rad grid.

On the last level I added an upload file feature.  But when the click event happens the RadUpload no longer has a file.  Even though I selected a file.

Here is what the aspx code looks like:
<
telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" DataSourceID="ObjectDataSource1" runat="server" 

 

 

AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AllowMultiRowSelection="False"  

 

AllowPaging="True" GridLines="None">

 

<PagerStyle Mode="NumericPages"></PagerStyle>

 

<MasterTableView DataSourceID="ObjectDataSource1"

 

DataKeyNames="PONumber" AllowMultiColumnSorting="True">

 

<DetailTables>

 

<telerik:GridTableView DataKeyNames="PurchaseOrderItemId" AutoPostBack="True" AllowAutomaticUpdates="true"

 

EditMode="InPlace" DataSourceID="ObjectDataSource2" Width="100%" runat="server">

 

<ParentTableRelation>

 

<telerik:GridRelationFields DetailKeyField="PONumber" MasterKeyField="PONumber" />

 

</ParentTableRelation>  

 

<DetailTables>

 

<Columns>

<

 

telerik:GridBoundColumn SortExpression="DocumentTypeName" HeaderText="Document Type Name"

 

 

HeaderButtonType="TextButton" DataField="DocumentTypeName" UniqueName="DocumentTypeName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn UniqueName="DocumentFileName" HeaderText="File Name"

 

DataField="DocumentFileName">

 

 

<ItemTemplate>

 

<asp:HyperLink ID="hlFile" runat="server" Target="_blank" Text='<%# Bind("DocumentFileName") %>' /> 

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="ReplaceFileName" HeaderText="Replace File"

 

 

DataField="ReplaceFileName">

 

 

<ItemTemplate>

 

 

<telerik:RadUpload ID="FileUpload1" runat="server" MaxFileInputsCount="1" InitialFileInputsCount="1"

 

 

ControlObjectsVisibility="None" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Save" HeaderButtonType="TextButton" UniqueName="Save">

 

 

<ItemTemplate>

 

 

<asp:Button ID="btnSave" runat="server" Text="Save" Width="80" ToolTip="Click here to save the new file."

 

 

OnClick="btnSave_Click" UseSubmitBehavior="False" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>
</

 

Columns>

 

 

</telerik:GridTableView>

 

</DetailTables>

 

<Columns>

 

<telerik:GridBoundColumn SortExpression="PONumber" HeaderText="PO Number" HeaderButtonType="TextButton"

 

DataField="PONumber" UniqueName="PONumber">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company Name" HeaderButtonType="TextButton"

 

 

DataField="CompanyName" UniqueName="CompanyName">

 

</telerik:GridBoundColumn>

 

</Columns>

 

</MasterTableView>

 

<ClientSettings>

 

<Selecting AllowRowSelect="true" />

 

</ClientSettings>

 

</telerik:RadGrid>

Here is the save function in cs:

 

protected

 

void btnSave_Click(object sender, EventArgs e)

 

 

{

 

 

GridDataItem item = (GridDataItem)((Button)sender).Parent.Parent;  

 

//PO Number works fine.
int
iPONumber = item.OwnerTableView.DataKeyValues[item.ItemIndex]["PONumber"] == DBNull.Value ? 0 : Convert.ToInt32(item.OwnerTableView.DataKeyValues[item.ItemIndex]["PONumber"]);

 

string sDocumentTypeName = item.OwnerTableView.DataKeyValues[item.ItemIndex]["DocumentTypeName"].ToString();

 

string sFileName = item.OwnerTableView.DataKeyValues[item.ItemIndex]["DocumentFileName"].ToString();

 

 

//This code finds the RadUpload but it no longer has the attached files when the Save button is clicked.
RadUpload
RadUpload1 = item.FindControl("FileUpload1") as RadUpload;

 


//This should have a count value of 1 for the 1 file I added.

 

 

 

if (RadUpload1.UploadedFiles.Count == 0)

{

// skips out if there are no files  

 

 

 

 

return;

}
//process the file if one exists.
}

 

 

Mark Match
Top achievements
Rank 1
 answered on 17 Mar 2010
4 answers
197 views
Hi. I'm using RadControls_for_ASP.NET_AJAX_2009_3_1314_dev. I have multiple RadToolBarDropDown's and RadToolBarButton's. When I change the font family the buttons aren't vertically aligned and appear all over the place. This doesn't happen with the default font that toolbar uses. Thanks.

.rtbText { font: normal 11px verdana, sans-serif !important; color: #333333 !important; } 
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Mar 2010
1 answer
209 views
 Even session timeout is set to 20 in web.config, the session is not in stable. now and then it is clared, I

had written the sessionstage in config as follows:

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"  

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"      cookieless="false"   

timeout="1200"     />


and as another one

 <sessionState mode="InProc"  timeout="120" regenerateExpiredSessionId="false">
    
      <providers>
        <clear/>
      </providers>
    </sessionState>


Can you give us the solution for it. Or is there any controversy against your telerik.web.ui trial version,

which is used in our web for demo.

Expecting your needy and primary solution with eager,

With Regards
S Suriya Narayanan
  
Daniel
Telerik team
 answered on 16 Mar 2010
2 answers
371 views
My RadMenu does not have cursor defined, so it always shows the regular cursor when hovered over a menu item. I want to change it to pointer (hand) on hover. I cannot do it from the css because not all items have url tied to them, especially the ones that have child nodes tied to them. Here's my xml example.

<Menu> 
   <Group Flow="Vertical"> 
      <Item Text="Products"> 
         <Group> 
            <Item Text="Product1" Href="~/Product1.aspx" Value="Product1" /> 
            <Item Text="Product2" Href="~/Product2.aspx" Value="Product2" /> 
            <Item Text="Product3" Href="~/Product3.aspx" Value="Product3" /> 
         </Group> 
      </Item> 
      <Item Text="Usage"> 
         <Group> 
            <Item Text="Region"> 
               <Group> 
                  <Item Text="Asia" Href="~/Asia.aspx" Value="Asia" /> 
                  <Item Text="Europe" Href="~/Europe.aspx" Value="Europe" /> 
               </Group> 
            </Item> 
         </Group> 
      </Item> 
   </Group> 
</Item> 

As you can see, Products, Usage, and Region don't have urls tied to them. So when user hovers on them, I want the cursor to be the default one, but when they hover on others, eg. Product1-3, Asia, or Eurpoe, I want the cursor to turn to pointer (hand).

What is the best way I can achieve this?

This is what I currently have. It is on server-side. However, I think client-side approach will be better.
foreach (RadMenuItem rmItem in rmMenu.Items)  
{  
    ChangeCursorStyle(rmItem);  
}  
  
private void ChangeCursorStyle(RadMenuItem rmItem)  
{  
    if (!String.IsNullOrEmpty(rmItem.NavigateUrl))  
        rmItem.Style.Add("cursor", "pointer");  
  
    foreach (RadMenuItem item in rmItem.Items)  
    {  
        ChangeCursorStyle(item);  
  
    if (!String.IsNullOrEmpty(item.NavigateUrl))  
    {  
        item.Style.Add("cursor", "pointer");  
    }  
} 


Thanks.
Baal
Top achievements
Rank 1
 answered on 16 Mar 2010
2 answers
143 views
Hi,

I have a problem with modal window, that is opened form inside of   RadAjaxPanel.

I have this RadAjaxPanel tag with Timer.

<telerik:RadAjaxPanel ID="ExistReportsGrid_Panel" runat="server" Visible="false">
                            <asp:Timer ID="ExistReportsGrid_Timer" runat="server" Interval="4000" OnTick="ExistReportsGrid_Timer_Tick"
                                Enabled="false">
Timer is enabled serverside.

On timer tick I enable one button also inside ExistReportsGrid_Panel, that opens modal windows. I open modal window this way:

<Buttons:xxx ID="BtnShowModal" Text="Show graph" runat="server"  OnClick="showModal"
                    meta:resourcekey="BtnShowModal" Visible="true" />

RadWindowManager is also insde RadAjaxPanel
<telerik:RadWindowManager ID="RadWndwManager" runat="server" Behavior="Default"
                            InitialBehavior="None" Left="" style="display: none;" Top="">
</telerik:RadWindowManager>

This is function I use for opening modal wnd
        RadWindow WinPreview = new RadWindow();
        WinPreview.Width = Unit.Pixel(840);
        WinPreview.Height = Unit.Pixel(700);
        WinPreview.NavigateUrl = "~/pages/xxxx/xxxxxx.aspx?lid=" + SelectedReport.ToString();
        WinPreview.Behaviors = WindowBehaviors.Move | WindowBehaviors.Resize | WindowBehaviors.Close | WindowBehaviors.Reload | WindowBehaviors.Maximize;
        WinPreview.VisibleOnPageLoad = true;
        WinPreview.Modal = true;
        WinPreview.Title = "";
        WinPreview.VisibleStatusbar = false;
        WinPreview.KeepInScreenBounds = true;
        WinPreview.EnableEmbeddedBaseStylesheet = true; //Wenn in Codebehind dann auf true sonst kein Style
        RadWndwManager.Windows.Add(WinPreview);


When modal window shows, I get really weird Window with something like tabs, and width is near infinity.

This code works well, and gives nice window if RadWindowManager and button are outside RadAjaxPanel

see attached screenshots of modal window


Felix
Top achievements
Rank 2
 answered on 16 Mar 2010
2 answers
170 views
hi.
I'm having a problem with telerik: RadUpload which discussed below.
First, my website is programmed with the framework 3.5 using the Q2 2009 SP1 version of ASP.NET AJAX.
Second, the problem I am experiencing is when I upload a file to the internet, that is, on my website when you upload a file is usually a photo or image, which is renamed to avoid problems when you want upload a file with the same name. This control (RadUpload) is in a form in which besides also upload the image stored in the database text fields entered by users and the name of the image, when the customer clicks the accept button .
Now I handle this event in the codebehind where I try to save the image to the destination folder and retrieve the name to insert in the database.
This is the code I use:

Private Function guardarArchivo (ByVal strSql As String, ByVal strSqlValues As String) As String
        
Dim string As String = ""
        
Dim FileName As String = ""
        
If Foto.UploadedFiles.Count> 0 Then
            
For Each uploadedFile As UploadedFile In Foto.UploadedFiles
                
TargetFolder Dim As String = Server.MapPath ( "~ / Images / Pictures" Notes ")
                
FileName = DateTime.Now.Ticks.ToString () & archivoSubido.GetExtension ()
                
archivoSubido.SaveAs (Path.Combine (TargetFolder, FileName), False)
            
Next
            
strSql = strSql & ", [Picture]
            
strSqlValues = strSqlValues & " '" & FileName & "'"
            
str = "ok"
        
Else
            
str = "error1"
        
End If
        
Return string
    
End Function

which is called from the event
Protected Sub Save (ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ButtonSend.Click

but when checks Foto.UploadedFiles.Count> 0 always tells me not
I need your help
I wonder if the IIS7 or I am missing something in the web.config


<?xml version="1.0" encoding="UTF-8"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings>
        <add key="StartPage" value="~/Portada.aspx" />
        <add key="Telerik.Skin" value="Hay" />
    </appSettings>
    <connectionStrings>
        <!--<add name="CulturaConnectionString" connectionString="Data Source=quierocultura.db.5690715.hostedresource.com; Initial Catalog=quierocultura; User ID=quierocultura; Password=Cultura05/03;" providerName="System.Data.SqlClient"/>-->
        <add name="CulturaConnectionString" connectionString="Data Source=GONZALO-PC;Initial Catalog=CulturaEnLinea;Integrated Security=True; user id=Gonzalo; password=;;packet size=4096" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
        <customErrors mode="Off" />
        <httpRuntime maxRequestLength="3072" executionTimeout="110" />
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation batchTimeout="180" debug="true" explicit="true" strict="false">
            <assemblies>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies>
        </compilation>
        <pages>
            <namespaces>
                <clear />
                <add namespace="System" />
                <add namespace="System.Collections" />
                <add namespace="System.Collections.Generic" />
                <add namespace="System.Collections.Specialized" />
                <add namespace="System.Configuration" />
                <add namespace="System.Text" />
                <add namespace="System.Text.RegularExpressions" />
                <add namespace="System.Linq" />
                <add namespace="System.Xml.Linq" />
                <add namespace="System.Web" />
                <add namespace="System.Web.Caching" />
                <add namespace="System.Web.SessionState" />
                <add namespace="System.Web.Security" />
                <add namespace="System.Web.Profile" />
                <add namespace="System.Web.UI" />
                <add namespace="System.Web.UI.WebControls" />
                <add namespace="System.Web.UI.WebControls.WebParts" />
                <add namespace="System.Web.UI.HtmlControls" />
            </namespaces>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
            </controls>
        </pages>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows" />
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
        <httpHandlers>
            <remove verb="*" path="*.asmx" />
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
        </httpModules>
    </system.web>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5" />
                <providerOption name="WarnAsError" value="false" />
            </compiler>
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5" />
                <providerOption name="OptionInfer" value="true" />
                <providerOption name="WarnAsError" value="false" />
            </compiler>
        </compilers>
    </system.codedom>
    <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true" />
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
            <remove name="ScriptModule" />
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated" />
            <remove name="ScriptHandlerFactory" />
            <remove name="ScriptHandlerFactoryAppServices" />
            <remove name="ScriptResource" />
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        </handlers>

    </system.webServer>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>

ah I forget to mention that my page is hosted on godaddy servers and have permits mid-level of confidence and when I try to upload the files with a form of testing gives me error.

 
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

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:

[SecurityException: Request failed.]
   
System.Security.CodeAccessSecurityEngine.ThrowSecurityException (Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150
   
System.Security.CodeAccessSecurityEngine.ThrowSecurityException (Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
   
System.Security.CodeAccessSecurityEngine.CheckSetHelper (PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean ThrowException) +284
   
System.Security.PermissionSetTriple.CheckSetDemand (demandSet PermissionSet, PermissionSet & alteredDemandset, RuntimeMethodHandle rmh) +69
   
System.Security.PermissionListSet.CheckSetDemand (PermissionSet pset, RuntimeMethodHandle rmh) +150
   
System.Security.PermissionListSet.DemandFlagsOrGrantSet (Int32 flags, PermissionSet grantSet) +30
   
System.Threading.CompressedStack.DemandFlagsOrGrantSet (Int32 flags, PermissionSet grantSet) +40
   
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper (Int32 permission, PermissionSet targetGrant, CompressedStack SecurityContext) +123
   
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper (Int32 permission, PermissionSet targetGrant) +54


Grettings
Gonzalo
Top achievements
Rank 1
 answered on 16 Mar 2010
1 answer
178 views
As I am iterating through the days, I am changing the back color of those days with scheduled events on them. I would like to change the default tool tip to also show a subject from the event. Here is what I have so far. It shows the default tool tip of the date as I mouse over. Is there a way to change that?

foreach(var row in rows) 
            { 
                e.Day.IsSelected = true; 
                e.Day.ToolTip = row["rSubject"].ToString(); 
                e.Cell.BackColor = System.Drawing.Color.LightGray; 
            } 

prismcarlson
Top achievements
Rank 1
 answered on 16 Mar 2010
4 answers
127 views
Dear All,

I was using version 2009.2.826.35 (sp1) with one of my old projects, I decided to install the latest version 2009.3.1103
Everything seems to be okay, until I navigate to a page using Tab-strip and I found the scroll buttons have stopped working.
This Tab-strip contains tabs that created dynamically at run-time according to the example from the demo

I create another empty page with the following script that defines the tabs statically:
<telerik:RadTabStrip  
    ID="RadTabStrip2"  
    runat="server" 
    SelectedIndex="0" 
    MultiPageID="RadMultiPage2" 
    Orientation="HorizontalTop" 
    AutoPostBack="true" 
    EnableEmbeddedScripts="true" 
    ScrollButtonsPosition="Right" 
    ScrollChildren="true"> 
        <Tabs> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
            <telerik:RadTab Text="Tab1" runat="server"></telerik:RadTab> 
        </Tabs> 
</telerik:RadTabStrip>   
<telerik:RadMultiPage ID="RadMultiPage2" runat="server" SelectedIndex="0"> 
</telerik:RadMultiPage> 

But the same behavior exists "No scrolling".

The buttons are there but when I hover the mouse over or click I get no response.
any ideas...

--- Edited at 9:46 AM ---------
I express the same behavior with the grid navigation buttons as well
-----------------------------------
Best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 16 Mar 2010
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?