Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
Hi,
I'm using the pivotgrid that is connected to my analytics server. What I do is add 2 row fields one column and 2 aggregate.
 It throws an "Object reference not set to an instance of an object"  every time when I one more aggregate field. It happen with every aggregate field. I saw that in the sql profiler there is no  error and all MDXQueries are executed successfully. Below you can find the stack trace of the exception and hopefully it can give you a clue what is wrong.

  at Telerik.Web.UI.PivotHelperModelManager.BuildRowPivotModel()     
     at Telerik.Web.UI.RadPivotGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)     
     at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)     
     at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)     
     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     
     at System.Web.UI.WebControls.DataBoundControl.PerformSelect()     
     at Telerik.Web.UI.RadPivotGrid.PerformSelect()     
     at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()     
     at Telerik.Web.UI.RadPivotGrid.DataBind()     
     at Telerik.Web.UI.PivotGridFieldReorderEventArgs.ExecuteCommand(Object source)     
     at Telerik.Web.UI.RadPivotGrid.OnBubbleEvent(Object source, EventArgs args)     
     at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)     
     at Telerik.Web.UI.PivotGridItem.OnBubbleEvent(Object source, EventArgs args)     
     at Telerik.Web.UI.PivotGridItem.FireCommandEvent(String commandName, Object commandArgument)     
     at Telerik.Web.UI.RadPivotGrid.HandleFireCommand(String commandName, String commandArgument)     
     at Telerik.Web.UI.RadPivotGrid.RaisePostBackEvent(String eventArgument)     
     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     
     at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Best Regards,
Diyan Penkov
Viktor Tachev
Telerik team
 answered on 29 Oct 2014
0 answers
101 views
I have a page like this example : http://www.telerik.com/support/code-library/drag-and-drop-between-radgrid-and-radtreeview

I want to show a confirm box when user drop an item from radgrid or radtreeview to radtreeview from code behind with event NodeDrop of treeview.

So i do as this example for implement Radconfirm : http://www.telerik.com/support/code-library/radconfirm-from-code-behind

But it not working, radconfirm not show, i try to move code lines: 

string radalertscript = "<script language='javascript'>function f(){callConfirm(); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";       
Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);

from event NodeDrop to Page_Load. Radconfirm show on pageload.

How to make it show in event NodeDrop of treeview
Huy
Top achievements
Rank 1
 asked on 29 Oct 2014
2 answers
119 views
Hi, I'm using the following code to get the DataKeyValue of the edited row in the ServerValidate function. This is working well when editing a record. However, when creating a new record, item.GetDataKeyValue("ID") throws an argument out of range exception. Is there a way that I can test whether a DataKeyValue exists before making this call? Thanks.
protected void URLGrid_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
   {
       CustomValidator val = (CustomValidator)source;
       GridDataItem item = (GridDataItem)val.NamingContainer;
           intwebsiteID = int.Parse(item.GetDataKeyValue("ID").ToString());
       if(!Website.URLIsUnique(websiteID, args.Value.Trim()))
       {
           args.IsValid = false;
       }
   }




Darrell
Top achievements
Rank 1
 answered on 28 Oct 2014
2 answers
98 views
I believe I have a CSS issue on my RadEditor for the Image and Document Manager.

Whenever I go to upload a file in Chrome/Firefox everything looks perfect. When I go to use Internet Explorer, the styling of the checkbox for overwriting data is really messed up.

Here is a picture of what it looks like in IE: http://i.imgur.com/QiyW6eP.png

As you can see, the checkbox somehow duplicates itself over and over and goes underneath the text of 'Overwrite if file exists?' It also doesn't allow you to check the original checkbox at all. Or at least, I can't tell if the checkbox actually works.

I was wondering if this is possibly just an IE issue or its something that I may have caused with background CSS?
Alexander
Top achievements
Rank 1
 answered on 28 Oct 2014
8 answers
152 views
I am trying to use the following:


