Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,
I've three RadWindow, each content template depends by others content template.
I need to refresh each content template after the click of a radbutton into a RadWindow.

I force the rad ajax panel update using the follow codes
public static void updatePanel(RadAjaxPanel sender, RadAjaxPanel target)
{
   sender.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", target.ClientID));
}

but it works only for the radwindow wich I'm displaying in that moment, if i open the others rad window I don't see any changes.
I try also to fire the Load event and set the property reloadonshow = true but the event call before the button click.

Can you help me?
Marin Bratanov
Telerik team
 answered on 02 Aug 2011
2 answers
65 views
I could not get the popup editor to be modal in RadGrid.I do not see the option in the popupsettings to make the popup modal,  like shown in your demo. Am I missing something?
fijula
Top achievements
Rank 1
 answered on 02 Aug 2011
1 answer
122 views
How do I capture the changed image during the ImageChanged event and process it to an image file for uploading and storing as an image column in the SQL database ??

I've tried to capture args.image in the ImageChanged event and save it as an image field, i.e. as Byte()... but I keep getting an error that I cannot convert args.Image to a System.Drawing.Image ?????

Thanks in advance.
Bill Anderson
Top achievements
Rank 1
 answered on 02 Aug 2011
1 answer
127 views

Hi

Please help me with the following problem, i get the error copied below.:
I am trying to use telerik for my ASP.Net site, e.g.the scheduler.
I have e-mail and sms functionality in my system.
Now I included the System.Windows reference in my project and it crashes
my SMS and Email functionality. Please help :)

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 75:         <td class="style15" valign="top">
Line 76: 
Line 77:         <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
Line 78:             </telerik:RadScriptManager>
Line 79:         <script src="http://www.weather.co.za/widgets/website_widget.php?rqt=js&loc=cape-town&tpl=2" type="text/javascript"></script>

Source File: c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx Line: 77

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.

=== Pre-bind state information ===
LOG: User = LEWIS27\Admin
LOG: DisplayName = System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Admin/Desktop/SSS/ESAWC/
LOG: Initial PrivatePath = C:\Users\Admin\Desktop\SSS\ESAWC\bin
Calling assembly : Telerik.Windows.Controls.Gauge, Version=2011.1.315.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Admin\Desktop\SSS\ESAWC\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

Stack Trace:

[FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.]
   System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
   System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180
   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388
   System.Web.UI.ScriptManager..ctor() +26
   Telerik.Web.UI.RadScriptManager..ctor() +30
   ASP.presentation_layer_home_aspx.__BuildControlRadScriptManager1() in c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx:77
   ASP.presentation_layer_home_aspx.__BuildControlContent2(Control __ctrl) in c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx:51
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87
   ASP.site_master.__BuildControlMainContent() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:71
   ASP.site_master.__BuildControlForm1() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:15
   ASP.site_master.__BuildControlTree(site_master __ctrl) in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:1
   ASP.site_master.FrameworkInitialize() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.Master.vb:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8893254
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Helen
Telerik team
 answered on 02 Aug 2011
3 answers
114 views
Hi,

When an DIV is absolutely positioned above the DatePicker, the Popup Image Button from the DatePicker appears above the DIV while the Text Box of the DatePicker itself is in the correct position (behind the DIV).

See attached image.

How can I get the Popup Image button to appear behind the DIV as it should.

This problem only occurs in Safari, Google Chrome and Opera and works fine with Internet Explorer 6,7,8 & Firefox.

Thanks
Pavlina
Telerik team
 answered on 02 Aug 2011
3 answers
40 views
hi  Expert i m shamsher Ali

i m using dnn.5.5.1 and bind radtabstrip by database and handling server side click event and using radajax manager but click event working only first time and when second time i clicked its not clickable.
 and i m using another module  on the same page having radajaxmanagerproxy but here also when i click on the button first time clickable but second time not clickable.
also with radajaxmanager when we go go next tab  facebook plugin like sent etc button not display.
on tab click event i want to display different data based on the conditions
3 days i have spend on this.but not got a solutions till now please help.

where i did a mistake
my code is



<telerik:RadAjaxManager ID="rjmUserDeal" runat="server" EnableAJAX="true">
    <ajaxsettings>
        <telerik:AjaxSetting AjaxControlID="rtsUserDeal">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlDealbeforetipped" />
                <telerik:AjaxUpdatedControl ControlID="rtsUserDeal"  LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="pnlLogin" />
                <telerik:AjaxUpdatedControl ControlID="pnlCampaignMap" />
                <telerik:AjaxUpdatedControl ControlID="pnlGProperty" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnlogin">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlDealbeforetipped" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnRegistered">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlDealbeforetipped" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="ibtnJoinGroup">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlDealbeforetipped" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="dlCity">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlDealbeforetipped" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </ajaxsettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Hay"
    HorizontalAlign="Center">
