Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
171 views
Hello, I have the following scenario:

Repeater with textbox + button that is in an AjaxPanel.  When I click the button, a radWindow pops up which allows a user to make a choice based on a selection and closes.  The selection gets passed back to my javascript callback function.   Now I want to put the return value into the textbox in the repeater.   How do I do this?

I tried hooking up an AjaxManager and the window to update txtBox in the repeater, but this doesn't work.  I would just get use id of the txtBox, but looking at the page source, I can't find those text boxes, probably because their created dynamically at runtime using ajax.  Any suggestions?
Nikolay Raykov
Telerik team
 answered on 24 Nov 2008
2 answers
137 views
Hi,

I'm using latest version of RadGrid with a customized column with a drop down filter, just like the Google-Like filtering example.

Currently, I have the grid to get data from web service and it works really good and fast.  However, if the client OnCommand event gets fired and I bind the grid again (all client side),  my customized filter dropdown would disappear.  Note, there's no post back on the dropdown.  However, if I do make the dropdown to postback, my client side pageLoad() function gets called but it wouldn't be able to find the rad grid control.

Please help!!

Thanks,

Vic
Sebastian
Telerik team
 answered on 24 Nov 2008
2 answers
156 views
How do I make the tfoot tag render last in the html output?
TigerCoder
Top achievements
Rank 1
 answered on 24 Nov 2008
1 answer
394 views
Hi,

The standard DataFormat String {0:C2} will format a number as a currency, but of course it uses the one and only currency symbol appropriate to the current culture.

When the applicaiton has multiple currencies, I would like to format amounts of money with the appropriate currency symbol.

Effectively each row of data in a dataset which has amounts in "currency" will have the appropriate currency symbol as a column/field.

I have achieved the desired result in one way - by changing the text value of the relevant cells in the ItemDataBound event handler, but this seems a little awkward. I initially wanted to modify the DataFormat string, but can't see how to get to it (it is perhaps too late in ItemDataBound).

I was just wondering whether I had a resonable approach before I start to create many different forms.
Sebastian
Telerik team
 answered on 24 Nov 2008
2 answers
142 views
Hi,
I have 2 problems:
1. With the tags: EnableEmbeddedSkins="false" ImagesPath="/App_Themes/Gray/Grid/" I get javascript error:
can't move focus to the control because it is invisible, not enabled or of a type that does not accept the focus.
If I remove the imagepath no error shows.

2. As you see in the print screen below, the datepicker does not find the sprite, what can that be? (I have of course included the css-file and the image, because it works for other datepickers outside of grids.)

