Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
142 views
Since updating to your guys latest dll's we appear to have a problem with the Image Manager within the RadEditor.

The image manager has a created date field built into it and this now appears to fall over since the last updates.

The following code is what is being implemented:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        _RadFileExplorer = CType(Me.FindRadControl(Me.Page), Telerik.Web.UI.RadFileExplorer)
        If Not _RadFileExplorer Is Nothing Then
            _RadFileExplorer.Configuration.ContentProviderTypeName = GetType(CustomColumnsContentProvider).AssemblyQualifiedName
            AddHandler _RadFileExplorer.ExplorerPopulated, AddressOf RadFileExplorer_ExplorerPopulated
        End If
 
        'Add the created date column
        AddGridColumn("Creation Date", "Created", True)
 
        Dim splitter As RadSplitter = _RadFileExplorer.FindControl("splitter")
 
    End Sub


Private Sub AddGridColumn(ByVal name As String, ByVal uniqueName As String, ByVal sortable As Boolean)
        'remove first if grid has a column with that name
            RemoveGridColumn(uniqueName)
            ' Add a new column with the specified name
            Dim gridTemplateColumn1 As New GridTemplateColumn()
            gridTemplateColumn1.HeaderText = name
            If sortable Then
                gridTemplateColumn1.SortExpression = uniqueName
            End If
            gridTemplateColumn1.UniqueName = uniqueName
            gridTemplateColumn1.DataField = uniqueName


            _RadFileExplorer.Grid.Columns.Add(gridTemplateColumn1)
    End Sub


    Private Sub RemoveGridColumn(ByVal uniqueName As String)
        If Not [Object].Equals(_RadFileExplorer.Grid.Columns.FindByUniqueNameSafe(uniqueName), Nothing) Then
            _RadFileExplorer.Grid.Columns.Remove(_RadFileExplorer.Grid.Columns.FindByUniqueNameSafe(uniqueName))
        End If
    End Sub

On both the .remove and .add of the grid column we are getting object reference errors. Are you guys aware of any  issues or anything that may have changed surrounding this since the latest updates.

Thanks.
Jibber4568
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
93 views
using IE if i enter an invalid date the field highlights red and shows the ! icon - al ok so far.

If I then go back to the field and press escape twice the original date loaded is restored - the problem is that the date restored is shown in US format, i.e. month swapped with day.

How can I workaround this?
Milena
Telerik team
 answered on 09 May 2012
