Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
81 views
Have you changed the default z-index in 2013Q1?

I had a css overlay "eu cookie warning" which is now obscured by a radpanelbar since upgrading to 2013Q1.

I have fixed this by explicitly setting a very high z-index for the overlay, which is fine.

But can you confirm whether this is a bug, or do you have a new updated list of default z-indices for all controls.
Kate
Telerik team
 answered on 27 Mar 2013
4 answers
141 views
I'm trying to have a radgrid that uses the needdatasource event to allow filtering/sorting, but how do I keep client side changes made to the grid in between loads?

For example, the page loads, then a user clicks a button which changes the selected row on the client side. The user then sorts/filters and the changes are gone. I would like those changes to be preserved. The changes are actually committed to the server on another button click. Is this possible?
Shawn
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
439 views
Hi, I have a Panel Bar on a page that will display different errors for different reasons (from a query string).
I want to tell the Panel Bar (On Page Load - a protected void will be called) to Expand or Enable certain RadPanelItem(s).

Code Behind:
protected void LoadPanelItems()
{
    RadPanelItem expired = rdPnlStatusError.FindItemByValue("ExpiredPassword");
    RadPanelItem locked = rdPnlStatusError.FindItemByValue("AccountLocked");
    RadPanelItem invalid = rdPnlStatusError.FindItemByValue("InvalidLogin");
    RadPanelItem forgot = rdPnlStatusError.FindItemByValue("ForgotPassword");
     
    var errCode = GetError(Request.QueryString["eCode"]);
    switch (errCode)
    {
        case "ValidExpired":
            expired.Expanded = true;
            locked.Enabled = false;
            invalid.Enabled = false;
            forgot.Enabled = false;
            break;
        case "AccountLocked":
            locked.Expanded = true;
            expired.Enabled = false;
            invalid.Enabled = false;
            forgot.Enabled = false;
            break;
        case "Invalid":
            invalid.Expanded = true;
            locked.Enabled = false;
            expired.Enabled = false;
            forgot.Enabled = false;
            break;
        case "ForgotPassword":
            forgot.Expanded=true;
            invalid.Enabled = false;
            locked.Enabled = false;
            expired.Enabled = false;
            break;
    }

It doesn't work - is there any way I CAN get that to work?
Christoph
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
113 views
Hello,

I am not sure if this is a Window issue or a DropDownTree issue, so I am just putting this here.

I am using a Window as a modal popup set to AutoSize based on the initial content.  Inside of this I have several controls, of them the DropDownTree.  When the DropDownTree is expanded it causes the Window to force scrollbars to appear both Vertically and Horizontally.  I am looking for one of two possible solutions to correct this so there are no scrollbars on the Window: 1) Allow the DropDownTree to expand outside of the Window instead of inside of it.  2) Have the DropDownTree shift when expanded so it operates more like the ComboBox where it is aware of the Window's frame and adjusts its height accordingly, and then places the scrollbar inside the tree instead of the Window.

Thanks for the help.
Steve
Top achievements
Rank 1
 answered on 27 Mar 2013
1 answer
88 views
Hello,

 We are using Telerik.web.chart charts and then convert them to images using chart.Save()

I works fine when I use from web application, however if I invoke using windows service it throws an

"Object reference not set to an instance of an object." error.

Stack trace suggests   at Telerik.Web.UI.RadChart.Save(Stream stream, ImageFormat imageFormat). 


however radchart object itself is not null but scriptmanager property is 

Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request

is there a way to generate images using telerik.web.UI outside http context or is it a completely different error. 

cheers Vijay
Ves
Telerik team
 answered on 27 Mar 2013
2 answers
208 views

Hello,

I have a strange problem with the behavior of radgrids that are located on different views within a multi-view after any any update is performed within any of the views themselves.  After initially populating the the various grids within the different views, everything looks fine and switching between the views causes no issue.  However, as soon as I do anything that initiates an update it causes all of the radgrids within the various views to lose most of their information and only display partial information of the first line.  I have included screenshot below of what one of the grids looks like after initial databinding and then what it looks like after updating any of the views in the multiview.

I have tried hooking into the NeedDataSourceEvent, but that does not do anything to help the problem.  Additionally, I also tried setting the RenderActiveView mode to both false and true and this did not solve any problems either.  One other thing to note is that I don't even have to update data or controls within one of the views for this to happen.  For instance, if I simply click a button that has code behind to change the view that is currently active, the same problem happens.

Following is the markup for the multiview:

