Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
Dear Telerik,

I setup a rad grid, with a nested rad grid inside a rad ajax panel, like so:
<ContentTemplate>
<telerik:RadAjaxLoadingPanel ID="PartsRadAjaxLoadingPanel" runat="server"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="PartsRadAjaxPanel" runat="server" LoadingPanelID="PartsRadAjaxLoadingPanel">
​ <telerik:RadGrid ID="PartsRadGrid" runat="server" ShowHeader="False" OnItemDataBound="PartsRadGrid_ItemDataBound"
OnItemCommand="PartsRadGrid_ItemCommand" BorderStyle="None" OnPreRender="PartsRadGrid_PreRender" EnableHierarchyExpandAll="true" OnItemCreated="PartsRadGrid_ItemCreated">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="id, part_statistic">
<AlternatingItemStyle BackColor="White" />
<NestedViewTemplate>
<telerik:RadGrid ID="PartsImagesRadGrid" runat="server" ShowHeader="false"
OnItemCommand="PartsImagesRadGrid_ItemCommand" OnItemDataBound="PartsImagesRadGrid_ItemDataBound"
OnItemCreated="PartsImagesRadGrid_ItemCreated">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="id">
<AlternatingItemStyle BackColor="White" />
<ItemTemplate>
<div id="part_images">
<div class="grid_long">
<div class="grid_left-left"></div>
<div class="colspan_left-right-right">

....

when the form initially loads everything displays OK like pic one, when one of the controls inside the rad ajax panels causes a post back and the rad grid is rebound on the code behind then rad grid moves left like pic two. The div tags are for grids like so:

.grid{
width: 100%;
display: -ms-grid;
-ms-grid-columns: 140px 160px 140px 160px 140px 160px;
-ms-grid-rows: 30px;
padding-top: 5px;
padding-bottom: 5px;
}
.grid_left-left{
-ms-grid-column: 1;
-ms-grid-row: 1;
white-space:nowrap;
}

Any ideas on what could be causing this behavior and how to prevent it from happening?

Thanks,
Germán
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Aug 2014
1 answer
66 views
Say I have several sets of date range fields with a textbox for each of the From and To fields.  For each set of From/To textboxes there would be a collection of date ranges.  So each pager would cycle through a range of values, and those values would be displayed in the corresponding textbox.


Something like this
Manager Type 1 From: _______   To: ________    <   >
Manager Type 2 From: _______   To: ________    <   >   
Manager Type 3 From: _______   To: ________    <   >
Manager Type 4 From: _______   To: ________    <   >


In my view, this wont really be a good fit for using a pager, at least not in the usual way.  Seems like it would be better to just roll the code yourself with buttons to handle the data navigation.  You could fire off ajax requests from buttons and handle the data navigation & updates etc.

If anyone can suggest a clever way of using the pager in this scenario, id like to hear it.



Angel Petrov
Telerik team
 answered on 19 Aug 2014
13 answers
751 views
When I place html in RadEditor,  it seems to try to automatically correct malformed html tags or insert proper thing such as ALT attributes for images which is fine in most cases.

However, in my case, I have a valid html document but I want to insert custom placeholders in the markup, which will be replaced by some other application later.

For example.

Instead of  a valid <tr>blah blah </tr>

I have {$DetailLines}  which my app replaces later dynamically with x number of <tr></tr>  lines.

However, Rad Editor will alter my placeholder to something like <>{$DetailLines}</>   

Is there an easy way to just turn this auto correction off.  I don't need it on!

Thanks
Veysel
Top achievements
Rank 1
 answered on 19 Aug 2014
3 answers
153 views
I'm creating a  application using AjaxControlToolKit 4.5 and Telerik Controls .  I have noticed  strange issues.

1) When Latest AjaxControlToolKitScriptManager  is referenced in page and I have taken a Telerik numeric control  and set  HoveredStyle-BackColor="Wheat" to  it . Control is not able to load color when Hovered on it. But it is loading when I'm using RadScriptManager.