http://www.svenskwebbhandel.se/printscreen.gif
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="False" AutoGenerateColumns="False" 
        GridLines="None" Skin="Gray" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" 
        OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand" 
        OnNeedDataSource="RadGrid1_NeedDataSource"  
        OnDeleteCommand="RadGrid1_DeleteCommand"  
        onitemcreated="RadGrid1_ItemCreated" 
        OnItemCommand="RadGrid1_ItemCommand" 
        EnableEmbeddedSkins="false" ImagesPath="/App_Themes/Gray/Grid/"> 
        <ClientSettings> 
            <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" /> 
        </ClientSettings> 
        <MasterTableView Name="Master" EditMode="EditForms" CommandItemDisplay="Top"  
            GridLines="None" DataKeyNames="Id" NoMasterRecordsText="Det finns inga nyheter"> 
            <CommandItemSettings AddNewRecordText="Lägg till" RefreshText="Uppdatera" /> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <EditFormSettings EditFormType="Template"> 
                <FormTemplate> 
                <table class="edittable"> 
                    <tr> 
                        <td>Rubrik:</td> 
                        <td> 
                            <asp:TextBox ID="Heading" runat="server" Text='<%# Bind("Heading") %>' CssClass="large"></asp:TextBox></td> 
                    </tr> 
                    <tr> 
                        <td>Text:</td> 
                        <td> 
                            <telerik:RadEditor ID="Text" runat="server" Skin="Gray" Content='<%# Bind("Text") %>' > 
                                <Tools> 
                                   <telerik:EditorToolGroup> 
                                       <telerik:EditorTool Name="Bold" /> 
                                       <telerik:EditorTool Name="Italic" /> 
                                       <telerik:EditorTool Name="Underline" /> 
                                       <telerik:EditorTool Name="StrikeThrough" /> 
                                       <telerik:EditorTool Name="JustifyLeft" /> 
                                       <telerik:EditorTool Name="JustifyRight" /> 
                                       <telerik:EditorTool Name="JustifyCenter" /> 
                                       <telerik:EditorTool Name="JustifyFull" /> 
                                       <telerik:EditorTool Name="LinkManager" /> 
                                   </telerik:EditorToolGroup> 
                               </Tools> 
                            </telerik:RadEditor> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td>Visas frÃ¥n:</td> 
                        <td> 
                            <telerik:RadDatePicker ID="StartDate" runat="server" dbSelectedDate='<%# Bind("StartDate") %>' EnableEmbeddedSkins="false"> 
                            </telerik:RadDatePicker> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td>Visas t.o.m:</td> 
                        <td> 
                            <telerik:RadDatePicker ID="EndDate" runat="server" dbSelectedDate='<%# Bind("EndDate") %>' EnableEmbeddedSkins="false"> 
                            </telerik:RadDatePicker> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td>Aktiverad:</td> 
                        <td> 
                            <asp:CheckBox ID="IsEnabled" runat="server" Checked='<%# (Container is GridEditFormInsertItem) ? false : Eval("IsEnabled") %>' /></td> 
                    </tr> 
                    <tr> 
                        <td></td> 
                        <td> 
                             <asp:Button ID="btnUpdate" Text="Spara" runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />  
                        </td> 
                    </tr> 
                </table> 
                </FormTemplate> 
            </EditFormSettings> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn HeaderText="Rubrik" UniqueName="Heading" DataField="Heading" /> 
                <telerik:GridHTMLEditorColumn UniqueName="Text" DataField="Text" HeaderText="Text" Display="false" /> 
                <telerik:GridDateTimeColumn UniqueName="StartDate" HeaderText="Visas frÃ¥n" DataField="StartDate" DataFormatString="{0:d}" /> 
                <telerik:GridDateTimeColumn UniqueName="EndDate" HeaderText="Visas t.o.m." DataField="EndDate" DataFormatString="{0:d}" /> 
                <telerik:GridCheckBoxColumn UniqueName="IsEnabled" HeaderText="Aktiverad" DataField="IsEnabled" /> 
                 
                <telerik:GridEditCommandColumn CancelText="Avbryt" EditText="Ändra" InsertText="Spara" UpdateText="Spara" ButtonType="ImageButton" UniqueName="EditCommandColumn"> 
                    <HeaderStyle HorizontalAlign="Right" Width="20" /> 
                    <ItemStyle HorizontalAlign="Right" Width="20" /> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn ConfirmText="Är du säker pÃ¥ att du vill radera denna nyhet?" 
                    ConfirmDialogType="Classic" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" 
                    Text="Radera" UniqueName="DeleteColumn"> 
                    <HeaderStyle HorizontalAlign="Right" Width="20" /> 
                    <ItemStyle HorizontalAlign="Right" Width="20" /> 
                </telerik:GridButtonColumn> 
            </Columns> 
            <EditItemTemplate> 
                 
            </EditItemTemplate> 
            <PagerStyle PagerTextFormat="Ändra sida: {4} &amp;nbsp;Visar sida {0} av {1}, kunder {2} till {3} av {5}." /> 
        </MasterTableView> 
        <FilterMenu EnableTheming="True"> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 



Mattias
Top achievements
Rank 1
 answered on 24 Nov 2008
4 answers
128 views
Hi. I was using the ItemCommand event to handle commands on a grid that was created statically. Now that I've changed the grid to be created programmatically, commands from the grid aren't being handled. Does anyone no how I might be able to solve this?

This is part of my code: 

Protected WithEvents EmployeesGrid As RadGrid

Public

 

Sub EmployeesGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles EmployeesGrid.ItemCommand

 




William
Top achievements
Rank 1
 answered on 24 Nov 2008
1 answer
126 views
I've got a sometimes very large radioButtonList which is being decorated with FormDecorator.

For some reason yesterday in IE7 when I click on a different item, it takes up to 3-4 minutes to change the selected index. This doesn't happen in Firefox. It also doesn't happen on my collegue's computer - I'm running Vista 32bit, he's running XP. The only other Vista computer in our office also has the problem.

I know that its not code-related, as I hadn't changed any code when this started happening. To be sure of it, I reverted my code to an older version, and also checked our test site which hadn't been updated in some time.

I also thought it might be a conflict with some Windows updates as my computer installed 27 of them yesterday. However, after uninstalling them all (one at a time) when I rebooted they got reinstalled anyway. *grr*

It only appears to be an issue when the radioButtonList has a lot of items in it. Also, when I remove the FormDecorator, it works as normal, even for a very large list.

Is anybody else experiencing this? Any suggestions on what is causing it?
Tervel
Telerik team
 answered on 24 Nov 2008
2 answers
159 views
I have a grid with the ClientSetting AllowScroll set to true. When this is set though the grid resizes itself after page load to set it up to the correct size. This is visually quite annoying. Is there anyway to get around this?
Craig
Top achievements
Rank 1
 answered on 24 Nov 2008
1 answer
64 views

Hi,

Where could I find documentation or instructions - hopefully from one place - how to integrate "RAD controls for Ajax" (Q3 2008) into "Windows Sharepoint Services 3.0"  and "SharePoint Developer" (12.0 with SP1) ?

tia,
Kari

Sebastian
Telerik team
 answered on 24 Nov 2008
2 answers
157 views
I have three textboxes and one telerik editor. i am performing the spell check (using client side javascript)for all the three textboxes and editor, but some how i am unable to  perform spell check for editor which is not supporting javascript spell check( i performed  spell check as per example which you given in the demo examples). i am using 2008 version telerik. can u let me know solution for this very urgent.
vikram
Top achievements
Rank 1
 answered on 24 Nov 2008
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?