Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views
I have a very long report that uses RadWindow popups to allow the user to edit data.  However, when the user is a ways down in the report and clicks on a button in the row in which they're looking to open the RadWindow, although the screen grays out, the popup opens above or below where the user is actually looking.  I am assuming the window is opening mid-way down/up the page, and if the user isn't at that point, they have to scroll to look for it.

Is there a way to set the location of the RadWindow so that it is centered in the screen where they've opened it?

Thanks!

Michael
Fiko
Telerik team
 answered on 15 Jun 2009
1 answer
65 views

I am having a strange problem when trying to show a RadWindow every time a user click a RadTab.

This happens in codebehind when the user click a tab and an internal condition is true:

string strScript = "radconfirm('Save?', confirmCallBackFn, 430, 110, null, 'Save');";
ScriptManager.RegisterStartupScript(this, this.GetType(), "rtsFallvilt", strScript, true);

If I at the same time remove the mouse pointer from the clicked tab everything works fine, but if the mouse pointer is left standing over the tab that was clicked the radconfirm is shown but togheter with a javascript error saying "unspecified error".

When I debug the error is in the ScriptResource.axd on this line "_45.setActive();"

Any idea?

Fiko
Telerik team
 answered on 15 Jun 2009
1 answer
156 views
hello is it possible to have a Groupbyexpression render as a link? I would like to be able to pass the friendly name to the user and the recordid in the url. something like <a href=# onclick=openRadWindow('1105512'); return false;>2009 Mazda Miata</a>
This is my current group by expression and format string .. however you will note I have used {0} for both instances. 

 

Would LOVE to see : Mazda Miata: Avaialable: 1
RENDERS AS: RecordID: 80329; Available: 1

 

<GroupByExpressions>   
<telerik:GridGroupByExpression> 
<GroupByFields> 
<telerik:GridGroupByField FieldAlias="Description" FieldName="RecordID" /> 
</GroupByFields> 
<SelectFields> 
<telerik:GridGroupByField FieldName="RecordID" FormatString="<a href=# onclick=openRadWindow('{0}'); return false;>{0}</a>" /> 
<telerik:GridGroupByField FieldName="Countitem" Aggregate="Count" HeaderText="Available"/>  
</SelectFields> 
</telerik:GridGroupByExpression> 
</GroupByExpressions> 
 

 

The current string does work to popup the information (I have no idea how without any quotes...) , however I really would prefer to see the description.
thanks
mac

 

Veli
Telerik team
 answered on 15 Jun 2009
1 answer
158 views
Hi Telerik
I am using RadGrid but due to pre-design excel template i am doing export to excel function using below code. It is working fine. but when i deployed it on relience server then it is not working. even not generating any error also.
code :

public

 

void ExcelExport(System.Data.DataTable tblExportData, string TempFilePath,string userInfo,bool headerStatus)

 