<telerik:RadTextBox ID="PasswordInput1" runat="server" ValidationGroup="AccountCreate"
                Label="Enter password:"
                TextMode="Password" onkeyup="checkPasswordMatch()" Width="300" LabelWidth="150">
                <PasswordStrengthSettings ShowIndicator="true" TextStrengthDescriptions="Level1;Level2;Level3;Level4;Level5"
                    IndicatorElementBaseStyle="PasswordBase" TextStrengthDescriptionStyles="L0;L1;L2;L3;L4;L5"
                    IndicatorElementID="CustomIndicator"></PasswordStrengthSettings>
            </telerik:RadTextBox>

but the field is actually 50px, and not the 150px I am expecting.  I tried to change the overall Width to 400px instead of 300px and the field width is correct but my alignment is fouled up.

Any ideas?

Thanks, Marty


Maria Ilieva
Telerik team
 answered on 28 Oct 2014
1 answer
77 views
I believe I have a CSS issue on my RadEditor for the Image and Document Manager.

Whenever I go to upload a file in Chrome/Firefox everything looks perfect. When I go to use Internet Explorer, the styling of the checkbox for overwriting data is really messed up.

Here is a picture of what it looks like in IE: http://i.imgur.com/QiyW6eP.png

As you can see, the checkbox somehow duplicates itself over and over and goes underneath the text of 'Overwrite if file exists?' It also doesn't allow you to check the original checkbox at all. Or at least, I can't tell if the checkbox actually works.

I was wondering if this is possibly just an IE issue or its something that I may have caused with background CSS?
Alexander
Top achievements
Rank 1
 answered on 28 Oct 2014
2 answers
78 views
Hello Telerik, 

I recently noticed a problem in my Wep App and I think it should be easy to solve. I probably just forgot one thing, but I can't seem to find it.

Basically, as seen in the pictures, there's a RadGrid that contains various items and once you click on the reference number in the list (a LinkButton),
it pops up a RadWindow with details about that order (second picture).

My problem is the following, once I close the RadWindow, it closes properly and everything is fine and it takes me back to the RadGrid.
If I click on another item, it pops up the first RadWindow I opened, and then on top of that opens the new one.

I can close the window, select another link and then the first, second and now third will be there.
The last one clicked being on top of all and the first one being the last under every other ones. 

I don't really know where to search and I can provide code if you want but there is alot of code so.. it would be long.

Thank you!
Mark
Top achievements
Rank 1
 answered on 28 Oct 2014
1 answer
158 views
I have a nested radgrid, with a single detailtable. I have set it up with a RadContextMenu.

The problem is that I only want the RowContextMenu to be shown only in the mastertable - not the detailtable.

My initial thought was to differ on the tableview names:

function RowContextMenu(sender, args)
{
    alert(args.get_tableView().get_name());
}

But I can't prevent the contextmenu from showing, by cancelling the firing event.

Suggestions?

The Telerik build is rather old: 2012.1.411.35

Regards,
Anders.

<telerik:RadGrid>
    <%--OMITTED--%>
    <ClientSettings>
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Selecting AllowRowSelect="false" />
    </ClientSettings>
    <%--OMITTED--%>
</telerik:RadGrid>
<telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnItemClick="RadContextMenu1_ItemClick">
    <Targets>
        <telerik:ContextMenuControlTarget ControlID="RadGrid1" />
    </Targets>
    <CollapseAnimation Duration="200" Type="OutQuint" />
    <Items>
        <telerik:RadMenuItem runat="server" Text="Kopier">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" Text="Slet" Enabled="False">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>
Angel Petrov
Telerik team
 answered on 28 Oct 2014
0 answers
182 views
RadChart is obsolete as of Q1 2014 and is not supported by Telerik as of Q3 2014.

RadChart is discontinued in favor of RadHtmlChart—a more modern and flexible charting component.

RadChart will remain in the Telerik.Web.UI.dll assembly, so you can still use it if needed.

