Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
81 views
I'll share a problem that could be embarrassing but others may be here at some point too.

I tend to wrap controls into div tags just so that I can set style position x/y.
Within that I'm often confused about when to use a RadAjaxPanel, asp:Panel, asp:UpdatePanel, or a div.
The thing is that the RadAjaxManager creates panels around controls and ajaxifies them for us. But it can only do this if the controls are visible. So what gets me is when I need to make a control visible - it's not there for Ajax to toggle Visible=true. For these controls I think I sometimes need to do the ajaxifying in code-behind. So I split ajaxification between markup and code - which seems sloppy.

Then there are timers, and I have a recent thread going on about this. You can't ajaxify a timer as the updated control directly because it's not a visible control. You "may" need to put the control on a panel and set that as the updated control.  While I've seen this stated many times, examples show timers outside of panels, and I've tried that code and it works. In my more sophisticated pages it seems like sometimes I need the timer in a panel and other times not.  I'm just never sure about which panel to try - it's just a guessing game.  So why does the RadAjaxManager wrap other controls in a panel and not a timer? And what are the firm rules about exactly how this is supposed to be coded?

Here is a simple example that demonstrates some of my confusion related to the above.
I have a tab with a multi-page and a single timer on the page. In each tab is a start/stop button which can toggle the timer. If you press Start on tab 0 the timer is enabled and the button.Text is changed to Stop. Now click Stop, timer.enabled=false and button.text gets reset to Start.  Tab 1 has the same functionality.  The timer does postbacks which perform work, and when the work is complete the timer is supposed to get disabled and the button on the current tab toggled off.  If I pre-ajaxify the buttons in markup so that Timer1 updates both of them, only one of the buttons is visible at any given time, so I'll get an error at runtime. So I think I need to ajaxify controls in page_load for each pageview, depending on which tab is active. I also find that sometimes my controls ajaxify but the timer does not, or the timer ajaxifies but the controls do not. The effect is that on a timer_tick, (1) control updates are not reflected on the client, or (2) when I set timer.enabled=false, the client doesn't get that message and the timer keeps ticking.

I have spent exactly one week on nothing but the above problems, getting absolutely nothing productive done.  The code for these things is always too extensive to send to Telerik Support, though those great people are always eager to help us workout issues like this.  Over the last year I've spent many hours trying to balance RadAjaxManager with various panels and controls and codebehind code to accomplish the task of the day, and quite often the end result is "I don't know why that worked but I'll accept it".  That's unprofessional, I want to understand this better better.  What I'd rather see is a very clearly defined set of rules for when we need specific panels, and exactly what happens in the RadControls black-box "for" us, so that I know what to expect in my code.

This situation is causing me to re-consider using web forms for this stuff, and maybe to switch to MVC to eliminate a lot of the black-box activity that makes some of these very helpful tools yet another layer for debugging.  I don't know if that will really help.  Any comments?

Thanks for your time, and any feedback or links to indepth blogs or articles on this topic.
TonyG
Top achievements
Rank 1
 answered on 05 Dec 2011
3 answers
102 views
Hi everyone,
In my previous post i asked how to get the uniquename of column if you click on a cell. The issue was succesfully answered; the code will retrieve the column name on the client side. But how to get the column name directly on the server-side?

Ciao Peter.
Chris
Top achievements
Rank 1
 answered on 05 Dec 2011
1 answer
54 views
Hello,

I am loading my RadRibbonBar from an XML and wanted to know the format in which i can add a RibbonBarTemplateItem . The example at the demo site does not mention anything about a template ribbon items. Also is it possible to show a ribbon button without an image and just the TEXT also how do i wrap the text of the Button im adding .. ???

Thanks & Regards,
Francis P.
Damon
Top achievements
Rank 1
 answered on 05 Dec 2011
0 answers
97 views
I have a google map inside of a RadAjaxPanel. I want to add a panel or table to display a custom legend.

Basically a table that sits on top of the map.

I'm not sure what control to use to accomplish this.

I want the map to be 1000px by 500px. I want the legend to always be on top and in the lower right hand corner.



PATRICIA SEIFERT
Top achievements
Rank 1
 asked on 05 Dec 2011
4 answers
817 views
Hello,

I have one small issue with ExportToExcelButton position. By default it's positioned at the right end of CommandItem panel.

What I've tried to achieve is to change export button position to the left border of CommandItem panel.
I tried to do steps described here http://www.telerik.com/community/forums/aspnet-ajax/grid/set-right-allignment-to-export-to-excelbutton-in-radgrid.aspx , but the result effect wasn't good.

For further info please check image in the attachment.

Please help me to solve this issue.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 05 Dec 2011
3 answers
41 views
Is there a 'before navigate' type event for the RadPane control?

I am using a RadPane control, and initially setting the ContentURL.

When a user clicks a link in the content of the RadPane I would like to capture the 'navigating to URL' of the link in the code behind.

Please can you suggest how this could be done.


 
Dobromir
Telerik team
 answered on 05 Dec 2011
6 answers
72 views
Hello
I am using two Resource Types in RadScheduler's (Collection).
Patient  (ResourceType 1)
Doctor  (ResourceType 2)

and all these Names lists are populationg from my database.
Now I want to view Second Recource type where Doctor Name's List is populating...Should be changed as I select any Patient from Patient Drop Down List
as:
Patient: ABC
             DEF
             GHI
