Hi,
Is it possible to update the value of all rows in a column.
Say, my grid is as displayed below
Name A B
Test1 valueA1 valueB1
Test2 valueA2 valueB2
Test3 valueA3 valueB3
Bulk Update Textbox1 UpdateButton1 Textbox2 UpdateButton2
Here Columns A and B will be having textboxes. Now when i enter the value in the bulkupdate Textbox1 and click on UpdateButton1, all the textboxes in columnA should be updated with the value in the Textbox1.
Thanks
I have implemented the RadEditor with the spellchecker successfully into my webpage as described in the help … all works ok.
The problem is I don’t want all the buttons in the toolbar so I add a tools section (see below).
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="FontName" />
<telerik:EditorTool Name="FontSize" />
<telerik:EditorTool Name="ForeColor" />
<telerik:EditorTool Name="Bold" />
<telerik:EditorTool Name="SpellCheck" />
</telerik:EditorToolGroup>
</Tools>
When I do that I only get the buttons I want but the SpellCheck no longer works. I get a ‘The command SpellCheck is not implemented yet’ error. The icon is also missing for the spell check button.
What else do I need to do to get the spell check to work again?
| protected void RadGrid_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| Person p = (Person) e.Item.DataItem; |
| if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) |
| { |
| Label lblAddress = (Label) e.Item.Cells[4].FindControl("lblAddress"); |
| if (p.Addresses != null) |
| { |
| if (p.Addresses.Count > 0) |
| { |
| Address address = p.Addresses[0]; |
| lblAddress.Text = address.StreetNumber.Trim() + " " + address.StreetName.Trim() + " " + |
| address.AptNumber.Trim(); |
| } |
| } |
| } |
| } |
Is there a problem with sorting Template Column?
I bind the grid to Anonymus Type on codebehind
Sorting any other column GridBoundColumn or GridDateTimeColumn
works fine.
please advise......
below is my code.
| <telerik:GridBoundColumn DataField="rs.ReqServiceID" SortExpression="rs.ReqServiceID" HeaderText="ServiceID"/> |
| <telerik:GridDateTimeColumn DataField="rs.DateFollowup" SortExpression="rs.DateFollowup" HeaderText="Followup Date" Groupable="true" Aggregate="Min" DataType="System.DateTime" FilterListOptions="VaryByDataType" HeaderStyle-Width="140" DataFormatString="{0:g}"/> |
| <telerik:GridTemplateColumn HeaderText="User" SortExpression="rs.UserName" DataField="rs.UserName" UniqueName="rs.UserName"> |
| <ItemTemplate> |
| <asp:Image ImageUrl="~/images/service_edit.png" Visible='<%#IIF(Eval("rs.UserName")<>"", "true","false")%>' ID="imgUserName" runat="server" ImageAlign="AbsBottom"/> <%#Eval("rs.UserName")%> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <EditFormSettings CaptionDataField="ID" CaptionFormatString="Edit Form for Case {0}" EditFormType="WebUserControl" UserControlName="EditForm.ascx"></EditFormSettings> |
| Message: Sys.WebForms.PageRequestManagerServerErrorException: The file '/webtest/EditForm.ascx.cs' does not exist. |
| URI: http://localhost:88/webtest/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ae7ad36d2-e9ec-4737-9fbd-fcc9c464e2bd%3a16e4e7cd%3aed16cbdc%3a58366029%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289 |
| <telerik:GridTemplateColumn UniqueName="feedName" HeaderText="Feed name" DataField="feed_name"> |
| <ItemTemplate> |
| <asp:Label ID="feed_nameLabel" runat="server" Text='<%#Eval("feed_name") %>'></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadTextBox ID="feed_name" runat="server" Enabled="false" Width="175px" |
| ToolTip="Click on lookup icon to choose from sources" Text = '<%# Eval("feed_name") %>'> |
| </telerik:RadTextBox> |
| <asp:ImageButton ID="sourceLookUpButton" runat="server" |
| AlternateText="Click to choose feed name" ImageUrl="~/Images/Lookup1.gif" |
| OnClientClick="openSourceWindow(); return false;" |
| ToolTip="Click to choose source" /> |
| <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" |
| ControlToValidate="feed_name" Display="Dynamic" ErrorMessage="* required" |
| ForeColor="#003DEB" SetFocusOnError="true" |
| ValidationGroup="FeedValidationGroup"></asp:RequiredFieldValidator> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode && e.Item.OwnerTableView.Name == "FeedTableView") |
| { |
| if (e.Item.OwnerTableView.IsItemInserted) // item is about to be inserted |
| { |
| GridEditableItem editableItem = (GridEditableItem)e.Item; |
| RadTextBox feedName = (RadTextBox)editableItem["feedName"].FindControl("feed_name"); |
| string script = String.Format("GetFeedNameID = '{0}';\n", editableItem["feedName"].FindControl("feed_name").ClientID); |
| ClientScript.RegisterClientScriptBlock(Page.GetType(), "mykey", script, true); |
| RadAjaxPanel1.ResponseScripts.Add(script); |
| } |
| } |
| function OnClientSourceClose(oWnd) { |
| var txtbxSourceName; |
| var txtbxSourceID; |
| if (oWnd.argument.returnCode == 0) // if returnCode is 0, user cancelled - don't change anything |
| return; |
| if (oWnd.argument.returnCode == -1) // user pressed clear - clear out values |
| { |
| txtbxSourceName = $find("source_name"); |
| txtbxSourceName.set_value(""); |
| txtbxSourceID = $find("source_id"); |
| txtbxSourceID.set_value("-1"); |
| return; |
| } |
| //get the transferred arguments |
| var source_name = oWnd.argument.sourceName; |
| var sourceId = oWnd.argument.sourceID; |
| $get(GetFeedNameID).innerHTML = source_name; |
| } |
I created a custom tool button for my Rad editor, and the button functions properly. I also added the following code for the icon for the button:
| <style type="text/css"> |
| .reToolbar.Vista .MySymbols |
| { |
| background-image: url("../img/rt_icon.gif")!important; |
| } |
| </style> |
However, while the icon/button show up properly in design mode of VS2005, when I run the page in IE7 I only see all the other standard toolbar buttons and my button with a small "i" in the bottom right corner.
Might someone be able to help me know what I'm missing?
Thanks!
Michael