Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
185 views
I have seen solutions for this issue in the RadGrid forum but they don't work for TreeList.  Basically I want to replace the page size option with my own set, but when I do that using the following code it breaks paging (changing the page size basically does nothing).  Evidently there is some event-handling that needs to be hooked up.  How do I get this to work?? Thanks in advance!

 Dim ddPageSizes As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("PageSizeComboBox"), Telerik.Web.UI.RadComboBox)

                    ddPageSizes.Items.Clear()

                    ddPageSizes.Items.Add(New Telerik.Web.UI.RadComboBoxItem("10"))
                    ddPageSizes.Items(0).Attributes.Add("ownerTableViewId", Me.EditResults.ClientID)
                    ddPageSizes.Items.Add(New Telerik.Web.UI.RadComboBoxItem("250"))
                    ddPageSizes.Items(1).Attributes.Add("ownerTableViewId", Me.EditResults.ClientID)
                    ddPageSizes.Items.Add(New Telerik.Web.UI.RadComboBoxItem("500"))
                    ddPageSizes.Items(2).Attributes.Add("ownerTableViewId", Me.EditResults.ClientID)

                    ddPageSizes.FindItemByText(Me.EditResults.PageSize.ToString()).Selected = True
SHP
Top achievements
Rank 1
 answered on 07 Mar 2012
2 answers
134 views
I am just starting to build my own custom skin based on the "Hay" skin. I have figured out how to create an assembly and recolor the sprites using Photoshop. The part I don't understand relates to the controls corresponding CSS file. In the CSS code below, the background-postion is: 100% -216px. What does the -216px represent? You can't have a negative pixel coordinate on the actual sprite image so where is this pointing to on the sprite to get the background? I am guessing you go down 216 pixels on the sprite and the image just above it is the image used for the background. Is this correct

.RadMenu_Hew .rmRootGroup a.rmDisabled:hover .rmExpandRight,
.RadMenu_Hew_Context .rmGroup a.rmDisabled:hover .rmExpandRight,
.RadMenu_Hew_Context .rmGroup a.rmDisabled:hover .rmExpandLeft,
.RadMenu_Hew .rmGroup a.rmDisabled:hover .rmExpandDown
{
    background-image: url('<%=WebResource("Hew.Web.UI.Skins.Hew.Menu.rmSprite.png")%>');
    background-position: 100% -216px;
}
dhuss
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
92 views

Is there a way to set viewmode to grid when opening an ImageManager from a DialogOpener?

We are using a custom provider for filehandling, so the thumbnail view is slowing down the filemanagers (db queries, getting files, resizing thumbs etc)

<telerik:RadDialogOpener runat="server" id="DialogOpener1"></telerik:RadDialogOpener>
<button onclick="$find('<%= DialogOpener1.ClientID %>').open('ImageManager', {CssClasses: []});SetCurrentUserControl('<%= DialogOpener1.ClientID %>');return false;">
   Find picture... 
</button>

protected new void Page_Load(object sender, EventArgs e)
{
    FileManagerDialogParameters dialogParameters = new FileManagerDialogParameters();
    dialogParameters.ViewPaths = new[] { "root" };
    dialogParameters.UploadPaths = new[] { "root" };
    dialogParameters.DeletePaths = new[] { "root" };
    dialogParameters.MaxUploadFileSize = 5000000;
    dialogParameters.FileBrowserContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;
 
    DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), dialogParameters);
    imageManager.ClientCallbackFunction = "ImageManagerFunctionPrj";
    imageManager.Width = Unit.Pixel(694);
    imageManager.Height = Unit.Pixel(440);
 
    DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager);
}

Dobromir
Telerik team
 answered on 07 Mar 2012
2 answers
104 views
Hello all,

I am having an issue using the RadNumericTextbox with UpdatePanel.  On every other postback, it would display the below message in the UpdatePanel. I am using the RadNumericTextbox in a RadGrid.

The Message:  9274|updatePanel|ctl00_ctl26_g_ba5d72b6_620b_453e_a4a2_8e74af493901_ctl00_ctl00_ctl26_g_ba5d72b6_620b_453e_a4a2_8e74af493901_ctl00_grdItemsPanel|

RadNumbericTextbox Settings:

<telerik:RadNumericTextBox

ShowSpinButtons="true"

IncrementSettings-InterceptArrowKeys="true"

IncrementSettings-InterceptMouseWheel="true"

Width="35px"

runat="server"

ID="qty"

MaxValue="99"

MinValue="1"

Value="1"

AutoPostBack="true"

OnTextChanged="qty_TextChanged">

 

<NumberFormat DecimalDigits="0" />

 

</telerik:RadNumericTextBox>



Another approach but failed:  Instead of using the UpdatePanel, I tried using RadAjaxManager but it is not doing a PostBack when the RadNumericTextBox number changes.

Has anyone experienced this behavior and have suggestions?
Chue Shee
Top achievements
Rank 1
 answered on 07 Mar 2012
8 answers
276 views
Is there a way to set the max length for the edit box when editing an item in the tree view?  I can see that when editing the name of a node in the tree view, the editable area is an input box.  With input boxes, you should be able to set a maximum length.  I just need a way to set the maximum length for the editable area so when a user goes to rename a node in the tree view, they can't give it a really long name.

Kai Thao
jc mag
Top achievements
Rank 1
 answered on 07 Mar 2012
12 answers
688 views
Hi,

I have trouble to set selected value for a RadComboBox using Javascript.

I think the trouble I have is because the RadComboBox is loaded dynamically in a user control.

Actually the whole website is built based on multiple user controls with AJAX, which mean, there is no post back.

I tried:
function JSSelect() {
    var combo = $find("<%= RadComboBox1.ClientID %>");
    var itm = combo.findItemByValue('04');
    itm.select();
}

I want to call this function at a proper time when the user control which contain my RadComboBox is loaded. But I think it's because of "<%=" and "%>", the page will try to find RadComboBox1 first when the page is first request, but at this time, the user control which contains my RadComboBox has not been loaded. How can I solve this problem?
Harshad
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
154 views
Is there a way to hide the "All Properties..." button in the "Insert Link" popup on the RadEditor?
Rumen
Telerik team
 answered on 07 Mar 2012
1 answer
59 views
Hi All,

I have a page in which a radeditor will be opened in a radwindow on a button click.

RadEditor works fine in IE8. But not working in IE9.

I cant  add anything to radeditor or even copy paste anything in rad editor.

Version I am using is  :2012.1.215.35.
Rumen
Telerik team
 answered on 07 Mar 2012
8 answers
363 views
Hi, is it possible to assign an aggregate to an autogenerated column and if so how can I do it. I haven't found an example and I don't see how to do it in the ColumnCreating or ColumnCreated events. Hopefully these can also be exported to excel.

Thanks.
Danyal Rashid
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
65 views
I have a tabstrip that has an ImageButton assigned to each tabs tab template. The Image Buttons are used for exporting to excel. When the image button is clicked I want the method for the image button to reference the corresponding RadGrid to export. My question is, how do I determine which Tab the ImageButton is clicked on?
Dimitar Terziev
Telerik team
 answered on 07 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?