And i Select ABC
then automatically Doctor should be Selected in List.
 is this Possible???

Thanks
Shirani
Top achievements
Rank 1
 answered on 05 Dec 2011
3 answers
58 views
Hello ALL,

I have applied following properties to radgrid.

<telerik:RadGrid ID="radgrdSearch" runat="server" Width="100%"
ClientSettings-Scrolling-AllowScroll="true"
ClientSettings-Scrolling-UseStaticHeaders="true" ClientSettings-Scrolling-FrozenColumnsCount="1"
ClientSettings-Selecting-AllowRowSelect="true" OnNeedDataSource="radgrdSearch_NeedDataSource"
OnItemDataBound="radgrdSearch_ItemDataBound"
OnItemCreated="radgrdSearch_ItemCreated"
AutoNavigateToSingleRecord="true"
ClientSettings-AllowKeyboardNavigation="true"
AutoGenerateColumns="false"
HeaderStyle-Wrap="true"
ItemStyle-Wrap="true"
AlternatingItemStyle-Wrap="true"                 OnExcelMLExportRowCreated="radgrdSearch_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="radgrdSearch_ExcelMLExportStylesCreated">
<MasterTableView Width="100%" NoMasterRecordsText="No records to display">
 
<telerik:GridHyperLinkColumn HeaderText="Action" UniqueName="ViewColumn" Visible="false" DataNavigateUrlFields="FIELD" ItemStyle-HorizontalAlign="Center" HeaderStyle-Wrap="true" HeaderStyle-Width="50px" ItemStyle-Width="50px" DataNavigateUrlFormatString="URL" Text="View"></telerik:GridHyperLinkColumn>
 
<telerik:GridHyperLinkColumn HeaderText="Action" UniqueName="ActionColumn" ItemStyle-HorizontalAlign="Center" HeaderStyle-Wrap="true" DataNavigateUrlFields="FIELD" HeaderStyle-Width="50px" ItemStyle-Width="50px" DataNavigateUrlFormatString="URL"
Text="Edit"></telerik:GridHyperLinkColumn>
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="70px" ItemStyle-Width="70px" HeaderStyle-Wrap="true" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="160px" ItemStyle-Width="160px" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="150px" ItemStyle-Width="150px" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="180px" ItemStyle-Width="180px" HeaderStyle-Wrap="true" />
 
<telerik:GridBoundColumn DataField="FIELD" UniqueName="UNIQUENAME" HeaderText="HEADER" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}"
HeaderStyle-Wrap="true" HeaderStyle-Width="80px" ItemStyle-Width="80px" />
 
<telerik:GridBoundColumn DataField="FIELD" UniqueName="UNIQUENAME" HeaderText="HEADER" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}"
HeaderStyle-Wrap="true" HeaderStyle-Width="70px" ItemStyle-Width="70px" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Wrap="true" HeaderStyle-Width="60px" ItemStyle-Width="60px" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="80px" ItemStyle-Width="80px" />
 
<telerik:GridBoundColumn DataField="FIELD" HeaderText="HEADER"
HeaderStyle-Width="80px" ItemStyle-Width="80px" />
 
</Columns>
</MasterTableView>
</telerik:RadGrid>

I had use paging control so i had used static header true.
Now when i am going to re size any of the column from grid the design get disturb, column get mapped on each of.
can you please give me your suggestion to resolve this.

Thanks
Kaushal Pathak.
Tsvetina
Telerik team
 answered on 05 Dec 2011
1 answer
91 views

I'm using nested RadSplitBar controls.  On the left I have a treview used for navigation and on the right is my content pane.  Whenever  a particular node on the navigation pane is click is loads a URL on my content pane via set_contentURL.  The content pane is loaded from my data source which set session vars tied to each entry object.  The problem I'm having is capturing the content from each object before the user clicks the navigation to change the url.  I would like to traverse the object from the content page and capture the entered data within and event that fired just before it sets or changes to the next content url.


Javascript that changes the content whenever the DB driven node is selected.

 

<

 

 

script type="text/javascript">

 

 

 

 

 

 

 

 

function onNodeClicked(sender, args) {

 

showDetails(args.get_node());

}

 

 

function showDetails(node) {

 

 

 

if (node.get_value()) {

 

 

 

var page = node.get_value();

 

LoadExternalContent(page,

 

'contentPane');

 

 

 

}

 

 

else {

 

$get(

 

"details").style.display = "none";

 

}

}

 

 

function LoadExternalContent(url, targetPaneID) {

 

 

 

var splitter = $find("topSplitter");

 

 

 

var pane = splitter.getPaneById(targetPaneID);

 

 

 

if (!pane) return;

 

 

 

if (url == "0") {

 

 

 

return;

 

}

 

 

else {

 

pane.set_contentUrl(url);

}

}

 

 

</script>

 

 

Here is the Content pane.

 

 

<telerik:RadPane ID="contentPane" Width="50%" Height="675" Scrolling="Y" EnableAjaxSkinRendering="true" runat="server">

 

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

 

 

 Any help would be greatly appreciated.

Thank you.

Dobromir
Telerik team
 answered on 05 Dec 2011
1 answer
36 views
I just wanted to know if the slider control should work in the Safari browser on the iPad. 

Thanks
Slav
Telerik team
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?