Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
65 views
Hi,

Just upgraded radeditor to the latest version from an very old version (.net 1.1 site), now my site is running on .net 4.0, I have removed all the old telerik dll files and new rad editor seems working fine, I can edit/save the content, however, when I open the image manager from rad editor, image manager page is loaded, and the default folder in image manager is correct, I can see the sub-folders, but I can't see the (image) files, although it does say 'items 1 to 100 of 101', also none of the buttons is working on image manager page...

any help would be appreciated!

AUK
Top achievements
Rank 1
 answered on 04 Jul 2013
3 answers
195 views
I have a usercontrol with a radcombobox inside an update panel. I am using many of these user controls on a single page. EDIT: I've enabled load on demand for the combobox.

When I finish using one of these comboboxes and click outside (blur the combobox), it calls the correct usercontrol page_load and the correct validation (validation only for that control).

However, every time I enter a letter into the combobox, it seems to call ALL page_loads and ALL validations.

To recap, selectedindexchanged causes only the required page_loads and validations to fire. Loadondemand causes all page_loads and validations to fire. Its almost as if selectedindexchanged only causes a partial postback while loadondemand causes a full postback. NOTE: LoadOnDemand does not cause the panels to update, it only calls the incorrect page_load and validation.

FYI, I've got the updatemode for the update panels as conditional and children as triggers. Does loadondemand not register as a trigger for this update panel?
If so, how do I add loadondemand as a trigger to the update panel?
If not, then what do you think is the issue here?

P.S.: That was a very confusing post, I'm still not sure if I'm getting my point across. Please let me know if you need more information.
Hristo Valyavicharski
Telerik team
 answered on 04 Jul 2013
3 answers
150 views
I am trying to use an Image and Map inside of a RadMenuItem and I cannot get the image map click events to fire.  If I pull the image and map code outside of the RadMenu, it works as expected?  Any ideas?

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SOMS.master.cs" Inherits="SOMS.SOMS" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadMenu ID="RadMenu1" runat="server">
            <Items>
                <telerik:RadMenuItem Text="Main Menu" PostBack="false">
                    <Items>
                        <telerik:RadMenuItem>
                            <ItemTemplate>
                                <img id="imgMainMenu" src="images/MainMenu.jpg" usemap="#mapMainMenu" border="0"
                                    width="950" height="510" alt="" />
                                <map id="_mapMainMenu" name="mapMainMenu">
                                    <area shape="rect" coords="46,79,143,148" href="CSRRequestRefill.aspx" alt="Request Refill"
                                        title="Request Refill" />
                                    <area shape="rect" coords="46,293,143,362" href="PHRSubmitRequst.aspx" alt="Submit Request"
                                        title="Submit Request" />
                                    <area shape="rect" coords="233,79,330,148" href="CSRStatus.aspx" alt="CSR Status"
                                        title="CSR Status" />
                                    <area shape="rect" coords="233,179,330,248" href="CSRIntake.aspx" alt="CSRIntake.aspx"
                                        title="CSRIntake.aspx" />
                                    <area shape="rect" coords="233,291,330,360" href="CSRBillPrep.aspx" alt="CSRBillPrep.aspx"
                                        title="CSRBillPrep.aspx" />
                                    <area shape="rect" coords="233,406,330,475" href="CSRApproval.aspx" alt="Approval"
                                        title="Approval" />
                                    <area shape="rect" coords="419,291,516,360" href="PHRRequestHold.aspx" alt="Request Hold"
                                        title="Request Hold" />
                                    <area shape="rect" coords="623,292,720,361" href="PHRFilling.aspx" alt="Filling"
                                        title="Filling" />
                                    <area shape="rect" coords="623,404,720,473" href="PHRShipping.aspx" alt="Shipping"
                                        title="Shipping" />
                                    <area shape="rect" coords="810,90,907,159" href="PHRStatus.aspx" alt="Status" title="Status" />
                                    <area shape="rect" coords="808,291,905,360" href="PHRCompounding.aspx" alt="Compounding"
                                        title="Compounding" />
                                    <area shape="rect" coords="808,405,905,474" href="PHRShipped.aspx" alt="Shipped"
                                        title="Shipped" />
                                </map>
                            </ItemTemplate>
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
 
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>
Boyan Dimitrov
Telerik team
 answered on 04 Jul 2013