</telerik:RadAjaxLoadingPanel>
and other user controls

<telerik:RadAjaxManagerProxy ID="rjmsubscribe" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnJoinNow" EventName="Click">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlSubscribe" LoadingPanelID="RadAjaxLoadingPanel1" />
                 <telerik:AjaxUpdatedControl ControlID="btnJoinNow" />
               <%-- <telerik:AjaxUpdatedControl ControlID="rtbPhoneNo" />
                <telerik:AjaxUpdatedControl ControlID="rcbCity" />
                <telerik:AjaxUpdatedControl ControlID="rtbEmailId" />
            
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


and when i use


protected void Page_Init(object sender, EventArgs e)
        //{


        //    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
        //    if (manager == null)
        //    {
        //        manager = new RadAjaxManager();
        //        manager.ID = "RadAjaxManager1";
        //        Page.Form.Controls.Add(manager);
        //    }
        //}

then i got the error

only one instance of radajaxmanager can be used



please help

Peter
Telerik team
 answered on 02 Aug 2011
1 answer
126 views

Hi,
I have created lots of custom web part using Telerik controls in MOSS 2007 with telerik.web.UI.dll version 2009.3.1208.20 and system.web.extension dll version 1.0.61025.0.My company has purchased Telerik license for dll version  2009.3.1208.20.

                   My problem is that one of our clients wants to deploy Bamboo web parts and our custom web parts in same site. The bamboo web parts are using following version of Telerik dll.

2008.3.1125.20

2010.1.415.35 

2009.3.1103.20 

2009.1.402.20

3.5.0.0 (system.web.extension)

If our client will deploy bamboo web parts in the same site where we deployed our custom web parts with Telerik dll version 2009.3.1208.20, so is there will be any impact on our web parts? If yes, Please provide any solution for that ASAP because it’s very urgent for our client.

waiting for your reply at earliest
Thanks,
Divya

 

 

 

Peter
Telerik team
 answered on 02 Aug 2011
4 answers
60 views
Hello again..can someone show me an example to add a callendar popup to my FilterItem inside my RadGrid like we can see on:

http://demos.telerik.com/aspnet-ajax/salesdashboard/   

on the orders tab?
Ricardo
Top achievements
Rank 1
 answered on 02 Aug 2011
4 answers
257 views
I am trying to set a default insert value.  I have read the forums on how to do this from code-behind, and I have that working.  However I am very curious if there is a way to do this using the documented DefaultInsertValue property.  Whenever I try it, a javascript error is generated:

<

 

telerik:GridDateTimeColumn DataField="InspectionDate" DataType="System.DateTime" DefaultInsertValue='<% = Now().ToString() %>'

FilterControlAltText="Filter colInspectionDate column" HeaderText="Date"

UniqueName="colInspectionDate">

</telerik:GridDateTimeColumn>


I have also tried '<% = Now() %>'.

I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The default insert value for column colInspectionDate cannot be converted to type System.DateTime

I am using Q2 2011.  Is this a bug?  Is DefaultInsertValue supposed to work?  Is there a formating option I have to use on the date?  I have been unable to find anyone who has a working example other than the code-behind solution.

Thanks.
Chuck
Top achievements
Rank 1
 answered on 02 Aug 2011
2 answers
79 views
Hello Telerik Team,

I have a requirement where I need to open bunch of( number varies based on items availability) same radwindows as modal windows where user inputs the data on each of the windows and close it to get to the next window, I need to refresh the parent page once the user is done inputting data on all the modal windows, I have a javascript function the needs to be called upon clientclose(which is going to be same for all the modal windows) where I check the number of windows active, if the active count is zero that's when I refresh the parent page, it looks like the javascript function is not attached to each instance of the modal window, but it is attached to the first instance that I see on the screen. here is my code, please let me know why the event is not attached to each of the modal windows.

Thanks in advance,
SC.

function OnClientclose(sender, eventArgs) {
  
            var manager = GetRadWindowManager();
            var windows = manager.get_windows();
             if(windows.length==0)
              {
                     //refresh parent page
               }
                
}
  
  
  
-----------------------------------------------------------------
  
//from my code behind
  
string[] strInputIDs = args1[1].Split(',');
  
for (int i = 0; i < strInputIDs.Length; i++)
  
{
  
RadWindow window = new RadWindow();
  
window.ID = "RadWindow" + i;
  
window.NavigateUrl = "Popup.aspx?ID=" + Convert.ToInt32(strInputIDs[i]) + "&Result=S";
  
window.VisibleOnPageLoad = true;
  
window.Modal = true;
  
window.Width = 550;
  
window.Height = 300;
  
window.OnClientClose = "OnClientclose";
  
RadWindowManager1.Windows.Add(window);
  
}
Srujana
Top achievements
Rank 1
 answered on 02 Aug 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?