{

 

try

 

{

Microsoft.Office.Interop.Excel.

Application excelApp = new Microsoft.Office.Interop.Excel.Application();

 

excelApp.Workbooks.Open(TempFilePath,

Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

 

 

 

//Writing Header in Excel

 

 

if (headerStatus == true)

 

{

 

for (int i = 0; i < tblExportData.Columns.Count; i++)

 

{

excelApp.Cells[7, i + 1] = tblExportData.Columns[i].ColumnName;

}

}

 

//Writing Data in Excel

 

 

for (int i = 1; i <= tblExportData.Rows.Count; i++)

 

{

 

for (int j = 0; j < tblExportData.Columns.Count; j++)

 

{

 

string colName = tblExportData.Columns[j].ColumnName;

 

excelApp.Cells[i + 7, j+1] = tblExportData.Rows[i-1][colName];

}

}

 

//Create a worksheet object

 

Microsoft.Office.Interop.Excel.

Sheets sheets = excelApp.Worksheets;

 

 

//from the collection of worksheet select one worksheet

 

Microsoft.Office.Interop.Excel.

Worksheet mySheet = (Microsoft.Office.Interop.Excel.Worksheet)sheets.get_Item(1);

 

 

//select the cell in the worksheet

 

Microsoft.Office.Interop.Excel.

Range myCell1 = (Microsoft.Office.Interop.Excel.Range)mySheet.get_Range("A6", "A6");

 

 

 

myCell1.Value2 = userInfo;

 

 

 

myCell1.Font.Color = System.Drawing.Color.Black.ToArgb();

 

 

 

excelApp.Visible = true;

 

 

}

 

catch (Exception ex)

 

{

}

}

since export to excel button is grid command item so i am handling postback operation using this code.

 

if

 

(e.Item is GridCommandItem)

 

{

 

GridCommandItem item = (GridCommandItem)e.Item;

 

 

ImageButton ibtn = item.FindControl("imgbtnExport") as ImageButton;

 

ibtn.OnClientClick =

String.Format("{0}.__doPostBack(\"{1}\",\"{2}\");return false;", RadAjaxManager1.ClientID, ibtn.UniqueID, ibtn.CommandArgument);

 

}

and now in exporttoexcel button click event i am calling above function.
in case of local server it's working fine in all system. but once it deployed in another server (e.g. Reliance Server) it's not working.

please help me to achieve my result.
thanks a lot in advance.
binod 

Daniel
Telerik team
 answered on 15 Jun 2009
1 answer
97 views
Hi,

I am using a RadCalendar, ASPNET AJAX SP2 2008 and it doesn't work very well with IE8.
Do you know how I can to fix it ?

Thank you in advance,

Suzi
Daniel
Telerik team
 answered on 15 Jun 2009
3 answers
141 views
I am having fits trying to find where the application thinks it should be looking for the 3.1 dll. I am using the EntityDataSource to populate the grid. I get this error:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) +0
   System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +147
   System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +203
   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +133
   System.Reflection.CustomAttribute.IsCustomAttributeDefined(Module decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable) +183
   System.Reflection.CustomAttribute.IsDefined(Assembly assembly, RuntimeType caType) +100
   System.Reflection.Assembly.IsDefined(Type attributeType, Boolean inherit) +53
   System.Data.Metadata.Edm.ObjectItemCollection.IsSchemaAttributePresent(Assembly assembly) +29
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies) +129
   System.Data.Metadata.Edm.ObjectItemCollection.LoadFromAssembly(Assembly assembly) +61
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +77
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +708
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments, Creator qbConstructor) +97
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +154
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +235
   Telerik.Web.UI.RadGrid.DataBind() +80
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +23
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +182
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(Control searcher, String ID) +186
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1085
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8679510
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


When I comment out the grid and the data source the page loads fine. It used to work fine until I installed Enterprise Library 4.1. I never had 3.1 on this machine at all.
Sebastian
Telerik team
 answered on 15 Jun 2009
5 answers
229 views
I am on a deadline and sincerely need any help!

HOW to Refresh the selected node of a treeview, inside a splitter, by calling it from the contentPane.

I have a splitter. Within the Splitter, on left pane I have the TreeView. This Treeview has sections (section1, section2...). Each section has %complete calculation coming from the database. On the right pane is the contentPage, where user fills data and saves it to the database. Each time user fills and saves the data in the rightPane/contentPage. I want the selected node in the treeview to be refreshed.

Any help is appreciated.

Here is my code:--