You may find useful the RadHtmlChart documentation and live demos as well as the following resources regarding migrating from RadChart:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 28 Oct 2014
1 answer
51 views
I have a grid and I only want the ApprovedAmt and isChecked to be editable when the form is loaded. How can I do this?
 <telerik:RadGrid ID="gridFundingBills" runat="server" Width="1100px" AllowMultiRowSelection="True"
                        CssClass=" MyGridClass"
                        AutoGenerateColumns="False"
                        OnNeedDataSource="gridFundingBills_NeedDataSource"
                        OnItemDataBound="gridFundingBills_ItemDataBound"
                        OnSelectedIndexChanged="gridFundingBills_SelectedIndexChanged"
                        OnPreRender="gridFundingBills_PreRender"
                        AllowMultiRowEdit="True">
                        <MasterTableView DataKeyNames="FundingDtlID" EditMode="InPlace">
                            <Columns>
                                <telerik:GridBoundColumn DataField="CustomerNm" FilterControlAltText="Filter CustomerNm column" HeaderText="Property" SortExpression="CustomerNm" UniqueName="CustomerNm">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="VendorNm" FilterControlAltText="Filter VendorNm column" HeaderText="Vendor" SortExpression="VendorNm" UniqueName="VendorNm">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BankAcct" FilterControlAltText="Filter BankAcct column" HeaderText="Bank" ReadOnly="True" SortExpression="BankAcct" UniqueName="BankAcct">
                                </telerik:GridBoundColumn>
                                <telerik:GridHyperLinkColumn UniqueName="BillNo" HeaderText="Bill Reference Number" DataTextField="BillNo" DataNavigateUrlFields="BillUrl" DataNavigateUrlFormatString="http://{0}" Target="_blank">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridBoundColumn DataField="BillURL" FilterControlAltText="Filter BillURL column" ReadOnly="True" SortExpression="BillURL" UniqueName="BillURL" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BillPeriod" FilterControlAltText="Filter BillPeriod column" HeaderText="Bill Period" ReadOnly="True" SortExpression="BillPeriod" UniqueName="BillPeriod" ItemStyle-Width="150px" HeaderStyle-Width="150px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DueDt" DataType="System.DateTime" FilterControlAltText="Filter DueDt column" HeaderText="Due Date" SortExpression="DueDt" UniqueName="DueDt" DataFormatString="{0:d}" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="TotalAmt" DataType="System.Decimal" FilterControlAltText="Filter TotalAmt column" HeaderText="TotalAmt" SortExpression="Total Due" UniqueName="TotalAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="RemainingAmt" DataType="System.Decimal" FilterControlAltText="Filter RemainingAmt column" HeaderText="Remaining Balance" ReadOnly="True" SortExpression="RemainingAmt" UniqueName="RemainingAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="FundingDtlID" DataType="System.Guid" FilterControlAltText="Filter FundingDtlID column" HeaderText="FundingDtlID" ReadOnly="True" SortExpression="FundingDtlID" UniqueName="FundingDtlID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BankAcctID" DataType="System.Guid" FilterControlAltText="Filter BankAcctID column" HeaderText="BankAcctID" ReadOnly="True" SortExpression="BankAcctID" UniqueName="BankAcctID" Visible="false">
                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="ApprovedAmt" DataType="System.Decimal" FilterControlAltText="Filter ApprovedAmt column" HeaderText="Amount Approved" ReadOnly="False" SortExpression="ApprovedAmt" UniqueName="ApprovedAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="isChecked" DataType="System.Boolean" FilterControlAltText="Filter isChecked column" HeaderText="Pay in<br />Full" ReadOnly="False" SortExpression="isChecked" UniqueName="isChecked" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="75px">
                                </telerik:GridCheckBoxColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true"></Selecting>
                            <%-- <Scrolling AllowScroll="true" ScrollHeight="500px" UseStaticHeaders="true" />--%>
                            <%-- <ClientEvents OnGridCreated="GridCreated" />--%>
                        </ClientSettings>
                    </telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 28 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?