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

I am using the RadToolBar for some functions like View Details,Delete,Show RadGridFilter like wise...
Here for some functions i am using the server-side (like delete) and other using client side
Button1 --- ViewDetails --- for this i am using client-side function where it is redirected to other page through radwindow

Button 2 --- Toggling the RadGrid Filter option --- for this i am using client side function.

Button3 ---- delete SelectedRadGridRecords into db --- for this i am using server-side button click event of the RadToolBar..

Now the problem i am facing is,if i use both server-side and client-side clicking events..i am not able to see the RadWindow which is intiated...

Is there any solution for this..or we should not use both client-side and server-side events for the radtoolbar.

Thanks in Advance
Regards:
Chaitanya.E
chaitanya.elluru@cosmonetsolutions.com
Veselin Vasilev
Telerik team
 answered on 11 Mar 2010
5 answers
147 views
<body> 
    <form id="form1" runat="server">  
      
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"   
        EnableTheming="True">  
    </telerik:RadScriptManager> 
    <div> 
      
        <telerik:RadComboBox ID="RadComboBox1" Runat="server"   
            DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="No"   
            MarkFirstMatch="True"   
            CssClass="RadComboBoxDropDown_Default" Height="100%">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </telerik:RadComboBox> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
            ConnectionString="<%$ ConnectionStrings:XXXXXConnectionString %>"   
            onselecting="SqlDataSource1_Selecting"   
            SelectCommand="sproc_XXXXX"   
            SelectCommandType="StoredProcedure">  
            <SelectParameters> 
                <asp:Parameter DefaultValue="XXX" Name="prmXXX1" Type="String" /> 
                <asp:Parameter DefaultValue="XXX" Name="prmXXX2"   
                    Type="String" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
      
    </div> 
    </form> 
</body> 
I've created a new website and on the default aspx page I have added a RadScriptManager and a RadComboBox. I've configured the RadComboBox to use the results of a stored proc, and when I run the page I can see the first entry in the combo box but when I go to click on the drop down arrow nothing happens. If I try and type into the text box portion, then I can type data but nothing else occurs. If I view the source I can see all the values of the stored proc, so I know that the stored proc is returning the data correctly.
Clearly there must be something simple I have missed out - just not sure what it is. Kind regards, Alex
Simon
Telerik team
 answered on 11 Mar 2010
2 answers
91 views
Hi,

I'm not an expert with Telerik controls and am stuck with this. I need to somehow access the page row for a RadGrid from client side. Is this even possible?

TIA for any help!
Valery
Top achievements
Rank 2
 answered on 11 Mar 2010
5 answers
205 views
How would I set a parent item to be selected when a child is selected? I want to achieve this in Client Side.

Any help is appreciated.

Veselin Vasilev
Telerik team
 answered on 11 Mar 2010
10 answers
653 views
When the index changes on the RadComboBox, how can I cause code to fire on the server?

I can do this via a PostBack (and the SelectedIndexChanged event) but that does not take advantage of AJAX.

Specifically, I want:

1. When the user changes items in the combobox, fire a sub on the server.
2. The sub on the server generates some text and places it in a <div> alread in the page.

Currently, I can do this via a "Submit" button that must be clicked once the user selects an item in the combobox.

However, a request has been made to do away with the submit button and just update the <div> as soon as the combobox value changes (which seems reasonable).

I assume I need to hook up the onclientselectedindexchanged value - but how can I reference (and cause to fire) a server-side subroutine?

Thanks-
Dave
Kalina
Telerik team
 answered on 11 Mar 2010
3 answers
138 views
Not a big problem, but would it at all be possible, so that when you install a new version of Telerik, and it creates the Telerik folder in the toolbox, that it could put the telerik objects in alphabetical order for you?

The amount of times in a day, when I go up and down the toolbox, looking for something and can't find it, it's so annoying....!

Thanks.

John.
John Daldry
Top achievements
Rank 1
 answered on 11 Mar 2010
2 answers
195 views
I have used RadDatePicker in my page. I want the Calender of RadDatePicker should always be open irrespective of clicking on Calendar icon.
Can any one help me in this?
Meghna
Top achievements
Rank 1
 answered on 11 Mar 2010
4 answers
403 views

Hi to all,

i have a RadToolbar and a RadGrid.

By clicking RadToolbarButton (OnClientButtonClicked), i want to go throw RadGrid - Items an check if a RadCombobox have a value or not.

It seems that Javascript is not detected or another problem is located.

Can anybody help me ...?

