Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
I have defined an area on a page where I overlay other ASPX pages based on selection from a RadPanelBar. I update the ContentUrl setting in server-side code (VB) and this works well. The value is updated via Ajax.

I am wondering whether there is a cleaner way to achieve this same effect, as there is no associated TabStrip control, nor are there "multi" pages, just the one that defines the overlay zone.

Per the following example, I have shown the default content, and this is what gets updated.
<ItemTemplate>
     <div style="padding: 0px; margin: 0px; overflow: hidden; position: relative;">
         <telerik:RadMultiPage ID="RadMultiPage_About" runat="server" SelectedIndex="0">
         <telerik:RadPageView ID="RadPageView_About" runat="server" ContentUrl="minimal_about.aspx"  Height="460" Width="900">RadPageView</telerik:RadPageView>
         </telerik:RadMultiPage>
     </div>
 </ItemTemplate>
Princy
Top achievements
Rank 2
 answered on 12 Mar 2014
4 answers
193 views
I have a RadTabStrip which contains a multipage and several pageviews within that.  Is there an easy way to get a printer-friendly version of one of my pageviews?  In other words, I'd like to give the user a printer icon they can click on and that would in turn allow the user to just print off that one pageview instead of the whole page (i.e. get rid of the surrounding page content, tabstrip, etc.).
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
1.1K+ views
Hi,
I have a RadGrid like this: (only selective code is shown here for clarity..please bear)

 <telerik:RadGrid ID="MessageView" runat="server" AllowPaging="True" PageSize="50"
                                OnGroupsChanging="MessageView_GroupsChanging" OnNeedDataSource="MessageView_NeedDataSource"
                                AllowSorting="true" ShowGroupPanel="true" AutoGenerateColumns="False" GridLines="None"
                                OnItemDataBound="MessageView_ItemDataBound" OnItemCommand="MessageView_ItemCommand"
                                Width="916px">

  <ClientEvents OnRowDblClick="MessageViewDoubleClick"></ClientEvents>

 I have a column like this in RadGrid HTML:

    <telerik:GridTemplateColumn UniqueName="CustomerName">
                                            <ItemTemplate>
                                                <asp:Label ID="hdnLblCustomerName" Style="visibility: hidden;" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>

    ON SERVER SIDE... I am assigning the value to this label in  MessageView_ItemDataBound event  like this:
 
                   Label hdnLblCustomerName = (Label)e.Item.FindControl("hdnLblCustomerName");
                   hdnLblCustomerName.Value = Convert.ToString(dt.Rows[0]["CustomerName"]);



NOW, In the Client Side , i have written like this:

 function   MessageViewDoubleClick(sender, args) 
{
                   var dataItem = $get(args.get_id());
                 
                    var grid = sender;
                    var MasterTable = grid.get_masterTableView();
                    var row = MasterTable.get_dataItems()[args.get_itemIndexHierarchical()];
                
                    var cell = MasterTable.getCellByColumnUniqueName(row, "CustomerName");
                    var lblvalue = cell.innerHTML;
}


Till here everything is going right, my label got assigned with the correct value...and now I have to fetch this on the client side
BUT , now the problem is
 lblvalue is showing value like this
   <span id="MessageView_ctl00_ctl04_hdnLblCustomerName" style="visibility:hidden;">John</span>

but I need only "John" .

Please suggest how to achieve this.

Thanks.



Princy
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
123 views
I would like to hide the description area, including the image count display.

All I want to show is contents of the ItemTemplate.
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
134 views
I have a bit of code that use to work until we upgraded to the newest version of the controls.
But the ability to pull the myTextBox._orginalValue no longer works... Is there a supported method for this in the latest build of the controls?

var saveIcon = $find(gridRowSaveIcon.id);
 
               var orginalValue = myTextBox._originalValue;
               if (orginalValue.length == 0) {
                   if (myTextBox._initialValue.length != 0)
                       orginalValue = myTextBox._initialValue;
               }

Princy
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
132 views
We are using the RadDateInput for drivers license expiration date. Some users want to enter only the month and year such as 02/2014 but the control parses this to 3/2/2014 rather than 2/1/2014. Is there a workaround for this behavior?

Thanks

Charles
A2H
Top achievements
Rank 1
 answered on 11 Mar 2014
8 answers
88 views
This is probably the intended behavior, but if I have 2 grids on 2 different child pages with the same name (ID), then they will use the same settings.  If you're using RadGrid1 for all your grids in the child pages, this will screw things up.  I don't do that, but sometimes I uses the same name like gridOrders...  The easy solution and what I'm doing is to make the names unique.
I put the RadPersistenceManager on the master and use the proxy on the child pages.

I'm guessing that I just need to make the names unique and there probably isn't a fix you can do for this.
moegal
Top achievements
Rank 1
 answered on 11 Mar 2014
2 answers
112 views
I'm using a PivotGrid and his ConfigurationPanel enabled. 

Is there any way to export or save settings "ConfigurationPanel" to reopen when the system is in the same configuration?
Murilo Savi
Top achievements
Rank 1
 answered on 11 Mar 2014
11 answers
242 views
I have an HtmlChart (Pie) that displays differently in IE10 and Chrome. In IE10, the labels for the slices on the left extend beyond the chart image while Chrome clips them at the edge of the image. Obviously, this is not something that can easily be handled. Just wanted to let you know about it.

I have attached relevant images.
Ed
Top achievements
Rank 1
 answered on 11 Mar 2014
3 answers
56 views
What data source to choose in the scenario wizard for EF? (see attached)
Pavlina
Telerik team
 answered on 11 Mar 2014
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?