Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
133 views
I have a tabstrip with multiple pageviews, each which contain a grid with height 100%. When the tabs are switched, I obtain the particular grid object client side and use repaint. This is necessary because otherwise the grid appears collapsed. At least, this was the case in previous versions. Perhaps this bug has been fixed. Anyhow, the issue I am having is that all my grids have frozencolumnscount="1" set, because I want the first column to be frozen. However, only the grid which is on the pageview that loads initially has this working. When I switch tabs, the other grids don't have their first column frozen. Any idea what might be going on. Is the grid repaint causing the issue?
Tsvetina
Telerik team
 answered on 17 Jan 2011
1 answer
71 views

Hello,

I realize that this issue is not new to the forum.  Unfortunately I haven't been able to find a resolution to my problem in the previous threads.
I have followed structure in my Application:

1. Web site with Usercontrol_1 (loaded in placeholder dynamically)
1.1. RadWindow_1 can be called from Usercontrol_1 und returned a value to it.
2 Usercontrol_1 contents on his part Usercontrol_2 (also loaded dynamically).
2.1. Usercontrol_2 called RadWindow_2 und received from it returned value. But this works only first time. The second time around
oWnd.BrowserWindow.refreshRadGrid_2(oArg) not worked. RadGrid_2 is placed onto Usercontrol_2.
If I try to call instead of refreshRadGrid_2 another function refreshLabel (also refresh Label, resided onto Usercontrol_1) its work perfectly any time.

Here is part of my code:
Usercontrol_1 (works fine):
#################
<telerik:radscriptblock id="RadScriptBlock1" runat="server">
<script type="text/javascript">
function ShowWndFallSuchen() {
    
var oWnd = radopen('Suche.aspx', 'RadWindow1');
}

 

 

 

function refreshLabeFallNr(arg) {
    
if (!arg) {
        alert(
"Keine args");
    }
    
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    
if (ajaxManager != null) {
        ajaxManager.ajaxRequest(arg.RetVal);
    }
    
else {
        $create(Telerik.Web.UI.RadAjaxManager,
null, null, null, $get("<%= RadAjaxManager1.ClientID %>"));
        ajaxManager = $find(
"<%= RadAjaxManager1.ClientID %>");
        ajaxManager._uniqueID = $get(
"<%= btnSpeichern.ClientID %>").id.replace('btnSpeichern', 'RadAjaxManager1');
        ajaxManager._uniqueID = ajaxManager._uniqueID.replace(/_/g,
'$');
        
var lbl = $get("<%= lblBezugFallNr.ClientID %>");
        ajaxManager.ajaxRequest(arg.RetVal);
    }
}
</script>
</
telerik:radscriptblock>
<
telerik:radajaxmanager id="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">
<ajaxsettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lblBezugFallNr" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="lblBezugFallNr">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lblBezugFallNr" />
</UpdatedControls>
</telerik:AjaxSetting>
</ajaxsettings>
</
telerik:radajaxmanager>
#################

Seite1.aspx  (placed onto RadWindow1 and works fine)
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function returnToParent() {
    
var rtbFallNr = document.getElementById("rtbFallNr");
    
var fallNr = rtbFallNr.value;
    
var oArg = new Object();
    oArg.RetVal = fallNr;
    
var oWnd = GetRadWindow();
    oWnd.close(oArg);
    
if (fallNr.trim() != "") {
        oWnd.BrowserWindow.refreshLabeFallNr(oArg);
    }
    
else {
        alert(
"Keine Treffer");
    }
}

 

 

function GetRadWindow() {
    
var oWindow = null;
    
if (window.radWindow) oWindow = window.radWindow;
    
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    
return oWindow;
}
</script>
</
telerik:RadScriptBlock>
#################

Usercontrol_2 (That is embedded onto Usercontrol_1). Worked only first time.
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function ShowWndBeteiligter() {
    
var oWnd = radopen('../CreateEdit/Beteiligter.aspx', 'RadWindow2');
}

 

 

function refreshGrid(arg) {
    
if (!arg) {
        $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("empty");
    }
    
else {
        $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest(arg.RetVal);
    }
}
</script>

 

</

 

telerik:RadScriptBlock>
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
    
<UpdatedControls>
        
<telerik:AjaxUpdatedControl ControlID="RadGridBeteiligen" /
        
<telerik:AjaxUpdatedControl ControlID="lblTest" />
    
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</
telerik:RadAjaxManager>
#################

