Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
I'd like to color each tab in a tab strip differently, how might I do this?

For example, a red tab, a blue tab, a green tab...etc.  The tab and the page from the multipage would be the same color.

I have been using the Office2007 theme, one problem I have with this theme and what I want to do is that all the tabs are transparent except the selected one.  Only the selected one has a lighter blue outline.  In Visual Studio, all the tab outlines are shown.  Ideally, I'm fine with Office2007 look but I need to be able to color each of the tabs differently.

Michael Grant
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
1 answer
71 views
Hi all,

Are there any ways to make the footer disappeared when user does filtering?
And when it is not in Filter mode, the footer will appear again

Thanks.

Andy.
Princy
Top achievements
Rank 2
 answered on 27 Jan 2011
1 answer
205 views
I was trying to write some code to resize the textbox for a item in a radgrid that is using a datasource, using the ItemDataBound event.  But when I click the button to edit the row the e.Item is never of type GridEditFormItem.  It's always a GridDataItem even when e.ItemIsInEditMode is true.
Protected Sub myRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
    If ((TypeOf (e.Item) Is GridEditFormItem) And (e.Item.IsInEditMode)) Then
 
        '*** this will never be reached.
 
    End If
 
End Sub

As I mentioned, this event is properly fired when I begin to edit the row, and e.item.IsInEditMode is true for some of the items that are databound, but e.Item is always a GridDataItem.

Am I doing something wrong?
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
1 answer
77 views
Hi,

How can I load  user controls inside a Rad Window. Are there any samples.

Thank You.
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
8 answers
124 views

Hi all,
I'm doing grid that some row are able to edit but some are disable.
  I added GridEditCommandColumn to the grid and check at RadGrid1_PreRender event to hide Edit command at some rows as below...

Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
For rowindex = RadGrid1.Items.Count - 1 To 0 Step -1
            Dim row As GridDataItem = RadGrid1.Items(rowindex)
            If row.Cells(9).Text = "T" Then
                'Hides the Edit command for the row with Category = T
                row.Cells(6).Controls(0).Visible = False
            End If
        Next
  End Sub
This work fine.

Now I wanna add the feature RowDoubleClick to Edit data as below...

<ClientSettings>
    <ClientEvents OnRowDblClick="RowDblClick" />
</ClientSettings>
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function RowDblClick(sender, eventArgs) {
                    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
                }
            </script>
</telerik:RadCodeBlock>


But now every row can edit data. I want to disable RowDoubleClick at some rows those I made Edit Command to invisible.
Please advise how can I do this?

Thanks
Naunton
Top achievements
Rank 1
 answered on 27 Jan 2011
57 answers
691 views
I have a page with the UploadFile control on it, I was on Q2 and everything worked fine.

Just upgraded to Q3 and the control stopped working. When I click on the "Select" button nothing happens, I don't get the file browsing window.

Any thoughts?

Here's what I have on my page:

- radUpload
- radMultipage
- 2X radPageViews
Kellie
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
91 views

Hi All,

I have a bug that is a bit strange and hard to reproduce.  I think (not sure as I did not get the JS warnings) I was able to reproduce it on your demo site, here:
http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx

The steps to reproduce are:
- Dynamically created docks (with autopostback and Save/Load State).
- Click the header like crazy (about 10+ times)
- First I get a 'undefined' is null or not an object Line: 5869
- If I then try to move the dock, I get:
==========================================

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 26 Mar 2009 04:36:58 UTC

Message: 'undefined' is null or not an object
Line: 5869
Char: 1
Code: 0
URI: http://localhost/RiskShield/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_sm_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3aed16cbdc%3a854aa0a7%3a874f8ea2%3a5a6d9d23

Message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: {"Top":0,"Left":0,"DockZoneID":"ctl00_c_rdzDash","Collapsed":false,"Pinned":false,"Resizable":false,"Closed":false,"Width":"305px","Height":"331px","ExpandedHeight":0,"Index":1}.
Line: 6
Char: 62099
Code: 0
URI: http://localhost/RiskShield/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_sm_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3aed16cbdc%3a854aa0a7%3a874f8ea2%3a5a6d9d23

 



Any help would be greatly appreciated.

Thanks

Guido Tapia

Andrew
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
70 views
Hi,

Hi have a raduploadcontrol as below :

<telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpeg,.gif,.png,.jpg"
    ControlObjectsVisibility="None" OverwriteExistingFiles="True" AllowedMimeTypes="image/png,image/jpeg,image/gif">
</telerik:RadUpload>

File upload works perfectly fine in Firefox.

However when I try the same thing in IE it seems that there is no instance of the uploaded file available in the collection

Take a look at the firefox/ie images I've uploaded and you'll see what I mean.

For Each f As UploadedFile In RadUpload1.UploadedFiles
strNewMasterFilename = Server.MapPath("~/blogs/" & strActiveBlogName & "/" & strActiveBlogName & "_masterimage") & f.GetExtension

 f.SaveAs(strNewMasterFilename, True)
