Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi,


Is it possible to set a node's checked state to indeterminate at server side (OnNodeExpand event) even if it doesn't have child nodes?

Regards.
itsvtk
Ravi Sanker
Top achievements
Rank 1
 answered on 14 Jul 2009
2 answers
242 views
Greetings,

I am currently working on a grid that has a set of Radio Buttons within it, but I'm having issues trying to keep them from being selected one at a time.  Here is the grid code.

<telerik:RadGrid ID="rgdKnowledgeOwners" runat="server" AllowSorting="true" AutoGenerateColumns="false" 
                    AllowPaging="true" GridLines="None" AllowMultiRowSelection="true" PageSize="25" Width="500px" 
                    OnItemDataBound="rgdKnowledgeOwners_ItemDataBound">  
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> 
                    <HeaderContextMenu> 
                        <CollapseAnimation Type="OutQuint" Duration="200" /> 
                    </HeaderContextMenu> 
                    <MasterTableView DataKeyNames="POCID" AutoGenerateColumns="false">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="POCID" 
                                HeaderText="POCID" UniqueName="POCID" Visible="false">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn HeaderText="Primary Owner" SortExpression="PrimaryOwner">  
                                <ItemTemplate> 
                                    <asp:RadioButton id="rbPrimaryOwner" runat="server" GroupName="PrimaryOwner">  
                                    </asp:RadioButton> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridBoundColumn DataField="Name" 
                                HeaderText="Knowledge Owner Name" UniqueName="Name" SortExpression="Name">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn HeaderText="Receive Admin Emails" SortExpression="ReceiveEmail">  
                                <ItemTemplate> 
                                    <asp:CheckBox id="chkReceiveEmail" runat="server">  
                                    </asp:CheckBox> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Disply on CoP" SortExpression="DisplayOnCoP">  
                                <ItemTemplate> 
                                    <asp:CheckBox id="chkDisplayOnCoP" runat="server">  
                                    </asp:CheckBox> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns>                              
                    </MasterTableView> 
                    <ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="false" 
                        AllowDragToGroup="true" AllowRowHide="true" AllowColumnHide="true" 
                        ReorderColumnsOnClient="true">  
                        <Selecting AllowRowSelect="true" /> 
                    </ClientSettings> 
                    <FilterMenu> 
                        <CollapseAnimation Type="OutQuint" Duration="200" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 

The column that uses the Radio Buttons is Primary Owner.  I've been trying to use Javascript to keep only one button at a time selected, but have been unsuccessful.  Here is the code for that.

protected void rgdKnowledgeOwners_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            GridItemType giType = e.Item.ItemType;  
            if (giType == GridItemType.AlternatingItem || giType == GridItemType.Item)  
            {  
                DTOOwner dr = (DTOOwner)e.Item.DataItem;  
                RadioButton rb = (RadioButton) e.Item.FindControl("rbPrimaryOwner");  
                CheckBox chk1 = (CheckBox)e.Item.FindControl("chkReceiveEmail");  
                CheckBox chk2 = (CheckBox)e.Item.FindControl("chkDisplayOnCoP");  
 
                //Set radio buttons to script so that if one is selected, others are turned false  
                string script = "SetUniqueRadioButton(" + rb.ClientID + ", " +  "'rgdKnowledgeOwners')";  
                rb.Attributes.Add("onclick", script);  
 
                rb.Checked = dr.PrimaryOwner;  
                chk1.Checked = dr.ReceiveEmail;  
                chk2.Checked = dr.DisplayOnCoP;  
            }  
        } 

And here is the javascript.

function SetUniqueRadioButton(objRadioButton, grdName) {  
            var i, obj;  
            for (i = 0; i < document.all.length; i++) {  
                obj = document.all(i);  
 
                if (obj.type == "radio") {  
                    if ((objRadioButton.id.substr(0, grdName.length) == grdName)) {  
                        if (objRadioButton.id == obj.id)  
                            obj.checked = true;  
                        else 
                            obj.checked = false;  
                    }  
                }  
            }  
        } 

If anyone has any ideas on how to correct this issue, I'd appreciate it.  Thanks.

~Chad Johnson
Chad Johnson
Top achievements
Rank 1
 answered on 14 Jul 2009
0 answers
162 views
Hello forum members, i'm getting this error on an aspx page.  I am using it elsewhere, with the same assembly directives:

<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting, Version=2.0.3.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" %>
<%@ Register assembly="Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Charting" tagprefix="telerik" %>
<%@ Register TagPrefix="ajaxtoolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>


any thoughts?

John
Top achievements
Rank 1
 asked on 14 Jul 2009
0 answers
84 views
Hello i have follow ASPX Code:

telerik:radtabstrip id="RadTabStrip1" runat="server" selectedindex="0" enableembeddedskins="False" 
        skin="FashionestaProductlist" multipageid="RadMultiPage1"> 
             <Tabs> 
               <telerik:RadTab runat="server" PageViewID="RadPageView1" Selected="True" /> 
               <telerik:RadTab runat="server" PageViewID="RadPageView2" /> 
               <telerik:RadTab runat="server" PageViewID="RadPageView3" />     
             </Tabs>      
            </telerik:radtabstrip> 
 