3 answers
134 views
Hi.,
I want to find the button ids(btnBookNP & btnClear)(I have written the code in bold below). Plz suggest me a solution
<telerik:RadGrid ID="dgridMain" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            CellPadding="1" CellSpacing="1" GridLines="None" DataKeyNames="ZoneId" PageSize='<%$ appSettings:RowSize %>'
            OnNeedDataSource="dgridMain_NeedDataSource" OnDetailTableDataBind="dgridMain_DetailTableDataBind"
            OnPreRender="RadGrid1_PreRender" AllowMultiRowSelection="True" OnItemCommand="dgridMain_ItemCommand"
            Skin="Telerik" OnItemDataBound="dgridMain_DataBound">
            <MasterTableView DataKeyNames="ZoneId" ExpandCollapseColumn-ButtonType="SpriteButton"
                AllowMultiColumnSorting="True" ExpandCollapseColumn-Display="true">
                <CommandItemSettings ShowExportToExcelButton="true" ShowExportToCsvButton="true"
                    ShowExportToPdfButton="true" ShowRefreshButton="true" ShowAddNewRecordButton="false" />
                <DetailTables>
                    <telerik:GridTableView Name="NewsPaper" DataKeyNames="NewsPaperId" runat="server"
                        ExpandCollapseColumn-Display="true">
                        <DetailTables>
                            <telerik:GridTableView Name="Page" runat="server" DataKeyNames="Page" GridLines="None"
                                Skin="Black">
                                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                <Columns>
                                    <telerik:GridBoundColumn FilterControlAltText="Filter Page column" HeaderText="Page No"
                                        SortExpression="Page" DataField="Page" UniqueName="Page" HeaderStyle-Font-Bold="true">
                                        <HeaderStyle Font-Bold="True"></HeaderStyle>
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <NestedViewSettings>
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="Page" MasterKeyField="Page" />
                                    </ParentTableRelation>
                                </NestedViewSettings>
                                <NestedViewTemplate>
                                    <asp:Panel ID="NestedViewPanel" runat="server">
                                        <div>
                                            <fieldset style="margin: 10px">
                                                <legend style="padding: 5px;" class="legend"><b>Newspaper Advertisement Setting:&nbsp;
                                                    &nbsp; </legend>
                                                <table width="100%" cellpadding="1" cellspacing="1" style="float: left; margin-left: 1px">
                                                    <tr>
                                                        <td valign="top" style="width: 300px;">
                                                            <table>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <b>Description </b>
                                                                        <asp:HiddenField ID="hfPreSelectAmt" runat="server" />
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:HiddenField ID="hfAdvertisementID" runat="server" Value='<%#Bind("AdvertisementId") %>' />
                                                                        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Bind("StatusId") %>' />
                                                                        <asp:HiddenField ID="hfPageNo" runat="server" Value='<%#Bind("Page") %>' />
                                                                        <asp:HiddenField ID="hfNewspaperID" runat="server" Value='<%#Bind("NewsPaperId") %>' />
                                                                        <asp:HiddenField ID="hfOrientation" runat="server" Value='<%#Bind("Orientation") %>' />
                                                                        <asp:Label ID="lblDescription" Text='<%#Bind("Description") %>' runat="server"></asp:Label>
                                                                        <asp:HiddenField ID="hfOfflineAdvId" runat="server" />
                                                                        <%-- Value='<%# Eval("OfflineAdvId") %>' --%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <b>ColumnNo </b>
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:Label ID="lblColumnNo" Text='<%#Bind("ColumnNo") %>' runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <b>Deadline Days </b>
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:Label ID="lblDeadLineHrs" Text='<%#Bind("DeadlineHours") %>' runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td valign="top">
                                                            <table>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <b>Orientation </b>
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:Label ID="lblOrientation" Text='<%#Bind("Orientation") %>' runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <b>Prices </b>
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:Label ID="lblCost" Text='<%#Bind("Cost") %>' runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top" style="text-align: left; padding: 2px; width: 100px;">
                                                                        <strong>Total Amount</strong>
                                                                    </td>
                                                                    <td valign="top" style="text-align: left; padding: 2px;">
                                                                        <asp:Label ID="lblTotalAmt" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </div>
                                        <div>
                                            <fieldset style="margin: 10px">
                                                <legend style="padding: 5px;" class="legend"><b>Select Offline Advertisement Published
                                                    Dates:&nbsp; &nbsp; </legend>
                                                <table width="100%" cellpadding="1" cellspacing="1" style="float: left; margin-left: 1px">
                                                    <tr>
                                                        <td valign="top">
                                                            <div>
                                                                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                                                                    <telerik:RadCalendar ID="RadCalForAdvt" runat="server" MultiViewColumns="5" MultiViewRows="2"
                                                                        EnableMultiSelect="true" ShowOtherMonthsDays="false" EnableNavigation="false"
                                                                        OnDataBinding="RadCalForAdvt_DataBind" ShowRowHeaders="false" AutoPostBack="false"
                                                                        EnableMonthYearFastNavigation="false">
                                                                        <ClientEvents OnDateSelected="DateSelected" />
                                                                    </telerik:RadCalendar>
                                                                </telerik:RadAjaxPanel>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div style="float: right;">
                                                                <telerik:RadButton ID="btnBookNP" runat="server" CommandArgument="BookDates" Text="Book"
                                                                    Skin="Black">
                                                                </telerik:RadButton>
                                                                <telerik:RadButton ID="btnClear" runat="server" CommandArgument="Clear" Text="Clear"
                                                                    Skin="Black">
                                                                </telerik:RadButton>

                                                                <asp:Label ID="ShowDates" runat="server" Visible="false"></asp:Label>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </div>
                                    </asp:Panel>
                                </NestedViewTemplate>
                                <CommandItemSettings RefreshText="Refresh"></CommandItemSettings>
                            </telerik:GridTableView>
                        </DetailTables>
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="NewsPaperName" FilterControlAltText="Filter NewsPaper column"
                                HeaderText="NewsPaper" SortExpression="NewsPaper" UniqueName="NewsPaper" HeaderStyle-Font-Bold="true">
                                <HeaderStyle Font-Bold="True"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <Columns>
                    <telerik:GridBoundColumn DataField="Zone" FilterControlAltText="Filter Zone column"
                        HeaderText="Zones" SortExpression="Zone" UniqueName="Zone">
                        <HeaderStyle Font-Bold="True"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>


Regards,
Aditya
Aditya
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
109 views
Hello
i try the latest evaluation of RadEditor, and i try the Image Manager associate to RadEditor.
The path i want to configure is this:
 "/Neocase.BdC.Web.Front/Storage/DEV.NEOCASE.LOCAL_80/Documents/1025/Editor"