Next

So Basically the radupload1.uploadedfiles collection is returning null in IE, and the correct value in Firefox (also works fine in Opera)

Does anyone have any ideas ?

Its driving me crazy.


Grey
Top achievements
Rank 1
 answered on 26 Jan 2011
2 answers
203 views

I do have a problem with this tutorial after all.

The steps in the ActiveSkill tutorial ask you to create a SQL db with .sql files provided in the courseware.

This all goes to plan.

I then modified my ActiveSkillUI projects web.config, adding a connection string and a couple of role/membership providers.

Those 3 things look like this.

 
<connectionStrings>
        <add name="ActiveSkillConnectionString" connectionString="Data Source=NETDEV\SqlExpress;Initial Catalog=ActiveSkill;Integrated Security=True;User Id=ActiveSkillUser;Password=a0biozasu1" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
        <roleManager enabled="true">
            <providers>
                <add    connectionStringName="ActiveSkillConnectionString"
                        applicationName="/ActiveSkill"
                        name="RoleProvider"
                        type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                         
            </providers>
        </roleManager>
        <membership>
            <providers>
                <clear/>
                <add    name="AspNetSqlMembershipProvider"
                        type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                        connectionStringName="ActiveSkillConnectionString"
                        enablePasswordRetrieval="false"
                        enablePasswordReset="true"
                        requiresQuestionAndAnswer="false"
                        requiresUniqueEmail="false"
                        passwordFormat="Hashed"
                        maxInvalidPasswordAttempts="3"
                        minRequiredPasswordLength="7"
                        minRequiredNonalphanumericCharacters="1"
                        passwordAttemptWindow="10"
                        passwordStrengthRegularExpression=""
                        applicationName="/ActiveSkill"/>
            </providers>
        </membership>
etc etc...


Note I have a user login created for this database. That login is confirmed and working.

My problem is that despite the efforts above, the WSAT ASP.NET Configuration app, keeps creating and using an ASPNETDB.MDF db that it is annoyingly creating in my projects  App_Data directory.

In an attempt to rid myself of this pointless database I tracked a reference to it back in the machine.config file.

In there it looked like this.

<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>

So, as a test I removed this line and put my own connectionsting in there.

However running the WSAT app again, it gets the following error.

An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 152) at System.Web. etc etc

As a final check (before posting this thread) is I searched my project for any reference to the connection string LocalSqlServer and found it does not exist.

This it a mystery to me. Anyone have some tips?

Cheers

Brad




Brad
Top achievements
Rank 1
 answered on 26 Jan 2011
3 answers
67 views
Hi
I am using VS 2010 and telerik controls and some how the grids on the page is not displaying the data.
I am using following code.
ASPX
<div style="width: 80%">
                <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
                    <div style="float: left; height: 100%; width: 55px; background: #E3EFFF; text-align: center;
                        border-right: 1px solid #6593CF;">
                        <img src="images/tasks.gif" alt="" /></div>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
                        GridLines="None" Width="585px">
                        <MasterTableView AllowMultiColumnSorting="true" />
                        <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" />
                        <HeaderStyle Width="100px" />
                    </telerik:RadGrid>
                </telerik:RadAjaxPanel>
            </div>


protected void PRate_Load(object sender, EventArgs e)
        {
            LoadData();
        }
        protected void LoadData()
        {
            var Person = TypeCreator.TypeGenerator(new[]{
                new {ID=1, PackageName="1 Week", Duration="1 Week",   Rate=29, Price=100},
                new {ID=2, PackageName="1 Month(s)", Duration="1 Week",   Rate=29, Price=100},
                new {ID=3, PackageName="3 Month(s)", Duration="1 Week" , Rate=29, Price=100},
                new {ID=4, PackageName="6 Month(s)", Duration="1 Week",  Rate=29, Price=100},
                new {ID=5, PackageName="9 Month(s)", Duration="1 Week",   Rate=29, Price=100},
                new {ID=6, PackageName="12 Month(s)", Duration="1 Week", Rate=29, Price=100}
            });
            //none of the method is working,
 
            var dt = new System.Data.DataTable();
            dt.Columns.Add(new System.Data.DataColumn("ID", typeof(System.Int16)));
            dt.Columns.Add(new System.Data.DataColumn("PackageName", typeof(System.String)));
            dt.Columns.Add(new System.Data.DataColumn("Duration", typeof(System.String)));
            System.Data.DataRow dr;
            for (int i = 0; i < 100; i++)
            {
                dr = dt.NewRow();
                dr[0] = i;
                dr[1] = "Package" + i;
                dr[2] = i * 10;
                dt.Rows.Add(dr);
            }
 
 
            RadGrid1.DataSource = dt;
            RadGrid1.DataBind();
        }
 
 
   static class TypeCreator
    {
        public static List<T> TypeGenerator<T>(this T[] t)
        {
            return new List<T>(t);
        }
    }
Pavlina
Telerik team
 answered on 26 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?