Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
446 views
Hello, i've try to add a event (OnClick) on my GridButtonColumn:

if (e.Item.OwnerTableView.Name == "ChildTableName")
{
ImageButton LinkButton = (ImageButton)item["BtnCol"].Controls[0];
LinkButton.ToolTip = ResourceProvider.GetLocalValue("Cfg_Carousel_Peg_Bobbins_Details");
                
// [...] AddAttribute
}

But I need to intercept the button with UniqueName BtnCol value into if statement:

<telerik:GridButtonColumn 
UniqueName="BtnCol" 
ButtonType="ImageButton" 
ImageUrl="Images/Generic/Icons/info.gif"                                  
CommandName="BobbinsDetails">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>

What?
Thanks
mbro87
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
126 views

hi, in the event of

Page_Load

 I added a custom item:

 

 

RadMenuItem

 

 

manageAccessMenuItem = new RadMenuItem("Open Account");

 

 

manageAccessMenuItem.Value =

 

"OpenAccount";

 

 

 

 

I need to achieve 2 things:
1. on this item click i open a radwindow
2. show or enable this item only for a specific files within some specific folders, hide or disable this when right click on empty area or a folder.

please help
thanks in advance

 

Dobromir
Telerik team
 answered on 30 Mar 2011
2 answers
91 views
I have a radgrid and each row has a nestedview.

Inside these nested views, a number of textbox controls are dynamically added using a repeater control.

Some, but not all, of these textboxes require a value to be entered.

If the row is expanded, then validation occurs on the controls that require it. If the row is collapsed, then no validation occurs.

How can I force validation even if the row is collapsed, whether it has ever been expanded or not? As I understand it the nested view isn't loaded until its required? Is there a way to force the nestedviews to be loaded but hidden when the page loads, or can anyone thing of another way around this?

Basically, I need a RadGrid to have a hidden list of controls that are shown when the user expands the row, but need to validate all controls, even if the row hasn't been expanded.


Karl
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
87 views
Hi,

I have a menu set to the left of my page inside a pane of the rad splitter. The splitter is working at a 100% height.

The menu can get longer and shorter as the user browses through site, ie: The sub menu items open up underneath the main menu items on the left and extend it.

The problem i am having is this:
 I dont want a scroll bar appearing when the menu is higher than the users viewport, instead I want it to rather display the "GroupSettings" images to scroll the menu. The only problem is it that I dont want to set a fixed height to the GroupSettings option as it will then crop off the menu and look funny if the user viewport is higher than the menu height specified in GroupSettings.

Is there a way to set the value of GroupSettings to 100% height so that it will always sit on the top and bottom edges of the radPane and if the user's viewport becomes smaller than the actual menu height then the scroll buttons will "activate" and the user will be able to scroll the hidden menu items?

I suppose there should be someway to pull the height of the radPane using javascript as it changes and set the groupSettings to use that height. So as you resize the viewport, the radpane height value gets used for the GroupSettings value for the menu?

Your help with this would be greatly appreciated!
arathol
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
158 views
Hi,

Can I add  2 data field values from client side in one column.
I need to show a currency value and format in one column which is calculated thorugh stored procedure.

 

<telerik:GridBoundColumn  HeaderText="Currency" DataField="Value" DataField ="Format" UniqueName="SC">

 

 

</telerik:GridBoundColumn>

 


I dont want to add anything in code behind.

Thanks
Princy
Top achievements
Rank 2
 answered on 30 Mar 2011
1 answer
71 views
My employer has a use case that would work great with the self-referencing heirarchy, however, the default behavior does not quite match what we want to do with it, and I'm at a loss for trying to get it working the way I want to.

Our data model is represented using objects (not DataTables or DataSources) and is bound as a list of objects to DataSource in NeedsDataSource.

1. We only want to show root nodes on the root node. From what I can tell, a simple FilterExpression on the MasterTableView fixes this.
2. We want to allow sorting, filtering, paging, grouping, etc.. I was able to fix this by turning this all on and then turning it off on the child grids on pre-render.
3. We want the filters to also apply to the child grids AND include the top level node if a child node matches. <-- this is where I get stuck. I figured a custom filter expression combined with a method on each object that returns true if that item or any child item matches would work, but it doesn't seem as if calling custom methods on the objects is allowed in FilterExpression.
Martin
Telerik team
 answered on 30 Mar 2011
1 answer
110 views
I would like to change the appearance of the expand/collapse button of the split bar to be wider than the split bar itself, making it a tab that overlaps the pane next to it. My goal is to make it more visible than the default appearance. See the attached screen shot for an example of what I am seeking. My attempts at increasing the width of the button also increased the width of the split bar, which I don't want.

Is a style like I am seeking possible?

Thanks!

Dobromir
Telerik team
 answered on 30 Mar 2011
1 answer
168 views
If you look at the screenshot I provided, there is a toolbar with a house, export and import.

If I select a type of bulletin board, must show a button after the house.

My problem is this. The DropDownList is in a RadAjaxPanel and ToolBar is a external. I can not use this example because RadAjaxManager content-year white space is dynamic. The toolbar is always present in any important case.


How do I select if "Important messages", my toolbar is refreshed as if I did not RadAjaxPanel everything works.
Maria Ilieva
Telerik team
 answered on 30 Mar 2011
7 answers
234 views
Hello,

I have created a usercontrol where I show an overview of rows from an entity. So far all this entities had a hierarchie (parentid). Now I have an entity (table) without a hierarchie. In other words, the treelist only have to show one level. Because I want to reuse this usercontrol I like to know if it is possible. I had removed the property ParentDataKeyNames but that the Exception:

KeyNames collection length must match ParentKeyNames collection length.


Is it possible what I want?

Kind regards,

Patrick
Sebastian
Telerik team
 answered on 30 Mar 2011
1 answer
69 views
I am using a popup edit form with a form template.  I found the javascript to center the popup window which is working perfectly.  However, I cannot seem to get the bottom of the form to fit within the popup window.  It overflows on the bottom.  I have tried setting the height of the popup window in the popupsettings and also setting it in the javascript with no difference.  How do I tell the FormTemplate not to overflow the bottom of the popup window?  I am attaching a picture of what I mean.

thanks!
Pavlina
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?