Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
254 views
I get this error because I am using a user control that is inside a page that doesn't have RadAjaxManager.
How do I check if RadAjaxManager exists on the parent page before getting the error? Some parent pages do have
RadAjaxManager, some others don't.

And if it doesn't exist,  I do not want to make a request.

Thanks in advance.


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

Source Error:

Line 69:         function refreshScreen(action) {
Line 70: 
Line 71:             $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(action);
Line 72: 
Line 73:         }   
Simone
Top achievements
Rank 1
 answered on 10 Feb 2012
8 answers
200 views
Can someone help me determine what is the problem with my code below? Its not expanding.  From reading the following articles, it should.  I think it may have something to do with my databinding....


http://www.telerik.com/help/aspnet/panelbar/panelbar_itemdoesnotcollapseexpand.html
http://www.telerik.com/help/aspnet-ajax/panelbar-troubleshooting-root-items-collapse.html

ASPX:

 

 

<telerik:RadPanelBar ID="pbCategory" runat="server">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem>

 

 

 

<ItemTemplate>

 

 

 

<table style="width:90%; margin:5px 10px 5px 10px">

 

 

 

<tr style="width:90%">

 

 

 

<td colspan="2" style="width:85%; text-align:left; border:1px solid black"><asp:Label id="lblDetails" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Details") %>' /></td>

 

 

 

<td style="width:5%; text-align:right"><asp:ImageButton ID="btnEdit" runat="server" src="../images/ico_Edit.gif"/></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td style="width:45%; text-align:left">Added By:<asp:Label id="lblAddedBy" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AddedBy") %> ' /></td>

 

 

 

<td style="width:45%; text-align:right">Last Updated By:<asp:Label id="lblUpdatedBy" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UpdatedBy") %>' /></td>

 

 

 

<td>&nbsp;</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadPanelItem>

 

 

 

</Items>

 

 

 

</telerik:RadPanelItem>

 

 

 

</Items>

 

 

 

</telerik:RadPanelBar>

CS:

 

pbCategory.DataSource = ds;

pbCategory.DataTextField =

 

"LongName";

 

pbCategory.DataValueField =

 

"CategoryCode";

 

 

 

pbCategory.DataFieldParentID = "Id";

 

pbCategory.DataBind();

Michael
Top achievements
Rank 1
 answered on 10 Feb 2012
2 answers
118 views
Hi,

I have a RadTabStrip in which I allow the user to dynamically add tabs, which then make a call for the appropriate user control to populate the newly added tab.  

One of the requirements is that the user can add the same tab/control multiple times.

This works good and the control is added as many times as needed.

The problem arrives when databinding.  

Lets say the user adds 3 tabs, each containing the same user control, which contains a grid.  Then, on the third tab, the user performs a search/databind on that third grid.  The problem is that the first tab grid is the one updated/data bound, no matter what tab the search was performed on.  Nothing happens on the third grid.  

The user control consists of a textbox and grid, bound to an entity datasource.

How do I correlate the appropriate grid to the textbox text, which is the WHERE parameter for the entity datasource.

Thanks!  If this is unclear or you need more information, please let me know.
This is using ASP.NET 4 and the latest version of the Telerik controls, downloaded from telerik.com last week.
Kevin
Kevin
Top achievements
Rank 1
 answered on 10 Feb 2012
3 answers
138 views
I am prototyping a new project where users will navigate a dynamically generated list of hierarchically nested assets (bound to a RadTreeView). I want the users to be able to drill down into the tree to the actual asset item in the list. On clicking the asset item:

1. I want to reload the page using the ID VALUE (not the text displayed) of the item clicked. This will load all sorts of unique info for that item. I was going to simply use querystring variables so the users can bookmark their searches. I'd like to grab the selected ID, put it in querystring, and reload the page. What's the best practice for having an ID VALUE attached to a node (in XML)? What is the best way to access it in C#?

