Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
The File Explorer gives you 2 columns out of the box, name and size.  I want to use Name for my databases id field, and add "Display Name" or something to the control, but I want it to appear in front of the "Size" column.  Needless to say I'm providing my own ContentProvider, too.

It works fine if I add the new column to the end of the list, but not if I try to insert it, or to "AddAt".

// Works ok, but not what I need
RadFileExplorer1.Grid.Columns.Add(gridTemplateColumn1);

// Doesn't work like I need.
RadFileExplorer1.Grid.Columns.Insert(1, gridTemplateColumn1);

// Doesn't work like I need.
RadFileExplorer1.Grid.Columns.AddAt(1, gridTemplateColumn1);

Oh --forgot to mention that I'm going to hide the existing Name column after that.
RadFileExplorer1.Grid.Columns[0].Display = false;

Any ideas what I might be doing wrong?
Grady Hawley
Top achievements
Rank 1
 answered on 19 Apr 2010
0 answers
160 views

I am dynamically loading RadpanelItems with diffenent user controls. When I click save button on one of the user controls, it sends postback to page and reloads all these panel items. Can I just postback current panel Item?

This is my code. Every time I click any button on the user controls reloads panelbar.

 

 

      Private Sub SetPanelItems(ByVal account As Account, ByVal radParentItem As RadPanelItem, ByVal focusAccountId As String)

 

            'This method selects user control for Panel according to account Type

 

            Dim radPanelNew As New RadPanelItem                                       'New items will be added to panel bar

            Dim radPanelNewChild As New RadPanelItem

            Dim acct As SubscriberSetupPages_UserControls_Account

           

            With radPanelNew

                  .Text = account.Name.ToString

                  .Value = account.Name

                  .Font.Italic = True

                  .Font.Underline = True

                  .Font.Size = 10

            End With

            If UCase(account.Id.ToString) = UCase(focusAccountId) Then                                                    'Trying to set expanded property to true to set focus to particular account. This is needed when this page is called from Alert set up to show account related to selected Alert

                  radPanelNew.Expanded = True

                  radPanelNewChild.Expanded = True

            End If

            'Depending on Account type or SubType User control is loaded in the panel item

            Select Case account.Type.Text

                  Case Entities.Account.AccountType.Bank.ToString

                        If account.SubType.Text = Entities.Account.SubAccountType.Savings.ToString Then

                              Dim ucSavings As SubscriberSetupPages_UserControls_SavingsAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/SavingsAccount.ascx"), SubscriberSetupPages_UserControls_SavingsAccount)

                              ucSavings.AccountID = account.Id

                              ucSavings.ID = account.Id.ToString

                              acct = DirectCast(ucSavings.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                              radPanelNewChild.Controls.Add(ucSavings)

                        ElseIf account.SubType.Text = Entities.Account.SubAccountType.Checking.ToString Then

                              Dim ucChecking As ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CheckingAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/CheckingAccount.ascx"), ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CheckingAccount)

                              ucChecking.ID = account.Id.ToString

                              ucChecking.AccountID = account.Id

                              acct = DirectCast(ucChecking.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                              radPanelNewChild.Controls.Add(ucChecking)

                        ElseIf account.SubType.Text = Entities.Account.SubAccountType.CreditLine.ToString Then

                              Dim ucCreditLine As ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CreditLine = CType(LoadControl("~/SubscriberSetupPages/UserControls/CreditLine.ascx"), ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CreditLine)

                              ucCreditLine.AccountID = account.Id

                              acct = DirectCast(ucCreditLine.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                              radPanelNewChild.Controls.Add(ucCreditLine)

                        End If

                  Case Entities.Account.AccountType.CreditCard.ToString

                        Dim ucCreditCard As ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CreditCard = CType(LoadControl("~/SubscriberSetupPages/UserControls/CreditCard.ascx"), ACDCA.MyFmNow.SubscriberSetupPages_UserControls_CreditCard)

                        ucCreditCard.AccountID = account.Id

                        acct = DirectCast(ucCreditCard.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                        radPanelNewChild.Controls.Add(ucCreditCard)

                  Case Entities.Account.AccountType.Loan.ToString

                        Dim ucLoan As ACDCA.MyFmNow.SubscriberSetupPages_UserControls_Loan = CType(LoadControl("~/SubscriberSetupPages/UserControls/Loan.ascx"), ACDCA.MyFmNow.SubscriberSetupPages_UserControls_Loan)

                        ucLoan.AccountID = account.Id

                        acct = DirectCast(ucLoan.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                        radPanelNewChild.Controls.Add(ucLoan)

                  Case Entities.Account.AccountType.Investment.ToString

                        Dim ucInvestment As ACDCA.MyFmNow.SubscriberSetupPages_UserControls_InvestmentAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/InvestmentAccount.ascx"), ACDCA.MyFmNow.SubscriberSetupPages_UserControls_InvestmentAccount)

                        ucInvestment.AccountID = account.Id

                        acct = DirectCast(ucInvestment.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                        radPanelNewChild.Controls.Add(ucInvestment)

            End Select

            ' Setting up OnClient click for button on user control

            Dim btnSecurityQA As ImageButton = DirectCast(acct.FindControl("btnSecurityQA"), ImageButton)

           

            acct.Account = account ''This needs to set here to set control visibilities on Account user Control

            radPanelNew.Items.Add(radPanelNewChild)

            With radParentItem

                  .Items.Add(radPanelNew)

                  .DataBind()

                  .Expanded = True

            End With

 

      End Sub

A K
Top achievements
Rank 1
 asked on 19 Apr 2010
2 answers
153 views
basically, I need the functionality from the radgrid to replace the listview webpart. Is there an easy way to do this? If no, how to I create a user control with the radgrid and set the datasource to a SharePoint list?

Thanks in advance for your help.
itpurchasing
Top achievements
Rank 1
 answered on 19 Apr 2010
10 answers
322 views
I am using Telerik AJAX for ASP.NET v 2008.3.1125.35. And I am having problems with radchart control. For some reason series position is not consistent in the graph as you can see from attached image. In the first bar "Unknown" series is the third from the bottom, but for the fourth bar it is first from the bottom which seems wrong to me. I am using DataGroupColumn property to create series automatically from data that I am getting from database. Any suggestions?
Greg M
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
71 views
Hi all.

I've got a user control I'm running inside of a SmartPart in Sharepoint. This user control contains a RadGrid.

The problem is that if I run it in a normal ASP.NET site everything goes ok.
When instead i use it inside of the SmartPart in Sharepoint, the three client methods OnRowCreated, OnRowDblClick and OnRowClick of the RadGrid are not executed anymore.
There are two other client methods I use, OnCommand and OnGridDestroying, are called and they run normally.

If needed I can provide both the .ascx and the .ascx.cs.

Thanks in advance


Tsvetoslav
Telerik team
 answered on 19 Apr 2010
2 answers
141 views
Hello,

I noticed that the radControls are available in SharePoint Designer as Server Controls, but when I add them to an aspx page, I receive the following error: "Error Rendering Control Designer creation failed for the control Parameter name: this."

Should I not be able to add controls directly from SharePoint Designer? Did I incorrectly run the install/setup for the radcontrols?

Thanks in advance for your help.

Tsvetoslav
Telerik team
 answered on 19 Apr 2010
5 answers
156 views
Hi,
   I just used the RadNumericTextBox for the first time, and I love the spin (up and down arrow) buttons, but I don't want to display the "Spin Up" and Spin Down" hyperlinks.  Is there a way to shut these off?  I can't seem to find it. 

Thanks,
-Mike
Dimo
Telerik team
 answered on 19 Apr 2010
1 answer
77 views
Hi ,

How to get time slots with exact time .ie with minutes.
i have a radscheduler with

MinutesPerRow

 

="10"

But it shows only 12,12,12 or 1am , 1am , 1am etc  instead of 12:00 am ,12:10am,12:20 am etc

what to get the time in with minutes format. i.e hh:mm .

Thanks and Regards,
sriharsha

 

Peter
Telerik team
 answered on 19 Apr 2010
3 answers
124 views
Hi

How to add sorting to RadTreeView

Thanks
Nikolay Tsenkov
Telerik team
 answered on 19 Apr 2010
1 answer
112 views
I am trying to make a meeting scheduler.

I am getting the start time that a user clicks on when inserting/editing an appointment in the javascript below:
function OnClientAppointmentInserting(sender, eventArgs) {  
    var sTime = escape(eventArgs.get_startTime());  
} 
I am getting a date string like so:

Fri Apr 16 13:00:00 PDT 2010

and passing it to a new url. In the code behind, I am having a problem converting this back into a datetime.

Can you give me a clue as to how to convert this back to a datetime object?

Thanks,

Rick
Peter
Telerik team
 answered on 19 Apr 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?