Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
167 views
I have the following control
<telerik:RadTreeView   
    ID="radtree" runat="server" 
    OnDataBound="radtree_DataBound" OnDataBinding="radtree_DataBinding"   
    OnNodeExpand="radtree_NodeExpand" 
    EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False" 
    Skin="SomeSkin" OnNodeClick="radtree_NodeClick" 
    >      
    <CollapseAnimation Duration="100" Type="OutQuint" /> 
    <ExpandAnimation Duration="100" /> 
</telerik:RadTreeView> 

And here is my code behind for the event OnNodeClick:
protected void radtree_NodeClick(object sender, RadTreeNodeEventArgs e)  
{  
    RadTreeView node = (RadTreeView)sender;  
} 

if i have defined my radtree.DataFieldID to some value is there a way in the NodeClick event to access that particular nodes DataField value?  I tried to do:
node.DataFieldID 

but this just returns the string of the column name not any particular unique id.

J
J
Top achievements
Rank 1
 answered on 01 Jul 2009
3 answers
217 views
Hello,

I have a RadWindowManager on my page and a linkbutton popping open the window. The code is set properly and it works the first time you click the link but if you close the modal and try to click the link again it gives a javascript error of "Object doesn't support this property or method". My example is below.

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">    
     <Windows>          
<telerik:RadWindow ID="AddPersonnel" runat="server" Title="Create New Personnel" Height="375px" Width="625px" ReloadOnShow="true" Modal="true" OnClientClose="refresh" Behavior="Close, Reload" /> 
     </Windows>      
</telerik:RadWindowManager> 
   
 
<script type="text/javascript">     
    function AddPersonnel()  {    
        window.radopen("/Portal/Modal/AddPersonnel.aspx", "AddPersonnel");      
        return false;    
    }     
</script> 
   
 
this.lnkCreatePersonnel.Attributes.Add("href", "#");      
this.lnkCreatePersonnel.Attributes.Add("onclick", "return AddPersonnel();"); 

I have also tried it using the following:

<a href="#" onclick="AddPersonnel();">Create Personnel</a>

I can't seem to fix this issue and I've tried multiple. Help would be much appreciated.

thanks,

Chad

 

 

 

 

 

Daniel Tharp
Top achievements
Rank 1
 answered on 01 Jul 2009
2 answers
189 views
Hi

          Is there any way to remove Sorting selection style from grid. I dont even want default column seletion style. I didnt apply any style to my grid. But whwn i sort any column it applies default sorting selection style to column. I dont want this option my column msut be look like asbefore the sorting selection.

Plz help me

SA
Appu
Top achievements
Rank 1
 answered on 01 Jul 2009
2 answers
94 views
I have a GridHTMLEditorColumn in my grid. When doing editing, it is the only column that tab does not work. Does anyone know how to tab out of this editor column or is there any workaround for that?

Thanks!
Ying

 

Ying
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
192 views
Hi

I am trying to calculate a group aggregate for my grid. I am trying to calculate a SUM on a field called Distance but I get the error "Input string was not in the correct format"

I believe the problem is that the rows can have values like this: 8.72852595488195e-005

Is there anything I can do about this?

thanks

Veli
Telerik team
 answered on 01 Jul 2009
2 answers
138 views
Hi,

I'm creating dynamic docks and zones as well. While creating docks I register 2 client-side events on server side -- OnClientDockPositionChanging and OnClientDragStart. OnClientDockPositionChanging works fine but when OnClientDragStart throws javascript error.

function OnClientDockPositionChanging(sender, eventArgs) 
{ 
   alert("Stop"); 
   eventArgs.set_cancel(true); 
} 
function OnClientDragStart(sender, eventArgs) 
{ 
   alert("Stop Drag"); 
   eventArgs.set_cancel(true); 
} 
 

  
private RadDock CreateRadDockFromState(DockState state, int number) 
    { 
        RadDock dock = new RadDock(); 
        dock.ID = string.Format("RadDock{0}", number); 
        dock.ApplyState(state); 
        dock.Visible = !state.Closed; 
        dock.Commands.Add(new DockPinUnpinCommand()); 
        dock.OnClientDockPositionChanging = "OnClientDockPositionChanging"; 
        dock.OnClientDragStart = "OnClientDragStart"; 
        return dock; 
    } 
    private RadDock CreateRadDock(int id) 
    { 
        RadDock dock = new RadDock(); 
        dock.ID = string.Format("RadDock{0}", id); 
        dock.Title = txtTitle.Text; 
        dock.Text = txtText.Text + "<br>" + dock.ID; 
        dock.UniqueName = Guid.NewGuid().ToString(); 
        dock.Width = Unit.Pixel(300); 
        dock.Commands.Add(new DockPinUnpinCommand()); 
        dock.OnClientDockPositionChanging = "OnClientDockPositionChanging"; 
        dock.OnClientDragStart = "OnClientDragStart"; 
        return dock; 
    } 
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
333 views
Hey Guys;

Great start on the Captcha function.