<telerik:RadTabStrip ID="DetailsTabs" runat="server" MultiPageID="DetailViews" SelectedIndex="0">
    <Tabs>
        <telerik:RadTab Text="Summary" Selected="True" />
        <telerik:RadTab Text="Limits" />
        <telerik:RadTab Text="Addresses" />
        <telerik:RadTab Text="Delegates" />
        <telerik:RadTab Text="Groups" />
        <telerik:RadTab Text="OCS" />
        <telerik:RadTab Text="Attributes" />
        <telerik:RadTab Text="Permissions" />
        <telerik:RadTab Text="History" />
        <telerik:RadTab Text="Audit" />
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="DetailViews" runat="server" SelectedIndex="0" RenderSelectedPageOnly="false" CssClass="multi-view">
    <telerik:RadPageView ID="SummaryView" runat="server">
        <asp:DetailsView ID="SummaryGrid" runat="server" AllowPaging="false"
            Width="100%" AutoGenerateRows="false" BorderWidth="0" CssClass="detailsview">
            <FieldHeaderStyle Font-Bold="true" Wrap="false" />
            <Fields>
                <asp:BoundField HeaderText="Display Name" DataField="DisplayName" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Account Name" DataField="AccountName" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Exchange Alias" DataField="ExchangeAlias" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Exchange Server" DataField="ExchangeServer" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Exchange Database" DataField="ExchangeDatabase" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Email Address" DataField="EmailAddress" ItemStyle-HorizontalAlign="Right" />
                <asp:CheckBoxField HeaderText="Account Locked" DataField="AccountLocked" ItemStyle-HorizontalAlign="Right" />
            </Fields>
        </asp:DetailsView>
    </telerik:RadPageView>
    <telerik:RadPageView ID="LimitsView" runat="server">
        <asp:DetailsView ID="LimitsGrid" runat="server" AllowPaging="false"
            Width="100%" AutoGenerateRows="false" BorderWidth="0" CssClass="detailsview">
            <FieldHeaderStyle Font-Bold="true" Wrap="false" />
            <Fields>
                <asp:BoundField HeaderText="Mailbox Size (KB)" DataField="MailboxSize" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Number of Items" DataField="TotalItems" ItemStyle-HorizontalAlign="Right" />
                <asp:CheckBoxField HeaderText="Default Quota Limits" DataField="DefaultQuota" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Issue Warning Limit (KB)" DataField="WarningLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Prohibit Send Limit (KB)" DataField="SendLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Disable Mailbox Limit (KB)" DataField="DisableLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Send Size Limit (KB)" DataField="SendSizeLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Receive Size Limit (KB)" DataField="ReceiveSizeLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Recipient Limit" DataField="RecipientLimit" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Mailbox Status" DataField="MailboxStatus" ItemStyle-HorizontalAlign="Right" />
            </Fields>
        </asp:DetailsView>
    </telerik:RadPageView>
    <telerik:RadPageView ID="AddressesView" runat="server">
        <div>
            <asp:DetailsView ID="AddressesGrid" runat="server" AllowPaging="false"
                Width="100%" AutoGenerateRows="false" BorderWidth="0" CssClass="detailsview">
                <FieldHeaderStyle Font-Bold="true" Wrap="false" />
                <Fields>
                    <asp:BoundField HeaderText="Legacy Address" DataField="LegacyAddress" ItemStyle-HorizontalAlign="Right" />
                    <asp:CheckBoxField HeaderText="Address Hidden" DataField="AddressHidden" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="Forwarding Address" DataField="ForwardingAddress" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="Target Address" DataField="TargetAddress" ItemStyle-HorizontalAlign="Right" />
                </Fields>
            </asp:DetailsView>
        </div>
        <div class="new-block-20">
            <telerik:RadGrid ID="ProxiesGrid" runat="server"
                AutoGenerateColumns="false">
                <MasterTableView CommandItemDisplay="None">
                    <NoRecordsTemplate>
                        <div class="no-records">
                            No records to display.
                        </div>
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ProxyAddress"
                            HeaderText="Proxy Address List" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="DelegatesView" runat="server">
        <div class="col-50">
            <telerik:RadGrid ID="DelegatesOfGrid" runat="server"
                AutoGenerateColumns="false">
                <MasterTableView CommandItemDisplay="None">
                    <NoRecordsTemplate>
                        <div class="no-records">
                            No records to display.
                        </div>
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Delegate"
                            HeaderText="Delegates of this Mailbox" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
        <div class="col-50 gutter">
            <telerik:RadGrid ID="DelegatesForGrid" runat="server"
                AutoGenerateColumns="false">
                <MasterTableView CommandItemDisplay="None">
                    <NoRecordsTemplate>
                        <div class="no-records">
                            No records to display.
                        </div>
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Delegate"
                            HeaderText="Delegate for these Mailboxes" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="GroupsView" runat="server">
        <telerik:RadGrid ID="GroupsGrid" runat="server"
            AutoGenerateColumns="false">
            <MasterTableView CommandItemDisplay="None">
                <NoRecordsTemplate>
                    <div class="no-records">
                        No records to display.
                    </div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="GroupName"
                        HeaderText="Member of the Following Groups" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadPageView>
    <telerik:RadPageView ID="OCSView" runat="server">
        <asp:DetailsView ID="OCSGrid" runat="server" AllowPaging="false"
            Width="100%" AutoGenerateRows="false" BorderWidth="0" CssClass="detailsview">
            <FieldHeaderStyle Font-Bold="true" Wrap="false" />
            <Fields>
                <asp:CheckBoxField HeaderText="Enabled for OCS" DataField="EnabledOCS" ItemStyle-HorizontalAlign="Right" />
                <asp:CheckBoxField HeaderText="Enabled for Federation" DataField="EnabledFederation" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Primary SIP Address" DataField="SIPAddress" ItemStyle-HorizontalAlign="Right" />
            </Fields>
        </asp:DetailsView>
    </telerik:RadPageView>
    <telerik:RadPageView ID="AttributesView" runat="server">
        <asp:DetailsView ID="AttributesGrid" runat="server" AllowPaging="false"
            Width="100%" AutoGenerateRows="false" BorderWidth="0" CssClass="detailsview">
            <FieldHeaderStyle Font-Bold="true" Wrap="false" />
            <Fields>
                <asp:BoundField HeaderText="Custom Attribute 1" DataField="CA1" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 2" DataField="CA2" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 3" DataField="CA3" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 4" DataField="CA4" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 5" DataField="CA5" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 6" DataField="CA6" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 7" DataField="CA7" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 8" DataField="CA8" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 9" DataField="CA9" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 10" DataField="CA10" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 11" DataField="CA11" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 12" DataField="CA12" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 13" DataField="CA13" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 14" DataField="CA14" ItemStyle-HorizontalAlign="Right" />
                <asp:BoundField HeaderText="Custom Attribute 15" DataField="CA15" ItemStyle-HorizontalAlign="Right" />
            </Fields>
        </asp:DetailsView>
    </telerik:RadPageView>
    <telerik:RadPageView ID="PermissionsView" runat="server">
        <telerik:RadGrid ID="PermissionsGrid" runat="server" AutoGenerateColumns="false">
            <MasterTableView CommandItemDisplay="None">
                <NoRecordsTemplate>
                    <div class="no-records">
                        No records to display.
                    </div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="User" HeaderText="User or Group" />
                    <telerik:GridBoundColumn DataField="Permissions" HeaderText="Permissions Granted" />
                    <telerik:GridBoundColumn DataField="Type" HeaderText="Permission Type" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadPageView>
    <telerik:RadPageView ID="HistoryView" runat="server">
        <telerik:RadHtmlChart runat="server" ID="HistoryChart" Height="75"
            Transitions="true" DataSourceID="HistoryDataSource" CssClass="chart-100">
            <ChartTitle Text="Exchange Storage Growth">
                <Appearance Visible="false" />
            </ChartTitle>
            <Legend>
                <Appearance Position="Top" />
            </Legend>
            <PlotArea>
                <XAxis MajorTickType="None" MinorTickType="None" DataLabelsField="Date">
                    <LabelsAppearance DataFormatString="{0}" />
                    <TitleAppearance Visible="false" />
                    <MinorGridLines Visible="false" />
                    <MajorGridLines Visible="false" />
                </XAxis>
                <YAxis MajorTickType="None" MinorTickType="None">
                    <LabelsAppearance Visible="false" />
                    <TitleAppearance Visible="false" />
                    <MinorGridLines Visible="false" />
                    <MajorGridLines Visible="false" />
                </YAxis>
                <Series>
                    <telerik:LineSeries DataFieldY="Number">
                        <LabelsAppearance DataField="Server" />
                        <TooltipsAppearance Visible="false" />
                    </telerik:LineSeries>
                </Series>
            </PlotArea>
        </telerik:RadHtmlChart>
    </telerik:RadPageView>
    <telerik:RadPageView ID="AuditView" runat="server">
        <telerik:RadGrid ID="AuditGrid" runat="server"
            AutoGenerateColumns="false"
            AllowPaging="true"
            AllowSorting="true"
            PageSize="25">
            <MasterTableView DataKeyNames="AuditID" HierarchyLoadMode="Client" CommandItemDisplay="None">
                <NoRecordsTemplate>
                    <div class="no-records">
                        No records to display.
                    </div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="AuditID" HeaderText="Audit ID" />
                    <telerik:GridDateTimeColumn DataField="Date" HeaderText="Date" />
                    <telerik:GridBoundColumn DataField="Application" HeaderText="Application" />
                    <telerik:GridBoundColumn DataField="Action" HeaderText="Action" />
                    <telerik:GridBoundColumn DataField="UserID" HeaderText="User ID" />
                </Columns>
                <PagerStyle
                    Mode="NextPrevAndNumeric"
                    Position="Bottom"
                    />
                <CommandItemSettings
                    ShowAddNewRecordButton="false"
                    ShowExportToExcelButton="true"
                    ShowExportToCsvButton="true"
                    />
                <NestedViewSettings DataSourceID="AuditDetailsDataSource">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="AuditID" MasterKeyField="AuditID" />
                    </ParentTableRelation>
                </NestedViewSettings>
                <NestedViewTemplate>
                    <asp:Panel runat="server" ID="InnerContainer">
                        <div class="nested-pane pad-20">
                            <h4 class="center-text">Audit Event Details for Event ID# <%#Eval("AuditID")%></h4>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="data-layout">
                                <tr>
                                    <td class="label first-row">Process:</td>
                                    <td class="value first-row"><asp:Label ID="UserID" Text='<%#Bind("Process") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td class="label">Old Value:</td>
                                    <td class="value"><asp:Label ID="OldValue" Text='<%#Bind("OldValue") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td class="label">New Value:</td>
                                    <td class="value"><asp:Label ID="NewValue" Text='<%#Bind("NewValue") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td class="label">Reason:</td>
                                    <td class="value"><asp:Label ID="Reason" Text='<%#Bind("Reason") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td class="label">Case Number:</td>
                                    <td class="value"><asp:Label ID="CaseNumber" Text='<%#Bind("CaseNumber") %>' runat="server" /></td>
                                </tr>
                                <tr>
                                    <td class="label">Details:</td>
                                    <td class="value"><asp:Label ID="Details" Text='<%#Bind("Details") %>' runat="server" /></td>
                                </tr>
                            </table>
                        </div>
                    </asp:Panel>
                </NestedViewTemplate>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true" />
        </telerik:RadGrid>
    </telerik:RadPageView>
