<telerik:GridTemplateColumn DataField="CostCenterName" HeaderText="Adj Cost Center Name" UniqueName="CostCenterName">
<ItemTemplate>
<%
#DataBinder.Eval(Container.DataItem, "CostCenterName")%>
</ItemTemplate>
<ItemStyle Width="300px" />
<EditItemTemplate>
<telerik:RadComboBox DataTextField="CostCenterName"
DataValueField="CostCenterName"
OnTextChanged="RadComboBoxAdjustedCC_TextChanged"
OnItemsRequested="RadComboBoxAdjustedCC_ItemsRequested"
EnableLoadOnDemand="True"
ID="RadComboBoxAdjustedCC"
runat="server"
Height="140px"
Width="220px"
SelectedValue='<%#Bind("CostCenterName")%>'
DataSourceID="ObjectDataSourceGetCostCenters">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Site" HeaderText="Site" UniqueName="Site">
<ItemTemplate>
<%
#DataBinder.Eval(Container.DataItem, "Site")%>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownListSite" runat="server"
SelectedValue='<%#DataBinder.Eval(Container.DataItem, "Site")%>' >
<asp:ListItem Value="C">BAH</asp:ListItem>
<asp:ListItem Value="G">Govt.</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
Protected Sub RadGridEmpData_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridEmpData.UpdateCommand
Dim s As String
s =
""
Dim objDDL As DropDownList
objDDL =
CType(e.Item.FindControl("DropDownListSite"), DropDownList)
s = objDDL.SelectedValue
Dim objRComb As RadComboBox
objRComb = e.Item.FindControl(
"RadComboBoxAdjustedCC")
s = objRComb.SelectedValue
End Sub
Hello,
I am using RadGrid version 2008.2.826.20.
I am trying to update the record with 'InPlace' editmode. I have following two problems:
1) I want to show Record updated or Inserted message on top of the page instead of adding control in Radgrid. Therefor, I am using label control and once the record is updated trying to show it. With all surprise it assigns the text to label but label doesn't showup!
2) RadAjxLoadingPanel doesn't show up so, as a workaround I set the EnableAJAXLoadingTemplate="true".
Now loading icon comes up but not as shown as on Telerik site. It's not over the grid nor grid becomes transparent. In the grid's box all records disappears and only loading icon shows.
Any ideas?
| <radG:RadGrid ID="RGChoiceItems" allowMultiRowEdit="True" AllowMultiRowSelection="True" Skin="Office2007" EnableAJAXLoadingTemplate="true" |
| GridLines="None" EnableAJAX="true" runat="server" AutoGenerateColumns="False" Width="900"> |
| <HeaderStyle CssClass="BVSmallText" Font-Bold="True" /> |
| <ItemStyle CssClass="ItemStyle" VerticalAlign="Top" /> |
| <AlternatingItemStyle CssClass="AlternateItemStyle" VerticalAlign="Top"/> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" EditMode="InPlace" DataKeyNames="Id" HorizontalAlign="NotSet" > |
| <Columns> |
| <radG:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" UpdateImageUrl="~\RadControls\Grid\Skins\Update.gif" |
| EditImageUrl="~\RadControls\Grid\Skins\Edit.gif" InsertImageUrl="~\RadControls\Grid\Skins\Update.gif" CancelImageUrl="~\RadControls\Grid\Skins\Cancel.gif"> |
| <ItemStyle CssClass="MyImageButton" /> |
| </radG:GridEditCommandColumn> |
| <radG:GridBoundColumn HeaderText="Display Text" UniqueName="Text" MaxLength="50" DataField="DisplayText"> |
| <ItemStyle HorizontalAlign="Left" /> |
| <HeaderStyle HorizontalAlign="Left" /> |
| </radG:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </radG:RadGrid> |
| <radA:RadAjaxManager ID="radManager" runat="server" > |
| <AjaxSettings> |
| <radA:AjaxSetting AjaxControlID="RGChoiceItems"> |
| <UpdatedControls> |
| <radA:AjaxUpdatedControl ControlID="WebpageMessageHolder" LoadingPanelID="RadLoadingPanel1"/> |
| <radA:AjaxUpdatedControl ControlID="RGChoiceItems"/> |
| </UpdatedControls> |
| </radA:AjaxSetting> |
| </AjaxSettings> |
| </radA:RadAjaxManager> |
| <radA:AjaxLoadingPanel ID="RadLoadingPanel1" style="width: 300px; height: 300px; background-color: #DCDCDC;" runat="server" Transparency="5" IsSticky="true"> |
| <asp:Image ID="imgUpdating" runat="server" AlternateText="Updating..." /> |
| </radA:AjaxLoadingPanel> |
Hi,
I can't seem to reference my textbox from my javascript.
on the aspx:
| <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" EnablePageMethods="True"> |
| <Scripts> |
| <asp:ScriptReference Path="scripts.js" /> |
| </Scripts> |
| </asp:ScriptManager> |
| <table cellpadding="0" cellspacing="0"> |
| <tr> |
| <td width="80%"> |
| <%-- <asp:textbox runat="server" TextMode="MultiLine" id="txt" style="WIDTH: 690px; HEIGHT: 260px" rows="16" Columns="79" ></asp:textbox> |
| --%> <telerik:RadTextBox ID="txt" Width="690" Height="260" Rows = "16" Columns = "79" runat="server" TextMode="MultiLine" SelectionOnFocus="CaretToEnd"></telerik:RadTextBox><br /> |
| <asp:TextBox id="txtMsg" Width="400" Runat="server"></asp:TextBox> <input id="btn" onclick="button_clicked()" type="button" value="SEND" class="btn"/> |
| </td> |
| function button_clicked() |
| { |
| var RadTextBox = $find("<%= txt.ClientID %>"); |
| if (RadTextBox == null) { |
| var b = bla; |
| } |
| PageMethods.SendMessage($get("txtMsg").value,$get("hdnRoomID").value,UpdateMessages, errorCallback); |
| $get("txtMsg").value=""; |
| $get("txt").scrollIntoView("true"); |
| } |
| <script type="text/javascript"> |
| function test() { |
| alert("hello"); |
| } |
| </script> |
| <telerik:RadEditor ID="RadEditor1" runat="server" OnClientPasteHtml="test"> |
| <Content> |
| </Content> |
| </telerik:RadEditor> |