<
PagerTemplate>
<table border="0" cellpadding="2" cellspacing="0" style="height: 20px" align="right">
<tr>
<td valign="baseline">
<%# ((int)DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex")+ 1) * (int)DataBinder.Eval(Container, "Paging.PageSize") - 4%>
-
<%
# ((int)DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex") + 1) * (int)DataBinder.Eval(Container, "Paging.PageSize") - 5 + (int)DataBinder.Eval(Container, "Paging.Count")%> of
<%
# DataBinder.Eval(Container, "Paging.DataSourceCount")%>
|
<asp:LinkButton CssClass="pagination" ID="lbPrev" Enabled='<%# (int)DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex") !=0 %>' CommandName="Page" CausesValidation="false" CommandArgument="Prev" runat="server">
<%=Resources.Resource.strPrev_Paging%></asp:LinkButton>
|
</td>
<td valign="baseline">
<asp:LinkButton CssClass="pagination" ID="LinkButton4" runat="server" CommandName="CustomChangePage"></asp:LinkButton>
</td>
<td valign="baseline">
|
<asp:LinkButton CssClass="pagination" ID="lbNext" Enabled='<%# (int)DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex") != (int)DataBinder.Eval(Container, "Paging.PageCount")-1 %>' CommandName="Page" CausesValidation="false" CommandArgument="Next" runat="server">
<%=Resources.Resource.strNext_Paging%></asp:LinkButton>
</td>
</tr>
</table></PagerTemplate>
It worked fine until recently when I encountered an "Object doesn't support this property or method." error message when I select from the dropdown. In View Source, the entire grid is not visible. I tried using Style["Display"] instead of the Visible property but I still encounter the same error.
What can I do?
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <div style="padding:25px; height:70px;"> |
| <div style="width:100%; float:left; margin:0 auto; text-align:center; display:inline; "> |
| <asp:Label ID="lblBw" runat="server" Text="B/W Volume: " /> |
| <telerik:RadNumericTextBox ID="rtxtBwVolume" runat="server" CssClass="AlignRight" |
| Culture="English (United States)" InvalidStyleDuration="100" MaxValue="100000" |
| MinValue="0" ShowSpinButtons="True" Value="1000" Width="75px" > |
| <IncrementSettings Step="1000" /> |
| <NumberFormat AllowRounding="True" DecimalDigits="0"></NumberFormat> |
| </telerik:RadNumericTextBox> |
| <asp:Label ID="lblColor" runat="server" Text="Color Volume: " /> |
| <telerik:RadNumericTextBox ID="rtxtColorVolume" runat="server" CssClass="AlignRight" |
| Culture="English (United States)" InvalidStyleDuration="100" MaxValue="100000" |
| MinValue="0" ShowSpinButtons="True" Value="1000" Width="75px" > |
| <IncrementSettings Step="1000" /> |
| <NumberFormat AllowRounding="True" DecimalDigits="0"></NumberFormat> |
| </telerik:RadNumericTextBox> |
| <asp:label ID="lblUnits" runat="server" Text="Units: " Visible="false"/> |
| <asp:RadioButtonList ID="rblUnits" runat="server" RepeatLayout="flow" |
| RepeatDirection="horizontal" EnableTheming="false" Visible="false" > |
| <asp:ListItem Value="3" Text="Feet" /> |
| <asp:ListItem Value="4" Text="Meters" /> |
| </asp:RadioButtonList> |
| </div> |
| <div style="width:100%; float:left; margin:0 auto; text-align:center; "> |
| <asp:CheckBox ID="chkNoWarranty" runat="server" Text="No Warranty" /> |
| <asp:CheckBox ID="chkFiery" runat="server" Text="Fiery" /> |
| <asp:CheckBox ID="chkNewCustomer" runat="server" Text="New Customer" /> |
| </div> |
| <div style="width:100%; float:left; margin:0 auto; text-align:center; "> |
| <asp:Button runat="server" ID="btnUpdate" Text="Update" CommandName="Update" /> |
| <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" /> |
| </div> |
| </div> |
| <asp:Panel ID="pnlError" runat="server" > |
| <div style="text-align:center;"><asp:PlaceHolder id="PlaceHolder1" runat="server" /></div> |
| <div style="text-align:center; color:Red;"><des:ValidationSummary ID="ValidationSummary1" runat="server" Group="Volume" /></div> |
| </asp:Panel> |
| </FormTemplate> |
| </EditFormSettings> |
| Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated |
| If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then |
| Dim editItem As GridEditableItem = TryCast(e.Item, GridEditableItem) |
| Dim txtbx As RadNumericTextBox = DirectCast(editItem.FindControl("rtxtBwVolume"), RadNumericTextBox) |
| Dim ent As MaPlansEquipmentEntity = MAM.GetMaEquipmentWithRates(editItem.GetDataKeyValue("MaPlansEquipmentId")) |
| Dim chkWarranty As CheckBox = DirectCast(editItem.FindControl("chkNoWarranty"), CheckBox) |
| Dim chkFiery As CheckBox = DirectCast(editItem.FindControl("chkFiery"), CheckBox) |
| Dim chkNewCust As CheckBox = DirectCast(editItem.FindControl("chkNewCustomer"), CheckBox) |
| chkWarranty.Checked = ent.NoWarrantyYn |
| chkFiery.Checked = ent.FieryYn |
| chkNewCust.Checked = ent.NewCustYn |
| Dim lblBw As Label = DirectCast(editItem.FindControl("lblBw"), Label) |
| Dim lblColor As Label = DirectCast(editItem.FindControl("lblColor"), Label) |
| Dim lblUnits As Label = DirectCast(editItem.FindControl("lblUnits"), Label) |
| Dim rtxtBwVolume As RadNumericTextBox = DirectCast(editItem.FindControl("rtxtBwVolume"), RadNumericTextBox) |
| Dim rtxtColorVolume As RadNumericTextBox = DirectCast(editItem.FindControl("rtxtColorVolume"), RadNumericTextBox) |
| Dim rblUnits As RadioButtonList = DirectCast(editItem.FindControl("rblUnits"), RadioButtonList) |
| rblUnits.SelectedValue = 3 |
| End If |
| End Sub |
| Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand |
| If e.CommandName = "Update" Then |
| Dim editItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem) |
| Dim Id As Integer = editItem.GetDataKeyValue("MaPlansEquipmentRateId") |
| Dim rtxtBwVolume As RadNumericTextBox = DirectCast(editItem.FindControl("rtxtBwVolume"), RadNumericTextBox) |
| Dim rtxtColorVolume As RadNumericTextBox = DirectCast(editItem.FindControl("rtxtColorVolume"), RadNumericTextBox) |
| Dim rblUnits As RadioButtonList = DirectCast(editItem.FindControl("rblUnits"), RadioButtonList) |
| Dim chkWarranty As CheckBox = DirectCast(editItem.FindControl("chkNoWarranty"), CheckBox) |
| Dim chkFiery As CheckBox = DirectCast(editItem.FindControl("chkFiery"), CheckBox) |
| Dim chkNewCust As CheckBox = DirectCast(editItem.FindControl("chkNewCustomer"), CheckBox) |
| Try |
| MAM.UpdateMachineNew(Id, rtxtBwVolume.Value, rtxtColorVolume.Value, rblUnits.SelectedValue, _ |
| chkWarranty.Checked, chkFiery.Checked, chkNewCust.Checked, Profile.UserId) |
| e.Item.Edit = False |
| Me.RadGrid1.Rebind() |
| Catch ex As Exception |
| 'Error code here |
| End Try |
| End If |
| End Sub |
| GridGroupByExpression expression = new GridGroupByExpression(); |
| GridGroupByField gridGroupByField = new GridGroupByField(); |
| //Add select fields (before the "Group By" clause) - Campo de ruptura |
| gridGroupByField = new GridGroupByField(); |
| gridGroupByField.FieldName = "tableori"; |
| gridGroupByField.FormatString = "<strong>{0}</strong>"; |
| expression.SelectFields.Add(gridGroupByField); |
| //Add a field for group-by (after the "Group By" clause) - Agrupación |
| gridGroupByField = new GridGroupByField(); |
| gridGroupByField.FieldName "tableori"; |
| expression.GroupByFields.Add(gridGroupByField); |
| assigGrid.MasterTableView.GroupByExpressions.Add(expression); |
| assigGrid.MasterTableView.ShowGroupFooter = true; |
| protected void assigGrid_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| try |
| { |
| if (defObjeto == null) |
| { |
| objeto = Request.QueryString["obj"]; |
| idioma = UtilControlSession.GetIdioma(Session); |
| wc = new WebCache(Cache, (string)Session[Constantes.SESS_APLICACION_ACTIVA], bdConnStr); |
| defObjeto = wc.GetObjetoAsignacionH(objeto, idioma); |
| } |
| if (e.Item is GridGroupHeaderItem) |
| { |
| GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; |
| // Los datos que afectan a esta agrupación (criterio(s) de agrupación y subtotales si los hubiere) |
| DataRowView groupDataRow = (DataRowView)e.Item.DataItem; |
| int colSpan = item.Cells[1].ColumnSpan; |
| item.Cells.RemoveAt(1); |
| TableCell tc = new TableCell(); |
| tc.ColumnSpan = colSpan; |
| tc.HorizontalAlign = HorizontalAlign.Left; |
| tc.Text = "My title"; |
| item.Cells.Add(tc); |
| } |
| } |
| catch (Exception exc) |
| { |
| } |
| } |
| public class myTemplate : ITemplate |
| { |
| void ITemplate.InstantiateIn(Control container) |
| { |
| //want to get the reference of column here |
| } |
| } |
I plan to make a RichEditor on ASP.NET, Design mode only.
Ideally, the main box border should always be a simple silver color 1px border, always. When user click the text area, the tool bar should show a band of icons.
I can make the main box with simple silver 1px border either in editing or non-editing by this:
EditModes="Design"
EnableResize="False" EnableTheming="False" Height="600px" Skin="Vista"
ToolbarMode="ShowOnFocus" Width="500px" BorderColor="Silver" BorderWidth="1px" EnableAjaxSkinRendering="True" EnableEmbeddedBaseStylesheet="True" EnableEmbeddedSkins="False" ToolsWidth="500px" BorderStyle="Solid"
but this also makes the toolbar looks weired (no icons anymore,but tooltips still there).
How do I make the toolbar still show properly but only main box without skins?
Thanks a lot

fileName =
Me.RadUpload1.UploadedFiles(0).GetName()
filePath =
Me.RadUpload1.UploadedFiles(0).FileName
Question: If the filePath is something like X:\SomeFolder\SomeDocument.xls, for which X points to a mapped drive like \\servera\
How can I return the filePath with the actual server name? instead of the mapped drive letter?
So I want: \\servera\SomeFolder\SomeDocument.xls,
instead of X:\SomeFolder\SomeDocument.xls,
thanks
