Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
503 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
105 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
207 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
152 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
156 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
119 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
186 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
2 answers
202 views

I have two GridDropDownColumn one is category and other is subcategory. The value of Subcategory should load dynamically when category is selected ie. When Category is changed according to the value of that subcategory is loaded.

 

I tried to created selectedIndexChange event for category but inside that I am not able get the control Subcategory. The control is not Template column then I can find the control and it is not possible to create GridTemplateColumn.

Please help me how I can load value depending on the value other GridDropDownColumn.

Angel Petrov
Telerik team
 answered on 22 Mar 2013
1 answer
329 views
Is it possible to rename file during the upload, if the file with the same name already exists. 
Vessy
Telerik team
 answered on 22 Mar 2013
8 answers
599 views
Hello, I have checked the other threads first about this issue, but they didn't help me.

What i'm trying to do is check if the grid is in edit/insert mode in the grid's OnKeyPress event.

Other threads suggested that grid._editIndexes would do the trick, but mine's always empty.

So basically..

function onKeyPress(sender, e){
    var length = sender._editIndexes.length ; // always 0 !!
...
}

Is there any other way to check in which mode the grid is right from the grid object ?

Thanks!
J
Top achievements
Rank 1
 answered on 22 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?