</telerik:RadMultiPage>

Thanks,
Ron
Pavlina
Telerik team
 answered on 27 Mar 2013
3 answers
150 views
var d=typeof(z)==="undefined"?false:true;
if(typeof(z)==="undefined"){z=l;
}if(!this._owner.ClientSettings.AllowGroupExpandCollapse){return;
}var x=l.id.split("__")[0];  <-- 4094

l.id is not defined at line 4094.

The page containing the datagrid with grouping is in an iframe.

l.name is the same of our web apps iframe, why should the javascript need to know the id of the page.

The javascript appears to be for the radgrid.

Any ideas...?

Peter
Top achievements
Rank 1
 answered on 27 Mar 2013
4 answers
471 views
PLEASE SEE ATTACHED IMAGE for screen captures...

I have a bit of code that is called to remove all checked items in various radcomboboxes with checkboxes...

My code works great to remove their selections, but if they use the check all option and then opt to clear all selections (a button event) all the checked items are unchecked EXCEPT for the check all...

function clearCheckedItems(combo) {
            for (var i = 0; i < combo.get_items().get_count(); i++) {
                combo.trackChanges();
                combo.get_items().getItem(i).set_checked(false);
// The following code I was hoping to use to clear the checkall box...
                //var element = combo.get_dropDownElement();
                //var checkAll = $telerik.$(element).find(".rcbCheckAllItemsCheckBox");
                //      So what do I need to do at this point to clear the check all checkbox...??
 
                combo.commitChanges();
            }
        }
Boyan Dimitrov
Telerik team
 answered on 27 Mar 2013
3 answers
317 views
What exactly is the syntax for the FilterExpression? Sometimes it looks VB-like, other time C#-like. For example:

IsEmpty: (it["Member"] = "")
NotIsEmpty: (it["Member"] <> "")
IsNull: (it["Member"] == Convert.DBNull)
NotIsNull: ((it["Member"] != Convert.DBNull))

The first two linq expressions use = and <>, which is VB-like, but the second two use == and !=, which is C#-like!

Note: These were generated one after the other on the same grid with no other changes. Column type is GridBoundColumn (created in code-behind) with DataType = System.String.
Marin
Telerik team
 answered on 27 Mar 2013
3 answers
85 views
I have a Rad Editor with the ImageManager enabled. The image manager displayed correctly until up updated from 2012.2.912.40 to 2013.1.220.40.

It is almost as if the default skin is no longer being applied. I have not skin specified on the RadEditor or in the Web.config.

See attached images.

Again, this worked until I updated telerik. No other changes were made.
Rumen
Telerik team
 answered on 27 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?