Seite2.aspx  (placed onto RadWindow2). Worked only first time, afterwards stops at oWnd.BrowserWindow.refreshGrid(oArg);
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function returnToParent() {
    
var rtbName = document.getElementById("rtbName");
    
var name = rtbName.value;
    var oArg = new Object();
    oArg.RetVal = fallNr;
    
var oWnd = GetRadWindow();
    oWnd.close(oArg);    
    
if (fallNr.trim() != "") {
        oWnd.BrowserWindow.refreshGrid(oArg);
    }
    
else {
        alert(
"Keine Treffer");
    }
}

 

 

function GetRadWindow() {
    
var oWindow = null;
    
if (window.radWindow) oWindow = window.radWindow;    
    
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    
return oWindow;
}
</script>
</
telerik:RadScriptBlock>
#################


 

 

 

 

Georgi Tunev
Telerik team
 answered on 17 Jan 2011
1 answer
73 views
The modal pop up Telerik has works great, but the aesthetic effects are pretty limited.  It opens, it closes.  Do you have any modifications/code which would provide a smoother opening?  Something like this link below, which uses jQuery to make the pop up sort of fade in and fade out?

http://dinbror.dk/blog/bPopup/

My system uses these pop ups all over the place and any way to make them less harsh on the user and more aesthetically pleasing is much appreciated. 

Thanks,

Oliver
Shinu
Top achievements
Rank 2
 answered on 17 Jan 2011
1 answer
63 views
Hi, Does anyone have a sample of a grid that is created in code behind and maintains view state when sort or filter operations take place?

In looking at this post   http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html it states 'No ViewState is required for grid structure to be persisted as it is recreated on each page initialization. ' However when we create a grid that allows filtering, paging, sorting etc. in code behind and add it to a place holder and then try to sort or filter, we lose the grid. The grid is being created every time in post back (no isPostBack test takes place).

If there is a sample of how to accomplish this that would be great. Thanks.
Pavlina
Telerik team
 answered on 17 Jan 2011
5 answers
130 views
Hi Telerik!

In my app I ajaxload everything via jquery. I have my pages in usercontrols wihich I load "virtually" via RenderControl and then send back the html to the browser. This works very well for asp.net-controls but some of your controls have problems with this pattern. Some are displayed incorrectly or not at all and scripts doesn´t seem to work.

I´m  guessing this has to do with "smart" loading of css and javascript. The web resource should just load scripts and css for the controls loaded server side right?

My question is: How can I load the scripts/css I want? Is there any documentation about the different scripts/css inside the assembly? is there something else that I´m missing?

In my source there´s also some javascript injected like: "Sys.Application.add_init(function() { $create....
What is this for? Kind regards
Veli
Telerik team
 answered on 17 Jan 2011
1 answer
111 views
Hi,

I wonder if there is a easy possibility to show downloadable files as a clickable link, to directly download a file instead of right click -> open.
Probably an additional column with a link or a download image would also be a possibility.

How could it be done?

Thanks, Tobias
Rumen
Telerik team
 answered on 17 Jan 2011
1 answer
50 views
Hi,

I am a newbee to Telerik. I have downloaded the trial and testing it out with plans to purchase in the near future. I was looking for a control, which I could use as roundcornered contentbox, in which I could nest other controls such as textboxes, gridview etc. I couldn't find such a control in the vast array of the Telerik controls. If there is one, please let me know and also how to use it.

Thanks
Sebastian
Telerik team
 answered on 17 Jan 2011
4 answers
125 views
Hi,

since I'vw updated to the current version 2010.3.1304.35 I have a strange behaviour. Please see attached screenshot. I'm using for my calendars my own created skins.

Can anybody help? Thanks in advance

Thomas
Tommy
Top achievements
Rank 1
 answered on 17 Jan 2011
1 answer
132 views
I have a RadGrid nested in another RadGrid.

In the nested RadGrid I have enabled Allow Automatic Updates and Deletes.   However I want to disable or set the value of these buttons to be invisible if a value in my SQL database = 1.  This field is in the NestedGrid - although set to visible = false.

How would y'all go about hiding the buttons?  Do I need to remove the Automatic Updates / Deletes and add custom buttons?
Princy
Top achievements
Rank 2
 answered on 17 Jan 2011
1 answer
50 views
I don't have a key between the master and detail tables . How can I load the detail tables at runtime from a datatable instead of having the relationship between master and detail tables. 

Raja
Princy
Top achievements
Rank 2
 answered on 17 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?