2. I also want to persist on refresh what the user clicked, so it the selected item is active (because navigating thousands of items all over again isn't acceptable). We're dealing with a nationwide list of assets.

3. I DON'T want anything to cause a postback except the final child element in the hierarchy. How do I control what causes postback and what doesn't in a dynamically generated RadTreeView list of items?

Please provide sample code if you can. NOTE: For the prototype, I've already connected to an XML file using the .LoadContentFile() method. I'm using dummy data to get started.

Thanks much for your assistance!
A
Alex
Top achievements
Rank 1
 answered on 10 Feb 2012
2 answers
194 views
Hi,

Preamble:
I've managed to successfully wire up a radgrid with an external edit form by working from the demo here:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid 

Concerns:
However, to create the "Add New Record" and "Refresh" buttons, similar to other Edit Modes, I've had to use the CommandItemTemplate. 
I used a number of other RadGrids in my application, but most of them either use inline or popup edit modes... and these buttons are generated automatically. 

I have the following complaints with the CommandItemTemplate approach:
1. The text labels generated by the demo do not align with the automatically generated labels for other grids. This makes all of my Grids with CommandItemTemplate controls to "look funny". I can tweak them with CSS, but this is time consuming and difficult to maintain.

2. I have to use my own copies of the RadGrid images for the buttons to make them visually consistent with all of the other RadGrids with automatically generated Command buttons.

3. Due to the complications of the above two complaints, it becomes extremely difficult to apply new skins without also involving a significant amount of editing, tweaking, and rework to maintain consistent visual style across all RadGrids in my application.

Question:
Is there any way to wire up an external edit form without using the CommandItemTemplate to create insert and refresh buttons?

All I really need is to wire the OnClick event of the generated "Add New Record" to my custom RadGrid_OnInsertCommand() event without it trying to create an in-grid edit form or a popup edit form. All of the rest of the wireup already works (i.e. the submit button on the external edit form).

Dave
Top achievements
Rank 1
 answered on 10 Feb 2012
2 answers
104 views
I would like to know how to hide and show the next and previous arrows in the navigation pane based on requirements. My requirement is a customer can only look at the scheduler for previous month, current month and next month. So if they are in next month view them i should disable to hide the next month arrow in the navigation pane and if they are in previous month view i should hide or disable the previous month arrow in the navigation pane. I searched around but couldn't find a solution for this problem anywhere.
Mona
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
269 views
Hi Telerik Team,

I am using the Rad Split bar in my application, as follows:

<div style="width: 700px; height: 500px; border: 2px solid orange;">
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%">
            <telerik:RadPane runat="server" ID="RadPane1" Width="30%">
                Left Pane
            </telerik:RadPane>
           
<telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Both" CollapseExpandPaneText="Click Here To Collapse/Expand" >
            </telerik:RadSplitBar>

           
<telerik:RadPane runat="server" ID="Radpane2" Width="70%">
                Right Pane
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>


Now my requirement is to put some text on the radSplit Bar vertically so that it will be help for the user,
for example "Click here Collapse/Expand".
I have referred the following link for help:
http://www.telerik.com/community/forums/aspnet-ajax/splitter/customized-radsplitbar.aspx 
but i was not help full to me
Please help me in doing this.

Thanks & Regards
N Aravinda Chary.







Niko
Telerik team
 answered on 10 Feb 2012
11 answers
228 views
Hi All,

So am I missing a trick somewhere.

At the moment the main skin that I use is Office2010Blue.  When using RadDock the background is mediumish blue but I want it to be white.  I can change the content cell css to white but the surrounding cells stay as blue.  I can understand this when using rounded corners as the image padding is needed but when not using rounded corners there is no need to provide the image.

Is there a work around for this?

Regards,

Jon
Slav
Telerik team
 answered on 10 Feb 2012
2 answers
131 views
I have Q1 2009 version currently problem is that In my application I am using multicolum, load on demand and filtering functionality in rad combobox now Microsoft lunched IE 9 and combobox is not working when I clicked on comparability mode its work but my page themes will distrube I want to fix radcombo box kindly help me thanks.

<telerik:RadComboBox ID="ddlProject" runat="server" Height="190px" Skin="Outlook"
                    DataValueField="Project_ID" AutoPostBack="true" Width="500px" AllowCustomText="True"
                    ShowToggleImage="True" EmptyMessage="Choose Project Name" ShowMoreResultsBox="true"
                    EnableLoadOnDemand="True" MarkFirstMatch="True" HighlightTemplatedItems="true"
                    OnItemsRequested="ddlProject_ItemsRequested" EnableVirtualScrolling="true">
                    <HeaderTemplate>
                        <table class="style1">
                            <tr>
                                <td width="50%">
                                    Customer Name
                                </td>
                                <td width="30%">
                                    Project Name
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table class="style1">
                            <tr>
                                <td width="50%">
                                    <%# DataBinder.Eval(Container.DataItem, "ModelCustomer.Customer_Name")%>
                                </td>
                                <td width="30%">
                                    <%# DataBinder.Eval(Container.DataItem, "Project_Name") %>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>
Rebecca Campbell
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
69 views
Hello, Telerik Team.

I have been developing a web application in the following environment:
- Windows XP Professional Version 2002 Service Pack 3
- Microsoft .Net Framework Version 4.0.30319 RTMRel
- Visual Studio 2010 Version 10.0.30319.1 RTMRel
- RadControls for ASP.NET AJAX Q2 2011 SP1

While testing the application, launched from Visual Studio, no errors are reported.
After deploying the application to my local IIS, no errors are reported as well.
However, after deploying the application to IIS in a computer running Windows Server 2003 R2 Standard Edition Service Pack 2, the attached error message is displayed when one of the aspx pages is launched.

Using remote debugging, I have added a breakpoint at the very beginning of each method implemented on the server side of the page that crashes. Without any exception, all of them are executed without errors.
The last method successfully executed before the application crashes is the following:
protected void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
// Description: this methods initializes the extended properties of the scheduling information.
{
    String aux = System.Web.HttpContext.Current.Session["ClubId"].ToString();
    Int16 clubId = Convert.ToInt16(aux);
  
    e.SchedulerInfo = new SchedulerInfoExt(e.SchedulerInfo, clubId, System.Web.HttpContext.Current.Session["ResourceType"].ToString());
}

On the client side of the page that crashes, "debugging" has been added at the very beginning of all JavaScript functions. None of the breakpoints are reached.

Based on the error message, would it be possible to identify why the application crashes?
Are there methods I should create on the server side that could identify the problem?
Are there functions I should create on the client side that could identify the problem?

Thank you in advance.
Paulo
Plamen
Telerik team
 answered on 10 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?