3 answers
121 views
I am using the latest Q2 release of 2013 .NET version 4.5.

I have a method that creates a grid programmatically. This method is called on Page_Init wherever it is used. Grid is created and works just fine as long as I do not add "AllowFilteringByColumn = true". Here is the body of the method:
RadGrid grid = new RadGrid();
grid.ID = "CustomViewGrid";
grid.AllowFilteringByColumn = true;
grid.AutoGenerateColumns = false;
grid.AllowPaging = true;
grid.AllowSorting = true;
grid.PageSize = view.PageSize;
grid.ClientSettings.Scrolling.AllowScroll = true;
grid.ClientSettings.Scrolling.SaveScrollPosition = true;
grid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel( 500 );
grid.ClientSettings.Scrolling.UseStaticHeaders = true;
grid.ClientSettings.Selecting.AllowRowSelect = true;
grid.ClientSettings.Selecting.UseClientSelectColumnOnly = true;
grid.AllowMultiRowSelection = true;
grid.GroupingSettings.CaseSensitive = false;
grid.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced;
grid.MasterTableView.AutoGenerateColumns = false;
grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
grid.MasterTableView.DataKeyNames = new string[] { view.TableKeyName };
return grid;


I have methods to create the columns, which are added to the master table view column collection:
GridBoundColumn column = new GridBoundColumn();
column.DataField = dataField;
column.UniqueName = dataField;
column.AllowFiltering = true;
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.FilterControlWidth = Unit.Pixel(100);
column.ItemStyle.Width = Unit.Pixel(120);
column.HeaderStyle.Width = Unit.Pixel(120);
column.AutoPostBackOnFilter = true;
column.ShowFilterIcon = false;
return column;

The datasource on the grid is set as follows:
EntityDataSource dataSource = new EntityDataSource();
dataSource.ID = "CustomViewGridDataSource";
dataSource.EntitySetName = view.TableName;
dataSource.ContextCreating += dataSource_ContextCreating; // set the object context here since I am using code-first EF5.0
dataSource.Where = view.Filter;
grid.DataSource = dataSource;

Finally, the grid is added to an ASP Panel placeholder (happens in Page_Init).

I get the following error when having AllowFilteringByColumn = true:

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridTableView.CreateDataSourceSelectArguments() +1330
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +66
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
   Telerik.Web.UI.GridTableView.DataBind() +391
   Telerik.Web.UI.RadGrid.DataBind() +191
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +4252
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +201
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

Kyle Smith
Top achievements
Rank 1
 answered on 04 Jul 2013
3 answers
119 views
hello,
I load the data in combo with a webservice, you can view the default text in a combo and its value?
Boyan Dimitrov
Telerik team
 answered on 04 Jul 2013
1 answer
103 views
Hi,

I have an application which implemented RadScheduler with server side code and doesn't involves any web service or WCF. I'm now trying to include extra attribute to the Resource so that I can display extra info on the resource header.

The code of adding attribute looks like this:
resource.Attributes.Add("JobTitle", "Software engineer")
Then in the RadScheduler_ResourceHeaderCreated event, I try to read the attribute with the code below:
jobTitle = args.Container.Resource.Attributes("JobTitle")
Unfortunately the attributes of the resource is empty and I couldn't figure out why, is there a known limitation or issue pertaining to this? Please shed some light.



Boyan Dimitrov
Telerik team
 answered on 04 Jul 2013
4 answers
161 views
Hi,
is it possible to set a tooltip on the image of a button's RadButtonToggleState?
If yes, how?

Thank you
Danail Vasilev
Telerik team
 answered on 04 Jul 2013