2) When I have referenced RadScriptManager  in page and With Latest AjaxControlToolkit reference to project  Filter Functionality in RadGrid is not working.


Please help on this.
Hristo Valyavicharski
Telerik team
 answered on 19 Aug 2014
5 answers
476 views
Hi! 

I have a grid that has an update command inside of RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)


I want to run that update command when a radbutton is clicked further down in the page.

What do I pass as "e" to make the update work with the button click?
RJ
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
71 views
Hello.

How do I execute a javascript function inside my RadPane page, from my Parent page?

I get ok access to the pane, but cant access the inside document 

  var contentPane = $find(CenterPane);
          if (contentPane != null) {
              contentPane.???.test();
          }
Vessy
Telerik team
 answered on 19 Aug 2014
8 answers
207 views
I have an odd problem and I don't know if it's Telerik-related or something more basic.  For the most part everything is working perfectly, with this one exception.

In my Asp.Net web app (Dot Net 4.0/C#) I have a page with a master page.  

The master page's main purpose is to provide a variety of navigational links across the top of the page.  This includes a bound Asp:Repeater control that contains a set of LinkButtons, defined as follows:
<asp:Repeater ID="MyRepeater" runat="server" >
   <HeaderTemplate>                                      
      <asp:LinkButton ID="btn1" runat="server" OnClick="btn_Click" Tooltip='-1' Text='Display All Teams' CausesValidation="false" Visible="false" ></asp:LinkButton> 
   </HeaderTemplate>
   <ItemTemplate >
      <asp:LinkButton ID="btn1" runat="server" OnClick="btn_Click" Tooltip='<%# Bind("Id") %>' Text='<%# Bind("Desc") %>' CausesValidation="false" ></asp:LinkButton>
   </ItemTemplate>
</asp:Repeater>


Most of the page itself is contained in a RadAjaxPanel.  Within it is a RadComboBox set up to do postbacks.  The combox box always triggers the page_load event in the Master Page.

The problem is this:  After the RadComboBox is used at least once, the btn_Click event of the repeater buttons is disabled.  It does not seem to matter whether or not the repeater is refreshed.  The buttons are always disabled.  The only way to reactivate them is to hit the browser refresh button and completely reload the page.

Suggestions?   Am I missing something basic?
Viktor Tachev
Telerik team
 answered on 19 Aug 2014
9 answers
441 views
In the FilterExpression, I noticed Telerik is using ")||(" instead of ")OR(".  Evidently this works, but I believe the recommendation is "OR".  I only bring this up because in many situations, the RadGrid1.MasterTableView.FilterExpression can be used directly as the WHERE clause is in a SQL Query.  SQL understands "OR", but not "||".

I'm using it for my where clause in my project to retrieve related data, so you might consider changing it just for me. :-)

In the meantime RadGrid1.MasterTableView.FilterExpression.Replace("||", "OR") is working well.

Thanks!
Viktor Tachev
Telerik team
 answered on 19 Aug 2014
5 answers
203 views
I have a rad date time picker in my website which shows time from 12:00 AM to 11:00 PM
When user selects date, the time is set to 12:00 AM automatically.
I want this time to be 7:00 AM instead of 12:00 AM.
Also i want to show complete 24 hr time like it was showing it before (12:00 AM to 11:00 PM).
Kindly provide some solution.
Kavita
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
132 views
Hi,
I have two RadComboBoxes controls on my page. The first RadComboBox items is loaded via Server-side code. But the second RadComboBox items is always reflected once user change the first RadComboBox and this RadComboBox has multiple selection with checkbox inside each items. I want to achieve that the second RadComboBox items is loaded via Javascript query against a variable without any request to server. Once the user submit the form, the multiple selections on the second RadComboBox can be recognized in the server. How can I achieve that way?
Any help would be greatly appreciated.
Thank you.

Regards,
Darius
Darius
Top achievements
Rank 1
 answered on 19 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?