Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
193 views
Hi,

I have this client side code, and I cant figure out, how can i close menu item from treeview, when I process it on client.
<script type="text/javascript"
    function conetxtMenuClicked(sender, args) { 
        var menuItem = args.get_menuItem(); 
         
        var treeNode = args.get_node(); 
        //alert(treeNode.get_value() + menuItem.get_text()); 
 
        if (menuItem.get_value() == 'SetKeyWords') { 
 
            menuItem.close();     
             
             
            args.set_cancel(true); 
            var window = radopen('/app/Pages/Admin/EditKeyWords.aspx?mpage=empty&nodeId=' + treeNode.get_value(), 'WVGA'
            window.setSize(800, 200); 
 
        } 
 
         
         
    } 
</script> 


And this header of TreeView

<telerik:RadTreeView ID="MainTree" runat="server" EnableViewState="false" OnClientContextMenuItemClicking="conetxtMenuClicked" OnContextMenuItemClick="MainTree_ContextMenuItemClick"

I need sometimes open radWindow and sometimes do regular postback. Problem is, when i open radWindow menu is still open.

Any ideas? Thanks!!!
Roland
Top achievements
Rank 1
 answered on 23 Nov 2009
4 answers
217 views
Hi,
I am not having much luck getting input data from a table that is dynamically created within a radpanel and am hoping someone could tell me what I am doing wrong. 

 <! -- Index data -----------> 
           <telerik:RadPanelBar runat="server" ID="RadPanelBar1"   
              ExpandMode="FullExpandedItem" Width="98%" Height="50%" > 
               <Items> 
                    <telerik:RadPanelItem Expanded="True" Text="Index Information"  Selected="true">   
                        <Items> 
                            <telerik:RadPanelItem Value="IndexInformation" > 
                                <ItemTemplate> 
                                    <asp:Table ID="IndexTable" runat="server"  EnableViewState="false" >                  
                                    </asp:Table> 
                                </ItemTemplate> 
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                </Items> 
           </telerik:RadPanelBar>       

The table (IndexTable) is created dynamically
                IndexTable.Rows.Clear();  
                //load the custom indexes  
                foreach (int idx in ur.AllIndexes)  
                {  
                    if (rd.IndexMap.ContainsKey(idx))  
                    {  
                        CIndex cIndex = rd.IndexMap[idx];  
 
                        Label lbl = new Label();  
                        lbl.ID = idx.ToString() + "Label";  
                        lbl.Text = cIndex.IndexComponents[1].Label;  
                        lbl.Visible = true;  
                          
                        TableRow tr = new TableRow();  
 
                        // Create column 1    
                        TableCell td1 = new TableCell();  
                        // Create a label control dynamically    
                        Label _label = new Label();  
                        _label.ID = idx.ToString() + "Label";  
                        _label.Text = cIndex.IndexComponents[1].Label;  
                        // Add control to the table cell    
                        td1.Controls.Add(_label);  
 
                        // Create column 2    
                        TableCell td2 = new TableCell();  
                        td2.Visible = true;
                     }  
                     // Add cell to the row  tr.Cel  
                     tr.Cells.Add(td1);  
                     tr.Cells.Add(td2);  
                     // Add row to the table.   
                     IndexTable.Rows.Add(tr);  
                }  
 
 

The table is displayed just fine but I can't retrieve any of the data that I input into cell 2.  I have a "Submit" button that calls javascript to get the data but all I get is the label data, cell 1. 
 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
      <script type="text/javascript">  
          function GetIndexData() {  
              var test = "";  
              var tblIndex = $get('<%= ((Table)RadPanelBar1.FindItemByValue("IndexInformation").FindControl("IndexTable")).ClientID %>');  
            
              var RowsLength = tblIndex.rows.length;  
              for (var i = 0; i < RowsLength; i++) {  
                  var oCells = tblIndex.rows.item(i).cells;  
                  var CellsLength = oCells.length;  
                  for (var j = 0; j < CellsLength; j++) {  
                      alert(oCells.item(j).innerHTML);  
                  }  
              }  
          }  
      </script> 
    </telerik:RadCodeBlock>    

 I know I must be doing something wrong but I don't know what.  Can anyone help me?

Thanks 
cyfirst
Top achievements
Rank 1
 answered on 23 Nov 2009
1 answer
87 views
hi.
i use telerik Q3 2009.but when i use radchart i have 2 problem:
1.my chart is no displayed on site.
2.when i try to work by chartwizard i see this error:
could no found any resource apporpiate for the specified culture or the neutral culture......
please help me to solve this problems.
Schlurk
Top achievements
Rank 2
 answered on 23 Nov 2009
1 answer
227 views
    <telerik:RadWindow ID="winError" runat="server" Skin="Sunset"   
        VisibleOnPageLoad="True" Behaviors="Close" Visible="False" Behavior="Close"   
        VisibleStatusbar="False" VisibleTitlebar="False">  
        <ContentTemplate> 
            <asp:Label ID="lblErrorMessage" runat="server" /> 
        </ContentTemplate> 
    </telerik:RadWindow>   
 
I'm using the code and on server side whenever I got an error I populate lblErrorMessage text and make window visible. I always have an empty window popup also my intellisence tells me that: "Element 'contenttemplate' is not supported". What I'm doing wrong?

Thank you,
Roman.
Roland
Top achievements
Rank 1
 answered on 23 Nov 2009
1 answer
164 views
Hi,

  I'am currently facing problem with dock appearance when i run my application in google chrome.
I have a raddock zone in which there are about 5 docks placed within, when i try to move one of the docks outside the zone,the dock along with contents appear along with scroll bars(This happens with IE6).
But when i try to run my application in google chrome and try to the move the dock outside the zone the bottom border of the dock gets dissapeared,why does this happen.

Need help asap


Thanks in Advance
Pushpa.
Gido Geek
Top achievements
Rank 2
 answered on 23 Nov 2009
1 answer
127 views
Hi,

  Is it possible to apply different skins for different docks without specifying the dock id in the style sheet(like #Raddock1 or so).
I need to just create a custom skin and apply the corresponding style to the dock with skin id.


Thanks in Advance
Pushpa.
Gido Geek
Top achievements
Rank 2
 answered on 23 Nov 2009
2 answers
174 views
Hi

I have pdf and excel export on my page. Excel export works great, but with pdf export there is only tabel with no data (attachment).

This are my export settings

<ExportSettings IgnorePaging="true" OpenInNewWindow="true" FileName="XXX" ExportOnlyData="true">
                    <Excel Format="Html" FileExtension="xls" />
                    <Pdf PageHeight="297mm" PageWidth="210mm" />
</ExportSettings>

What am I doing wrong?

Thank you for your help.
Daniel
Telerik team
 answered on 23 Nov 2009
6 answers
364 views
I made a change to the property AllowCustomText setting it to false and when I did I received the following message where the control was on the page. "There was an error rendering the control.  Unable to cast object of type telerik.web.control.radcombobx to telerik.web.control.radcombobox.  What does this mean and how do I correct it?
tcl4p
Top achievements
Rank 1
 answered on 23 Nov 2009
2 answers
170 views
Hi,

I have a custom MOSS solution that I had to upgrade from RadEditorMOSS 5.4.0.0 to 5.6.0.0, I have changed every "5.4.0.0" to "5.6.0.0" and checked with every file in the default RadEditorMOSS.wsp and everything seems to be ok (Except I don't have the Manifest.xml file on my custom solution)... The issue is that when I go to the editor I don't see the button's text. For example, when I go to the editor, the "Design" "HTML" and "Preview" buttons don't have any text on them, only icons (but they are still working).

When I first tried the default RadEditorMOSS.wsp it did show the buttons correctly, but as soon as I uploaded my custom one the button's text was gone.

Also the "Remove Element" is gone...

Any ideas?
Santiago Mazziotti Irigoyen
Top achievements
Rank 1
 answered on 23 Nov 2009
6 answers
128 views
This control rocks.  We had actually written our own version of this and were using it all over the place.  This one is a bit nicer.  Thank you!

Okay, here's the request:

Most modern browsers support filtering a list by typing in it.  For example, IE, Firefox, Safari and others natively support typing in a value from a DropDownList to automatically go to that item (as long as you type it character for character).

I'd LOVE to see that feature here.  Most of my users' first question when they encounter this control is "Why can't I type in it?"

Keep up the good work!
Mark
Top achievements
Rank 2
 answered on 23 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?