Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
256 views

Hi,
i want to change the Index for every Dropdown - List in a GridTemplateColumn. Everything Clientside.

My Problem is to find the Dropdownlist:

        function ColumnDecisionExecute() {  
            var DataItems = $find("<%=rdgWI.ClientID %>").get_masterTableView().get_dataItems();  
            for (i = 0; i < DataItems.length; i++) {  
                var item = DataItems[i].FindControl("ddlDecision");  
                alert(item);  
            }  
        }  
 

Here the RadGrid:

            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None"   
                             AllowPaging="False"               
                             AllowSorting="true">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ShowHeadersWhenNoRecords="true" AllowSorting="True" ShowHeader="true" runat="server">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn  DataField="WI" UniqueName="WiId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Decision" SortExpression="" UniqueName="Decision" Visible="false">  
                            <ItemTemplate> 
                                <asp:DropDownList ID="ddlDecision" DataSource='<%# GetDataSource(Eval("WTask")) %>' DataValueField="Description" DataTextField="Shorttext" runat="server" CssClass="DT" Width='<%# GetWidth() %>'></asp:DropDownList> 
                             </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 
 

THX for your help!
Princy
Top achievements
Rank 2
 answered on 15 Jun 2009
1 answer
77 views
Hi telerik team,

Is RadSkinManager not supported in 2008 Telerik.Web.UI.dll. bcoz i have genuine 2008 version in which radskinmanager is not available, but in 2009 trial version i m able to view.

Thanks
G.Sudheer kumar
Ivo
Telerik team
 answered on 15 Jun 2009
0 answers
133 views
Hi,

In my Telerik comboBox I am list of items such as:
ASE
Babliano
Bosco
C-Base
Currentso
Cortina

For the first time when page is loaded and I am typing "Cortina" then the item "C-Base" is getting popluated. For the next time onwards this is not happening and the correct word "Cortina" is getting selected. I observed that "C-Base" is having a special character "-" in between and may be that is the reason this is happening. For rest any combination the autocomplete feature is working fine. The issue is there for the first time when I type and when the item is having the special caharacter.
Please suggest some solution for this.


Regards,
Soumen Banerjee
Soumen
Top achievements
Rank 1
 asked on 15 Jun 2009
5 answers
129 views
hi all...
i have a radsplitter control containing some radgrids..now lets say i started my page with the browser window maximised ...everything works fine but when i minimize or maximize or resize my page the width is fixed(the width of my splitter is 100% ...i want it to be fixed with the browser size is this possible and if true how???
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
3 answers
101 views
Hi,

I have been trying to use set_collapseMode to toggle the visibility of the collapse button in a rad splitter but it didn't work (or at least I couldn't get it to work). Searching the fora on telerik.com I found a similar question about set_enableResize with the answer that it has not been implemented yet. Is the same true for set_collapseMode?

Regards,

Mink

Ps Whenever I copy-paste something in this editor it's impossible to continue writing immediately afterwards. I first have to click the mouse to put my cursor "somewhere" (I just put it right where it already was, right after the pasted part) to be able to write something again. Not a big problem but it starts to annoy me a lite bit.
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
4 answers
242 views
Hi i need to be able to disable dates in a calendar based on an if statement which would pass a value in

dates would be along these lines
1 day
3 days
a week
10 days
20 days
24 days
a month
many thanks
Kevin
Top achievements
Rank 1
 answered on 15 Jun 2009
1 answer
73 views
Hi All, I would like to use the schedule to show the status of rented equipment.

Using the Timeline view i would like to show list of equipment that is rented. Some of the equipment will have no return date (dataEndField is null) as the order (appointment) is open until the customer specifies they will be returning it.

In Timeline view the appointments with null end date do not show. Is there some way to show these from start with no end as you navigate the days? Thanks!

Rich
Peter
Telerik team
 answered on 15 Jun 2009
1 answer
149 views
I've got an app that uses the panelbar to display different grids of data.  Some of our users like to use keyboard shortcuts to expand and collapse the panel items.  So I created a small Javascript function attached to the OnClientItemFocus to accomplish this:
function focusItem(panelbar, args) {  
    var item = args.get_item();  
    if (item.get_level() == 0) {  
//        item.click();  
        if(item.get_expanded()) item.collapse();  
        else item.expand();  
    }  
} 
Here's the problem - a mouseclick also focuses on the item, but has it's own event that expands or collapses the panel item.  So what I get when I click it with a mouse is, it expands just fine, but when I click again to collapse it collapses and expands again.  I've tried  using the "stopProgagation" method on the domEvent in the ItemClicked and ItemClicking client-side events, but that doesn't help.  What I think I need is a way to differentiate between a mouseclick and key press in the client-side event so I can handle them differently.  Unless there's an easier way?

All I really want to do its allow users to expand or collapse panelbar items when they click on them, or if they use a keyboard shortcut to select them.  Is that possible with RadPanelBar?

Thanks for the help!
Veselin Vasilev
Telerik team
 answered on 15 Jun 2009
4 answers
115 views
Hello,

I've got a group of buttons into a div, which is defined as a decorated zone.
When one of the buttons is pressed a context menu is displayed, but this menu collapses inmediately. I have tried the same removing the div from the DecorationZoneID property, and then it works (the context menu keeps expanded).

Here is my code:

<script type="text/javascript">
function showMenu(e) {
          var contextMenu = $find("<%= RadContextMenu1.ClientID %>");
                 
          contextMenu.showAt(e.screenX, e.screenY);          
        }
</script>

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecorationZoneID="Buttons"
                              DecoratedControls="All" />
<div id="Buttons" >
      <input id="Button1" type="button" onclick="showMenu(event)" value="Sections" />
                    <telerik:RadContextMenu ID="RadContextMenu1" runat="server" CollapseDelay="50000">
                      <Items> 
...
                      </Items>
                    </telerik:RadContextMenu>
    </div>


Any help? Thank you.
Luis
Top achievements
Rank 1
 answered on 15 Jun 2009
1 answer
112 views
Hi,

I wanted to achieve the color rgb(175, 223, 229) in my chart, this is ok in FF3 as you'll get exactly the colors you define.
However, in IE the rendered colors are different, it becomes rgb(167, 219, 226). So I made some ajdustments to achieve rgb(175, 223, 229).
Unfortunately, I cant get the red part (175) to render correctly.

I used the following rgb colors:
rgb(182, 226, 232) becomes rgb(174, 223, 229)
rgb(183, 226, 232) becomes rgb(176, 223, 229)

Is there anyway to render the color rgb(175, 223, 229) correctly in IE?

Thank you in advance.

Regards,
Raffy
Ves
Telerik team
 answered on 15 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?