It seems this path result to an issue, the interface don't appears, just the message "Loading"

if i give this path for exemple:  "/Neocase.BdC.Web.Front/Storage" the interface is loading well.
I can't use '.' chars in path?

2 question:
The upload button is disabled, i have put rights everyone can do everything but it don't work, also implemented the FullPermissionsTest method documented, but it gives no exceptions.

In my case Neocase.BdC.Web.Front is IIS a virtual directory.

An idea for this issue?

Best Regards
Rumen
Telerik team
 answered on 09 May 2012
1 answer
50 views
I have a chart in a contentpage of a masterpage.  When I try to use the $find method in the javascript on the page it comes back as null. I put this
var chart = $find("<%= myChart.ClientID %>"); in a javascript function on the content page and 
I just click a button to call it.  But chart comes back as null. What am I doing wrong?
Petar Marchev
Telerik team
 answered on 09 May 2012
1 answer
119 views
I have a context menu on a RadTreeView which appears when a user right clicks on a tree node and all works fine. I also have the OnClientMouseOver and OnClientMouseOut to create a popup RadWindow which which shows meta data about the current node; all works fine.

But when I attempt to have the two processes worki together such as this scenario, it fails
  1. User's mouse enters the node space and the hover brings alive the RadWindow.
  2. User goes to right click the node (hasn't left the node's mouse out boundary)