The Error message is a JavaScript Error "OnClientButtonClicking" is undefine

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
    <script type="text/javascript">     
        function OnClientButtonClicking(sender, args) {  
            var comandName = args.get_item().get_commandName();  
            if (comandName == "SaveSks") {  
                alert('Check RadComboBoxes');  
                return false;  
            }  
        }  
    </script> 
 
</telerik:RadCodeBlock> 
 
<table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed">  
    <tr> 
        <td> 
            <telerik:RadToolBar Width="100%"   
                                style="display: block; float: none"   
                                ID="RadToolBar1"   
                                Runat="server"   
                                OnClientButtonClicking="OnClientButtonClicking" 
                                onbuttonclick="RadToolBar1_ButtonClick">  
                  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                  
                <Items> 
                    <telerik:RadToolBarButton Value="Back" 
                                              ImageUrl="~/Arrow Left.png"   
                                              runat="server" Text="Back">  
                    </telerik:RadToolBarButton> 
                    <telerik:RadToolBarButton   
                                                Value="Save" 
                                                CommandName="SaveSks" 
                                                ImageUrl="~/Save.png"   
                                                runat="server"   
                                                Text="Save">  
                    </telerik:RadToolBarButton> 
                </Items> 
            </telerik:RadToolBar> 
        </td> 
    </tr> 
    <tr> 
        <td> 
            <telerik:RadGrid ID="Sks" runat="server" GridLines="None" 
                AllowMultiRowEdit="True" Width="100%"   
                AutoGenerateColumns="False" onitemdatabound="Sks_ItemDataBound">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
               <ClientSettings AllowDragToGroup="false" AllowColumnsReorder="false" ReorderColumnsOnClient="false" AllowColumnHide="True" AllowRowHide="True">  
                    <Scrolling AllowScroll="true" ScrollHeight="280" /> 
                </ClientSettings> 
 
                <MasterTableView EditMode="InPlace" runat="server">  
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                     
                     <Columns> 
 
                        <telerik:GridBoundColumn DataField="CId" UniqueName="CId"   
                            Visible="false">  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn DataField="ON"   
                            UniqueName="ON" Visible="false">  
                        </telerik:GridBoundColumn>   
 
                        <telerik:GridDropDownColumn DataField="Pe" HeaderText="" 
                            UniqueName="Pe" ListTextField="Value" ListValueField="TabIndex">  
                            <ItemStyle Width="150px" /> 
                        </telerik:GridDropDownColumn> 
                                                 
                         
                    </Columns>                     
 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
 
            </telerik:RadGrid> 
        </td> 
    </tr> 
</table> 

thanks a lot

Puneet Jain
Top achievements
Rank 1
 answered on 11 Mar 2010
1 answer
146 views
hiya,

I have the above control that I got with an ms CD. I'm trying to put it on an MVC page.
However it doesn't do anything.
Do you have any patches that'll allow me to use this control on an MVC page?

Thanks
Petio Petkov
Telerik team
 answered on 11 Mar 2010
7 answers
265 views
Hi,

Here's a bug in v2009.3.1314.35.

Run the following code and you'll see that the tooltip is showing the wrong content. Instead of showing the specified toolitip content, it's showing the AlternateText of the ImageButton use to trigger the tooltip.

This bug appeared in v2009.3.1314.35...
   <form id="form1" runat="server"> 
   <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
 
   <h1>Telerik RadToolTip Test - v2009.3.1208.35 vs v2009.3.1314.35</h1> 
   <asp:ImageButton ID="btn" runat="server" ImageUrl="button.png" AlternateText="Press here" /> 
 
   <div> 
      <telerik:RadToolTip ID="rtt" runat="server" Position="Center" RelativeTo="BrowserWindow" 
         Modal="true" TargetControlID="btn" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
         ShowDelay="0" Width="500px" Height="500px"> 
         <h2>Leave the tooltip to close it....</h2> 
      </telerik:RadToolTip> 
   </div> 
   </form> 

Hmm, I had missed it in your release note, but this behavior is very wrong :
Fixed:The RadToolTipManager/RadToolTip interpret the Alt attribute when the target control is explicitly set, not only when AutoTooltipify is used

The ALT attritute is not meant to be tooltipified. Especially when I don't ask it too... It's meant to display something when the image file is missing and to help screen readers understand the page. It's also required to validate as XHTML.

The TITLE tag should be used to build the tooltip, but you already knew that right ?

Is there a workaround as this is definitely not the behavior I want for RadToolTip...

Thanks,

Dominic.
Svetlina Anati
Telerik team
 answered on 11 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?