<telerik:radmultipage id="RadMultiPage1" runat="server" selectedindex="0"> 
                        <telerik:RadPageView ID="tabRecently" runat="server"> 
                            <div class="Content"> 
 
.... 
 
 

In each RadPageView i have a  RadRotator with dynamic data. Each PageView gets disabled when there is no data to bind:
tabRecently.Visible = false;

My problem is now when in RadPageView2 no data are binded, then i have RadPageView1 and  RadPageView3  .
 In RadPageView1 there is all fine, the data are rendered in <div class="Content"> but in the RadPageView3 there is no content, but the tab is available!     
Has someone a solution why there is no content in the tab ?? there is no div <div class="Content">
anonym
Top achievements
Rank 1
 asked on 14 Jul 2009
1 answer
143 views
I am take over an exiting project and working on an issue that has arrised on one of our pages that has the RadEditor 7.2 on it. The app runs inside sharepoint, and it appears that even with the height of the editor set in the code behind, as soon as you switch to HTML view, the editor height increases, switching back to design view causes it to increase again. It just keeps getting larger for each switch. This is causing the content below the editor to "disappear" in the frameset, the scroll bars in IE don't seem to recognize the new height. Any ideas?
Stanimir
Telerik team
 answered on 14 Jul 2009
1 answer
132 views
I am creating / populating a hierarchy table at runtime. The data source and the columns generated are dependent on the selection of a radiobuttonlist. Sorting and paging works fine on the master table. I can get the master table to expand but it won't collapse when I click on the same parent row. It will collapse if i click on the paging on the nested table though. Also, I am not seeing any of the filter menu items either.
Veli
Telerik team
 answered on 14 Jul 2009
9 answers
346 views



Hello everyone,

I have 2 rad zones with 2 docks in each one.
lets take one of these zones [ which has 2 docks ]
whenever I try to position the lower dock up in the zone it will go back down [ its not that I'm not placing it right ]

Any idea why its happening, and how to fix ?!

Best Regards,
Adek
Top achievements
Rank 1
 answered on 14 Jul 2009
2 answers
84 views
We have a public community website using ASP.NET with spellcheck currently running version 3.2.7.

Our administrator has reported infrequent and intermittent problems where the spellcheck has identified a misspelled word and provided alternative suggestions but the original word is blank. She did manage to provide one documented instance where
 
  Not in Dictionary was blank
  Suggestions list was Muckrake Muckraked Muckraker Muckrakes Macrocosm ....

Just below the Spellcheck window you can see the offending word was a surname - McCracken.

I have spent this afternoon trying to reproduce the problem unsuccessfully. Before I spent more time on it I thought it worth seeing if this behaviour had been seen by anyone else and if so whether there is a known solution.

I must own up this was allocated a low priority and has not been looked at for over 6 months at which time we were running radspell 3.2.4 so it is conceivable that whatever the root cause was the upgrade resolved it.




 
Application Support
Top achievements
Rank 1
 answered on 14 Jul 2009
2 answers
99 views
I just installed the lates telerik controls (Q2-2009) and now my grid is all squished into the page.  Does anyone know what property I have to set to have the grid expand width-wise beyond the page so the columns all look natural?
Richard
Top achievements
Rank 2
 answered on 14 Jul 2009
1 answer
201 views
i'm trying to do this and i have nothing display in the listbox . so how do i fix that. and then eventually i want to be able to move that a childnode in the tree in radlist to second radlist. the seocond radlist does not need to have a tree. so if the childnode in radtree in radlist1 get transfer over to radlist2, it will just be an item in radlist2. but i want to be able to move that item back to the childnode in radtree in radlist1 too. so how do i do that in a radtree in radlistbox. i think i might be better off with just radtree. but how do i reorder radtree or do transfer or double click just like radlistbox. or better yet can you change an item background or forecolor in radlist? can you help me  please. thanks.
<telerik:RadListBox align="left" Height="200px" AllowTransferOnDoubleClick="true"   
     AllowTransfer="true" AllowTransferAll="true" TransferToID="RadListBox2"   
     Width="300px" ID="RadListBox1" runat="server" SelectionMode="Multiple" >  
           <ItemTemplate>  
                <telerik:RadTreeView ID="test" runat="server">  
                     <Nodes>  
                        <telerik:RadTreeNode runat="server" Text="South America" Expanded="true">  
                             <Nodes>  
                                  <telerik:RadTreeNode runat="server" Text="New Brazil">  
                                  </telerik:RadTreeNode>  
                                  <telerik:RadTreeNode runat="server" Text="Rio de Janeiro">  
                                  </telerik:RadTreeNode>  
                             </Nodes>  
                        </telerik:RadTreeNode>  
                     </Nodes>  
                </telerik:RadTreeView>  
           </ItemTemplate>  
</telerik:RadListBox> 
Veselin Vasilev
Telerik team
 answered on 14 Jul 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?