1 answer
329 views
  <telerik:RadGrid ID="RadMyTrainee" EnableViewState="false" runat="server" AllowPaging="true"
                                        AllowSorting="True" GridLines="None" AllowFilteringByColumn="false">
                                        <ItemStyle Wrap="false"></ItemStyle>
                                        <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed">
                                            <Columns>
                                                <telerik:GridNumericColumn DataField="Id" HeaderText="Id" HeaderStyle-Width="100px"
                                                    Visible="false" FilterControlWidth="50px">
                                                </telerik:GridNumericColumn>
                                                <telerik:GridTemplateColumn HeaderText="Name">
                                                <HeaderTemplate>
                                                  <telerik:RadButton ID="RadButton1" runat="server" ToggleType="CheckBox" ButtonType="StandardButton"    OnClientCheckedChanged="oncheckedchange"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" >
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
                                               <%--    <asp:CheckBox ID="CheckBox1" runat="server"   onchange="Checked(this);"  />--%>
                                                </HeaderTemplate>
                                                    <ItemTemplate>
                                                     <telerik:RadButton ID="RadButton2" runat="server" ToggleType="CheckBox" ButtonType="StandardButton"   AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
                                                        <%--<asp:CheckBox ID="CheckBox2" runat="server" />--%>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn DataField="Name" HeaderText="Name">
                                                    <ItemTemplate>
                                                        <telerik:RadTextBox ID="Name" runat="server" Width="80px" ReadOnly="true">
                                                        </telerik:RadTextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email">
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <PagerStyle AlwaysVisible="true" Mode="NumericPages"></PagerStyle>
                                        <ClientSettings>
                                            <ClientEvents OnRowClick="onRowClick" OnCommand="RadGrid1_Command" OnRowDataBound="RadGrid1_RowDataBound">
                                            </ClientEvents>
                                        </ClientSettings>
                                    </telerik:RadGrid>
                                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                                    </telerik:RadAjaxLoadingPanel>
                                    <asp:Panel ID="Panel1" ScrollBars="Vertical" Height="0px" runat="server">
                                    </asp:Panel>



hi,

could you possible check all in header radbuttontoggle using javascript ?

Please help.......
 using  javascript 
Danail Vasilev
Telerik team
 answered on 04 Jul 2013
1 answer
88 views
Hi, is there any plan to make the RadMaskedTextbox work for Opera Mobile?  It's extremely buggy, even when using the demos. 

Also, Firefox mobile browser appears to have issues as well from what I hear from other team members.
Angel Petrov
Telerik team
 answered on 04 Jul 2013
1 answer
118 views

I have an aspx page with a Splitter control.I have Sliding panels on the left and right hand side. The right hand side one is either hidden or shown dependant on a value in a hidden field. This works fine. I also want to hide/show some of the tabs also dependant on the value in a hidden field. My code is...

if (parseInt($('#hd_AC').val()) <= 10) {
                $('#Radsplitbar2').hide();
                $('#EndPane').hide();
                alert("Read-Only");
            } else if (parseInt($('#hd_AC').val()) == 20) {
                $('#RadSlidingPane_IP').showTab();
                $('#RadSlidingPane_BL').hideTab();
                $('#RadSlidingPane_Disc').hideTab();
                $('#RadSlidingPane_BU').hideTab();
                $('#RadSlidingPane_UIS').hideTab();
                $('#RadSlidingPane_CRA').hideTab();
                alert("Read-Only with Internal Personnel");
            } else if (parseInt($('#hd_AC').val()) >= 60) {
                $('#RadSlidingPane_IP').showTab();
                $('#RadSlidingPane_BL').showTab();
                $('#RadSlidingPane_Disc').showTab();
                $('#RadSlidingPane_BU').showTab();
                $('#RadSlidingPane_UIS').showTab();
                $('#RadSlidingPane_CRA').showTab();
                alert("HR - Admin View");
            } else {
                $('#Radsplitbar2').hide();
                $('#EndPane').hide();
                alert("Access not recognised");
            }
This code is run in the window.load() function. As I said the Radsplitbar2.hide() and EndPane.hide() when hd_AC.val()==10 works fine. When I test with hd_AC.val() ==20 then I get a javascript runtime error @  $('#RadSlidingPane_IP').showTab(); with an error message Object does not support this property or method. What have I done wrong?
Marin Bratanov
Telerik team
 answered on 04 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?