Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
Hello,

I am trying to build RadWindow functionality into a user control.

The user control contains the mark up for the radwindowmanager and everything is working in that I can get the window to open and apply all the properties (skin, size, position, behaviours etc) I need.

However also want to add an OnClientClose option to refresh the underlying page.

To do this I am envoking the following script from the page that opened the radwindow:

function GetRadWindow() {
var oWindow = null;

 

if (window.radWindow) oWindow = window.radWindow;

 

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

 

return oWindow;

 

}


but this function always return a "null or not an object error".
Any advice would be much appreciated.

Bob

Bob Fenton
Top achievements
Rank 1
 answered on 27 Nov 2012
4 answers
253 views
Hi All,

I want to show row number for each item in rad listbox control.  
After binding row number if user drag and drop any item it should rebind.

For example
Initially it should show row number as shown in below table.

Row Number

Image Id

1

111

2

222


When user change order of items using drag and drop, it should not change Row number value.

Row Number

Image Id

1

222

2

111


Is it possible to handle at client side, page should not get posted?

Thanks,
Dipal
Nencho
Telerik team
 answered on 27 Nov 2012
3 answers
96 views
Hello,
I have a problem with RadEditor. when I open it in FF, all is well. The problem starts when I open the web page using IE. All normal when I typed in the first line. But after I press enter to write in the second row, any text I type does not appear. This happen only in design and Preview Mode.

My further investigation, I found RadEditor runs fine if I remove the DocType from the master page: <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org / TR/xhtml1/DTD/xhtml1-transitional.dtd ">


But all other elements becoming a mess. Until now I can't find the same problem on this forums.
(I'm using FF 16.0.2, IE 9, Telerik.Web.UI version 2012.2.912.40)

Anyone know how to solve this?

Thanks,
Pungkas
Rumen
Telerik team
 answered on 27 Nov 2012
3 answers
282 views
Hi ,
I have RadGrid  created statically and i want to add more column at run-time .
i added but it not work after pagination.

 if (!Page.IsPostBack)
        {
 int count=0;
            foreach (var item in dbContext.STXWEB_EXTRA_COLUMNs.Where(extra=>extra.DLL_NAME==ReportName.Staff))
            {
               
                GridBoundColumn boundColumn;
                boundColumn = new GridBoundColumn();
                StaffReportGridID.MasterTableView.Columns.AddAt(2 + count, boundColumn);
                boundColumn.DataField = item.COLUMN_HEADER;
                boundColumn.HeaderText = item.COLUMN_HEADER;
              
                //  StaffReportGridID.MasterTableView.Columns.Add( boundColumn);
                // StaffReportGridID.MasterTableView.Columns.AddAt(3 + count, boundColumn);
                count++;
           
            }
}

Please let me know is it possible thank u in advance.

thanks 

Marium
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
201 views
I have a RadGrid (2012 Q1) with two levels and autogenerated columns.
In Column Created event I have
((GridBoundColumn) e.Column).Aggregate = GridAggregateFunction.Sum;

When I am expanding second level it is working for the first time, second time i am getting

Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridBoundColumn.ApplyAggregates35(TableCell cell, String footerText) +132
   Telerik.Web.UI.GridBoundColumn.cell_DataBinding(Object sender, EventArgs e) +492
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +517
   Telerik.Web.UI.GridTableView.CreateFooterItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTFoot tfoot) +92
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1009
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +549
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +233
   Telerik.Web.UI.GridDataItem.OnExpand() +289
   Telerik.Web.UI.GridItem.set_Expanded(Boolean value) +109
   Telerik.Web.UI.GridExpandCommandEventArgs.ExecuteCommand(Object source) +34
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +87
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Can anyone please help? or its a permanent bug ?

Regards
Arijit

Eyup
Telerik team
 answered on 27 Nov 2012
3 answers
142 views
How do I apply a skin to tooltips produced using RadToolTipManager via the RadSkinManager?

It appears RadToolTipManager is not an option in the ControlsToApplySkin property (see snippet below).

<telerik:RadSkinManager ID="rsm" runat="server" ShowChooser="false">
    <TargetControls>
        <telerik:TargetControl ControlsToApplySkin="RadToolTip" Skin="Sunset" />
    </TargetControls>
</telerik:RadSkinManager>

Slav
Telerik team
 answered on 27 Nov 2012
1 answer
104 views
Hi

How can I put the radgrid in inset mode on external button click?
Please help.

RT
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Nov 2012
1 answer
140 views
Hello There,

I kinda have a problem because i would like to set the header data (titles) using the code behind.
cbxName.Header.FindControl("id") doesn't really do the trick.

Why do I need this? Well I need to set the titles in the proper languages.

Thanks in advance.
Guido S
Top achievements
Rank 1
 answered on 27 Nov 2012
7 answers
774 views
I have a RadGrid with paging.  There are 45 pages with 10 items per page.  If I call RadGrid1.Items, I only get the 10 items on the first page.  I want to get all 450 items.  How would I go about doing this?  Thanks.
Eyup
Telerik team
 answered on 27 Nov 2012
13 answers
674 views

We have been trying to use a combination of features of the RadComboBox. We want to use Load-on-Demand with CustomText AND also set/persist a SelectedValue, with a large number of records. We have encountered a couple issues that prevent us from accomplishing our goal.

The online demo ( http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx ) narrowly avoids one of the major issues we have encountered with the suggested implementation of load-on-demand. The online demo loads just enough records per request (10) that no matter what custom text is entered, there is never more than one request worth of filtered items to load. We often need multiple requests to load all of the matching/filtered items for the custom text, but the demonstrated method reverts to loading unfiltered items after the first request. We tried working around this issue ourselves, but then ran into another quirk of the load-on-demand mechanism.

The demonstrated method seems to only be feasible in the context of a single pass questionaire. Our application requires users be able to view and edit previous selections in fields with load-on-demand enabled. We are able to set a selected value, but then load-on-demand breaks. Every time the user clicks the load more results button, another duplicate of the selected value is added to the list. We tried various workarounds without success. We cannot distinguish between the first request (showing the selected value) and subsequent requests (showing filtered or unfiltered items based on the custom text).

We need to accomplish the following with the RadComboBox:

  1. Load-on-demand (we have very large lists of items to select from in our application)
  2. Custom text/filter (loading multiple pages of items isn't enough, we need to filter the list)
  3. Selected value (on returning to the page, the user needs to be able to see what they selected previously as well as select a new value)

 

We are very close to having all three features working together, but are missing a piece. When the user opens the combobox, sees the selected value listed as the only item, and clicks the load more results button, we need to load unfiltered items instead of filtered items. We can always load the unfiltered items, but then we have the opposite problem: the custom text is never used to get a filtered list of items. This is the last obstacle to overcome in order to get load-on-demand working in our application the way it should (we think) by design.

Golem
Top achievements
Rank 1
 answered on 27 Nov 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?