At that point the context menu starts displaying but the OnClientMouseOut is called which closes the meta window. Then the context window immediately dissapears and the mouse is now (hasn't moved) over the node's hover zone and the meta window is created a fresh and comes back up.

The expected behavior is that the context window, as with the RadWindow which has been poped up, should exist together until the user chooses an action on the right click menu. At that point I could determine whether to close the RadWindow or not.

Is it possible to not have the context operation generate a call to the OnMouseClose?

advTHANKSance

Bozhidar
Telerik team
 answered on 09 May 2012
1 answer
118 views
Hi,

I am using RadControls Ajax Q3 2010.

I have a very simple graph 
<telerik:RadChart ID="chtPrices" runat="server" DefaultType="Line" Width="500px"
                Height="300px" AutoLayout="true">
                <ChartTitle Visible="false" />
                <Legend Visible="false" />
                <PlotArea>
                    <XAxis Visible="True" />
                    <YAxis ScaleBreaks-Enabled="true" IsZeroBased="false" />
                    <EmptySeriesMessage TextBlock-Text="No Data Selected"/>
                </PlotArea>
            </telerik:RadChart>

and I set its data source dynamically
DataTable prices = PricessManager.GetPrices();
chtPrices.DataSource = prices;
chtPrices.DataBind();

When the data in the data table contains several values (doubles) that are the same (say 91.1, 91.1, 91.1, etc), the graph does not draw the line and instead of centering the graph around 91.1 (since IsZeroBased is set to false), it centers it around 0 which leads me to believe for some reason it's not taking the values at all.

When the same exact data table but with various numbers (say 91, 92, 84.3, 96.1, etc) is used to set the data source, the graph works fine.

Any thoughts?
Petar Marchev
Telerik team
 answered on 09 May 2012
1 answer
121 views
Hey Guys

I am using RadTreeList and doing the hierarchical binding of data by keeping that in the update panel and doing server side binding using AjaxManager and keep the paging enabled.
Whenever I click on any page number or Group(-) Image on the top left of the tree list it throws java script error and treelist got crashed and is unable to find the id of the treeview in update panel and shows control undefined
Is there any other way to group the data on the basis of 'ParentI3D' and having sorting and paging functionality enabled

Here is the design of my treelist:

<asp:UpdatePanel ID="upPanel" runat="server" UpdateMode="Always">                     <ContentTemplate>                           <telerik:RadTreeList ID="gvCustomerMonitorFailures" runat="server" ParentDataKeyNames="ParentI3D"                         ClientIDMode="Static" DataKeyNames="I3D" AllowPaging="true" PageSize="5" AutoGenerateColumns="false"                         AllowSorting="true" ShowTreeLines="false" GridLines="None" AllowMultiItemSelection="true">                         <ClientSettings Selecting-AllowItemSelection="false">                             <ClientEvents OnItemSelected="gvCustomerMonitorFailures_OnItemSelected" OnItemClick="gvCustomerMonitorFailures_OnItemClick">                             </ClientEvents>                         </ClientSettings>                         <Columns>                             <telerik:TreeListBoundColumn DataField="DisplayName" UniqueName="DisplayName" HeaderText=""                                 HeaderStyle-Width="35px" />                             <telerik:TreeListTemplateColumn DataField="IsCheck" UniqueName="IsCheck" HeaderText="">                                 <ItemTemplate>                                     <img src='<%# ProcessMyDataItem(Eval("IsCheck")) %>' id="DisplayIsDeleted" alt=""                                         style="margin-left5pxmargin-top5pxwidth16pxheight16px;" />                                 </ItemTemplate>                                 <HeaderStyle Width="35px" />                                 <ItemStyle HorizontalAlign="Center" />                             </telerik:TreeListTemplateColumn>                             <telerik:TreeListTemplateColumn DataField="IsProblems" UniqueName="IsProblems" HeaderText="">                                 <ItemTemplate>                                     <img src='<%# ProcessMyDataItem(Eval("IsProblems")) %>' id="DisplayIsDeleted" alt=""                                         style="margin-left5pxmargin-top5pxwidth16pxheight16px;" />                                 </ItemTemplate>                                 <HeaderStyle Width="35px" />                                 <ItemStyle HorizontalAlign="Center" />                             </telerik:TreeListTemplateColumn>                             <telerik:TreeListTemplateColumn DataField="IsProcessorPerformance" UniqueName="IsProcessorPerformance"                                 HeaderText="">                                 <ItemTemplate>                                     <img src='<%# ProcessMyDataItem(Eval("IsProcessorPerformance")) %>' id="DisplayIsDeleted"                                         alt="" style="margin-left5pxmargin-top5pxwidth16pxheight16px;" />                                 </ItemTemplate>                                 <HeaderStyle Width="35px" />                                 <ItemStyle HorizontalAlign="Center" />                             </telerik:TreeListTemplateColumn>                             <telerik:TreeListBoundColumn DataField="Description" UniqueName="Description" HeaderText="<%$ Resources:CEntronResource, clmDescription %>">                                 <ItemStyle HorizontalAlign="Right" />                             </telerik:TreeListBoundColumn>                             <telerik:TreeListBoundColumn DataField="StartAsString" UniqueName="StartAsString"                                 HeaderText="<%$ Resources:CEntronResource, clmStart %>" />                             <telerik:TreeListBoundColumn DataField="FinishAsString" UniqueName="FinishAsString"                                 HeaderText="<%$ Resources:CEntronResource, clmFinish %>" />                             <telerik:TreeListBoundColumn DataField="Time" UniqueName="Time" HeaderText="<%$ Resources:CEntronResource, clmTime %>" />                             <telerik:TreeListBoundColumn DataField="FailureReason" UniqueName="FailureReason"                                 HeaderText="<%$ Resources:CEntronResource, clmFailureReason %>" />                         </Columns>                     </telerik:RadTreeList>                                                    </ContentTemplate>                 </asp:UpdatePanel>




Here is the Ajax request event which I used to call on my another control click:

      /// <summary>
        /// Handles the AjaxRequest event of the RadAjaxManager1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Telerik.Web.UI.AjaxRequestEventArgs"/> instance containing the event data.</param>
        protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
              
            //UserControl treelist = (UserControl)this.FindControl("serverComptDetailsView");
            UpdatePanel updPanel = (UpdatePanel)serverComptDetailsView.FindControl("upPanel");
            RadTreeList treelist = (RadTreeList)serverComptDetailsView.FindControl("gvCustomerMonitorFailures");
           
            CEntronRestServiceClient serviceClient = new CEntronRestServiceClient();
            RequestOfint request = new RequestOfint();
            request.Data = Convert.ToInt32(e.Argument.ToString());
            ResponseOfMonitoringDataFailureDTOHGZ00jlC response = new ResponseOfMonitoringDataFailureDTOHGZ00jlC();
            response = serviceClient.GetMonitoringDataFailureDetailByDeviceID(request);

            treelist.DataSource = response.Result;

        
        }
Antonio Stoilkov
Telerik team
 answered on 09 May 2012
1 answer
122 views
Hello,

I am using RadAJAX panel.

I have a radgrid and it has Expand and collapse functionality to expand and collapse rows.

If I expand rows and click on Update button, again it is showing in collapse mode. I want the Grid to appear like it looks before postback

What I have to do ?

TIA
Princy
Top achievements
Rank 2
 answered on 09 May 2012
5 answers
214 views
Hi,
I would like to add a Comboxbox to  New Appointment Window(ComboBox will have 2 values "Development" , "Testing")
So User can able to select value from combobox and save into the database.

How can we add Comboxbox..?
Shinu
Top achievements
Rank 2
 answered on 09 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?