<telerik:RadSplitter BorderSize="0" style="overflow:hidden" id="RadSplitter1" Skin="Outlook" runat="server" Height="700px"  width="100%">        
        <telerik:RadPane id="RadPane1" runat="server" width="250" CssClass="PanelBarBackground">
            <div class="tree-module">
            <table cellpadding="0" cellspacing="0">
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr>
                <td width="5px">&nbsp</td>
                <td>
                     <telerik:RadTreeView ID="RadTreeView1" OnClientNodeClicked="OnClientNodeClicked" runat="server" Skin="Blue"
                     EnableEmbeddedSkins="False" OnPreRender="RadTreeView1_PreRender" SingleExpandPath="true">
                    <DataBindings>  
                        <telerik:RadTreeNodeBinding Target="ctl00_MiddleContent_ContentPane" />  
                    </DataBindings>
                </telerik:RadTreeView>
                </td>
                <td width="5px">&nbsp</td>
            </tr>
             <tr><td colspan="3">&nbsp;</td></tr>
            </table>
            </div>
        </telerik:RadPane>
        <telerik:RadSplitBar  Visible="true" id="RadSplitbar1" runat="server" collapsemode="Forward"></telerik:RadSplitBar>
        <telerik:RadPane id="ContentPane" runat="server" ContentUrl="about:blank" Scrolling="None">
        </telerik:RadPane>
    </telerik:RadSplitter>
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
4 answers
115 views
I have looked through the forums but have been unsuccessful in finding a solution for my problem.

I have created a dock with a multipage control inside it, the first page has a grid which shows some data and the second page has a chart which shows the data in bar chart format.  i have been successful in adding a RadTabStrip inside the doc and controlling the pages this way.

What I want is a custom toggle button on my dock title bar to change the multipage and change the image client side. I have been successful in implementing this with a postback and just changing the state of the toggle button and changing the page, but i can not find a solution for doing this client side. 

I see that i might have to write Javascript, but i am a novice at writing script.

How can i do this?

thanks

don
ajit
Top achievements
Rank 1
 answered on 15 Jun 2009
14 answers
317 views

Hello

I have installed Q1 2009 version and there is a problem I cannot solve. 

RadScheduler - RadScheduler1There was an error rendering the control.
Cannot create an object of type 'Telerik.Web.UI.IAppointmentFactory' from its string representation '' for the 'AppointmentFactory' property.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
 
<body> 
    <form id="form1" runat="server">  
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager> 
          
    <div> 
            <telerik:RadScheduler ID="RadScheduler1" runat="server" AppointmentFactory=""   
                DataEndField="End" DataKeyField="ID" DataSourceID="ObjectDataSource1"   
                DataStartField="Start" DataSubjectField="Subject" Height=""   
                HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1">  
            </telerik:RadScheduler> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
                DeleteMethod="DeleteAppointment" InsertMethod="InsertAppointment"   
                SelectMethod="AllData" TypeName="WebApplication2.AppointmentList"   
                UpdateMethod="UpdateAppointment">  
                <DeleteParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                </DeleteParameters> 
                <UpdateParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </UpdateParameters> 
                <InsertParameters> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </InsertParameters> 
            </asp:ObjectDataSource> 
    </div> 
    </form> 
</body> 
</html> 
 
 
I have try to delete all property and quickly got another error:

Error Creating Control - RadScheduler1'End' could not be set on property 'DataEndField'.

I alse have to try assign properties on the fly, but I have got many client scripts errors.

Thank you very much.

Tom
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
7 answers
148 views
I'm having troubles getting the rotator to do what it obviously should in IE.  I have a horizontal rotator that uses button clicks to advance the rotator.  The items in the rotator is dynamic based on the user (some users may have 15-20 items, some may only have 1). 

Each item template contains one PNG image that is links to another website.  Each image is a circle (like an M&M) that has a transparency in the PNG to fade to the background (it's a gradual fade with different degrees of transparency, different than a GIF).

It looks fine on first load, but as soon as I scroll either left or right, each item that is displayed has a horrible reaction with the transparency.

I'm using IE7, but it looks fine in both FireFox3 and Safari for PC.  I also noticed that if I do a GIF with a transparent background it works fine, but I can't make it look as nice :)

I have a zipped project with example images I was going to attach, but doesn't look doable.  It is available if anyone needs it to help.
Fiko
Telerik team
 answered on 15 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?