What is the best recommendation for hooking the Captcha submission to a keyboard enter click, rather than verify code?
Pero
Telerik team
 answered on 01 Jul 2009
0 answers
130 views

 

 

<telerik:GridTemplateColumn HeaderText="Product" UniqueName="ProductInfo" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left">  
                                        <ItemTemplate>  
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Prod_Name")%>'></asp:Label>  
                                            <asp:HiddenField ID="hidTreat_ID" runat="server" Value='<%# eval("ID")%>' />  
                                            <asp:HiddenField ID="hidSeq" runat="server" Value='<%# bind("Seq")%>' />  
                                        </ItemTemplate>  
                                        <EditItemTemplate>  
                                            <asp:Panel ID="pnlTreat_TN" runat="server">  
                                                <table cellpadding="0" cellspacing="0" border="0">  
                                                    <tr>  
                                                        <td style="padding: 0px">  
                                                            <telerik:RadComboBox ID="ComboBox_CompProdTN" runat="server" AutoPostBack="True" 
                                                                EnableLoadOnDemand="True" Height="120px" ShowMoreResultsBox="true" Skin="Web20" 
                                                                Width="200" OnSelectedIndexChanged="ComboBox_CompProdTN_SelectedIndexChanged" 
                                                                EnableVirtualScrolling="true" EmptyMessage="Select a Product"   
                                                                OnItemsRequested="ComboBox_ItemsRequested"  ValidationGroup="SelectProduct"   
                                                                ShowDropDownOnTextboxClick="False">  
                                                            </telerik:RadComboBox>  
                                                            <asp:RequiredFieldValidator ID="rfvProduct" runat="server" ErrorMessage="&larr; Select Product!" 
                                                                ControlToValidate="ComboBox_CompProdTN" Display="Dynamic" SetFocusOnError="True" 
                                                                Font-Bold="True" Font-Names="Arial" ValidationGroup="SelectProduct"></asp:RequiredFieldValidator>  
                                                        </td>                                                          
                                                        <td align="left" >  
                                                        <asp:Label ID="lblError" runat="server" ForeColor="Red" Visible="false"  ></asp:Label>  
                                                        </td>  
                                                          
                                                         
                                                        <td align="center" valign="middle">  
                                                        &nbsp;  
                                                            <asp:ImageButton ID="imgbtnAdvSearch" runat="server" ImageUrl="~/images/buttons/findIcon2.gif" 
                                                                Style="padding: 1px 0px 0px 0px;" ToolTip="Advanced Search" CommandName="FindAI" 
                                                                Visible="false"  Height="23px" OnClick="imgbtnAdvSearch_Click" ImageAlign="Middle" 
                                                                Width="22px" />  
                                                                                                                   </td>  
                                                        <td align="center" valign="middle">  
                                                        &nbsp;  
                                                            <asp:ImageButton ID="imgbtnAddNewCompProd" runat="server" ImageUrl="~/images/buttons/AddProd.png" 
                                                                Style="padding: 1px 0px 0px 0px;" ToolTip="Add New Comparative Product" CommandName="AddCompProd" 
                                                                Visible="false"  OnClick="imgbtnAddNewCompProd_Click" Height="23px" ImageAlign="Middle" />  
                                                                                                                    </td >  
                                                                                                          </tr>  
                                                </table>  
                                                <asp:HiddenField ID="hidTreat_ID" runat="server" Value='<%# bind("ID")%>' />  
                                                <asp:HiddenField ID="hidSeq" runat="server" Value='<%# bind("Seq")%>' />  
                                                <asp:HiddenField ID="hidProdTN_ID" runat="server" Value='<%# bind("Prod_ID")%>' />  
                                                <asp:HiddenField ID="hidRecType" runat="server" Value='<%# bind("Type")%>' />  
                                            </asp:Panel>  
                                            <asp:Label ID="lblSpecialType" runat="server" Text="" Visible="false" ForeColor="#663300"></asp:Label>  
                                        </EditItemTemplate>  
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"  />  
                                    </telerik:GridTemplateColumn> 


 

Please help me out with the solution.
Thanks
Pinkey
Pinkey
Top achievements
Rank 1
 asked on 01 Jul 2009
0 answers
134 views
Hi,

I used the radupload control to upload files that will be saved on a database and it saves the file, but when the file is saved on a folder that I specified previously and I open the file (.txt, .doc, etc.) the content on that file is not like the original. I has special caracters like it binary. Does anyone knows why this happens and what can solve this problem?
Thanks
Cátia
Top achievements
Rank 1
 asked on 01 Jul 2009
1 answer
140 views
I am using a RadGrid successfully with the RadAjaxManager and a RadAjaxLoadingPanel.  When I update my grid, it disappears for a second and shows the Loading Panel.  I noticed in a Telerik demo that they had the grid lighten up and showed the loading panel right within the grid.  I can't figure out how they did that - can anybody point me in the right direction?

Here is the sample: http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx

Thanks!
John
Top achievements
Rank 1
 answered on 01 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?