Telerik Forums
UI for ASP.NET AJAX Forum
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
204 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
141 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
459 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
308 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
82 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
1 answer
190 views
Hello ,

i want to make data base include picture :
Name
Picture
age
address
and picture in DB Type is Image

how can i insert form grid and upload the picture
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2013
3 answers
92 views

Hi,

 

We’re facing some problems Replacing the Custom DropDown of the RadEditor with a RadComboBox so users have the ability to type/find their item. When you click a couple of items from the dropdown at startup, all goes well.  But when you type “Sec” for instance (to search for the “Second item”) and click that one with the mouse, it will be placed at the beginning of the RadEditor.

After having typed, finding another item goes very strange aswell.

 

The problem arises in Internet Explorer. In Chrome it seems to be workable.

How would we solve this issue for our main users, using IE ?

I've seen this recent post which was the same, besides having the ability to type/search the combobox.

 

I’ve attached a demo application including the scenario. We’re using Telerik version 2013.1.305.40:
http://www.gildebt.nl/RadEditor.rar

 

Yours,

 

Frank van den Essen

Rumen
Telerik team
 answered on 27 Mar 2013
1 answer
71 views
Hi,

I have migrated my application that uses Telerik.Web.Design version 2009.3.1103.35 and Telerik.Web.UI version 2008.3.1125.35 dlls from 3.5 to 4.0. I am receiving the following error while doing any postback operation like cancel in RadGridView row. Pleas find the attached error screen shot.

 I had refered to the patch provided by Simon at http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-vs2010-bug.aspx. But tht fix is not  working for every form in my project.

Again, I have alos tried by replacing latest telerik dlls, but with this all web pages are working fine except the one in which i have used many telerik controls and that page is not even entering into Page_Load event.

Please guide us on this issue as I have a very urgent delivery next week.

Thanks,
Anuradha
Hristo Valyavicharski
Telerik team
 answered on 27 Mar 2013
3 answers
214 views
Hi,

  I have scenario here where in I have a List of Employess and each employee in turn has a List of Projects.I have created a master grid with its nestedviewtemplate having a child grid  to display the each employee and his associated projects.
i.e We will have a collapsible option for the master grid and expanding it,it would display the projects associated for that particular employee.This works fine.

Now,for my second scenario,I need to display all projects irrespective of employee using the same grid having nestedviewtemplate.In this case,I should not be having the collapsible option,and it should load the grid with all projects.

how do I achieve the second scenario without the collapsible symbol with data being loaded on load.

Thanks
Kostadin
Telerik team
 answered on 27 Mar 2013
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?