Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
While working on implementing a custom FileBrowserContentProvider, I've come across two issues which I could use some guidance on.

First, when deleting folders, they still appear in the right-hand pane of the FileExplorer control even though they have been removed from the TreeView.

Second, I've implemented automatic unzipping to the StoreFile method following the work of several previous posters. This appears to cause issues for the TreeView, which renders any folders inside of the extracted folders as blank items.

Has anyone else encountered similar issues which could shed light on the cause of these behaviors? Also, clicking the refresh button in the toolbar at the top of the control appears to "fix" both issues. Is there a way to trigger this refresh behavior from the code-behind?
Vessy
Telerik team
 answered on 22 Mar 2013
3 answers
260 views
How can I get all the checked items (nodes) in DropDownTree server-side?
Hank
Top achievements
Rank 1
 answered on 22 Mar 2013
10 answers
454 views
Hello!

There is the same article at your documentation.
Quote:
"
Otherwise, you have to load the user control only the first time:
protected void Page_Load(object sender, EventArgs e)
{
        if (Page.FindControl("myUC") == null)
        {
            Control myControl = this.LoadControl("gridUC.ascx");
            myControl.ID = "myUC";
            this.Panel1.Controls.Add(myControl);
        }
}
"

I want to know if we add controls dynamically we should restore it at every postback. So if (Page.FindControl("myUC") == null) will always true, and control would be recreated.

Dynamically creation userControl at Page_Init is not possible for me. Could u give some comment?

Thanks, Andrew
Daniel
Telerik team
 answered on 22 Mar 2013
2 answers
531 views
I have the following button declared:

<telerik:RadButton ID="btnProcessPayment" runat="server" Text="Process Payment" CssClass="btn-red-strip"
    Style="float: left;" ButtonType="SkinnedButton" EnableTheming="false"
    OnClick="btnProcessPayment_Click" Height="48px" Enabled="false"
    DisabledButtonCssClass="btn-gray-l"
    HoveredCssClass="btn-red-strip" SingleClick="True"
    SingleClickText="Processing..." EnableEmbeddedSkins="False" />

The button is disabled by default until the user checks a box.  Here is the checkbox event handler:

protected void chkPaymentMsgAck_CheckedChanged(object sender, EventArgs e)
{
    btnProcessPayment.Enabled = chkPaymentMsgAck.Checked;
}

This is the related CSS:

.btn-red-strip
{
    background: url("images/btn-drk-red-strip.jpg") repeat-x scroll 0 0 transparent;
    color: white;
    display: block;
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    cursor: pointer;
}
 
.btn-gray-strip
{
    background: url("images/btn-gray-strip.jpg") repeat-x scroll 0 0 transparent;
    color: white;
    display: block;
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    cursor: pointer;
}

Everything displays fine when the button is enabled or disabled BUT when it is disabled and then mouse-over'ed, the button background disappears.  I can get rid of this behavior by enabling the built-in styling instead but I want the button to follow the same look as the rest of the site (which don't use RadControls).
J
Top achievements
Rank 1
 answered on 22 Mar 2013
4 answers
114 views
Is it possible to have the RadDocks become tabbed when more than one shares the DockZone?

Michael
Slav
Telerik team
 answered on 22 Mar 2013
1 answer
227 views
I have a number of columns that are in camel-case because the client uses a lot of acronyms. RadGrid keeps renaming thecolumns and putting spaces where they don't belong.

   i.e. If the column name is "RadGridDisplay" it adds spaces and makes it "Rad Grid Display"

What can I do about this? It's driving me nuts and the users are not happy because they have very specific naming conventions on the fields they are using.

TIA!!

CG
(Yes, true camel-case starts with a lowercase letter but that's not the point)
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 22 Mar 2013
1 answer
171 views

I'm trying to set some tree nodes from the client side once the page loads using the code below:

var tree = $find(clientId);
var allTreeNodes = tree.get_allNodes();

However I get the error below when I try to run it in $(document).ready or $(window).ready.

Microsoft JScript runtime error: Unable to get value of the property 'get_allNodes': object is null or undefined.

So basically it doesn't find the tree.  I tested it with jQuery using $("#" + clientId).length and it returns 1 so it exists.

The only time it works is in the pageLoad() which I think is an asp.net ajax method.   Can someone explain why this is the case?

Thanks, Dave.

Boyan Dimitrov
Telerik team
 answered on 22 Mar 2013
3 answers
172 views
I am using a webservice to load items into a ContextMenu of the Scheduler.  The webservice returns values fine but as soon as I set the GroupSettings to make it multi-column all my items disappear.  It looks like the CSS is not being set properly on the dynamically loaded items.  If I remove the ExpandMode="WebService" and type in a bunch of RadMenuItems then the display is correct with the column formatting.

Anyone have any ideas?  Below is an extract of the menu settings that do not work and some screenshots of what it should look like and what it actually does.
<AppointmentContextMenus>
    <telerik:RadSchedulerContextMenu runat="server" ID="SchedApptContextMenu"  >
    <WebServiceSettings Path="WebServices/SqlServices.asmx" Method="schedMenu"/>
    <Items>
        <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
        <telerik:RadMenuItem Text="Print" Value="Print"/>
        <telerik:RadMenuItem Text="Assign" Value="Assign" ExpandMode="WebService"  GroupSettings-RepeatColumns="6"
            GroupSettings-RepeatDirection="Vertical"> 
        </telerik:RadMenuItem>
     </Items>
    </telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

Thanks!

Tom
Boyan Dimitrov
Telerik team
 answered on 22 Mar 2013
1 answer
129 views
Hi..I'm having a problem with radeditor content part.. for ex; I have some text in a radeditor(http://admin.xyz.com/pages/add_edit.aspx) like 

"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Click Here"

let say this page is admin part of the website to edit this content...and we set Click Here as an anchor tag..the problem is when I go http://www.xyz.com/pages.aspx and when I click Click Here  it tries to go "http://admin.xyz.com/pages/add_edit.aspx#testclickheretag" but I want that URL like http://www.xyz.com/pages.aspx#testclickheretag ... I want this to be relative according to current page's link.. is there any solution for that ?

Rumen
Telerik team
 answered on 22 Mar 2013
1 answer
209 views
ASP.NET AJAX Q1,2013, Visual Studio 2010 Ultimate SP1, IE 9, SQL Server 2008 R2

I have a RadGrid (AutoGenerateColumns=True) bound to an SQL Server table containing multiple columns. The grid does not show values of columns that are of XML data type !

Is this feature unsupported or I see a bug here ?

I also tried to cast the xml type column into varchar(max), but it still does not show anything. The same query works fine in the SQL Server management studio with or without the CAST.

Nishant
Marin
Telerik team
 answered on 22 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?