Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
394 views
Hi,

I'm using the trial version of 2008.3 1105 and trying to use a radwindow as a dialog, exactly in the manner described in your online documentation.

function ImagePickerClose(sender, args){  
    if (args.get_argument()!= null)  
          {  
            alert("'" + sender.get_name() + "'" + " was closed and returned the following argument: '"+ args.get_argument() + "'");  
          }  
} 

I get an error on the line 'if (args.get_argument()!=null' saying 'object does not support this property or method' and debugging in VS shows that the object is empty, although the 'sender' object has the correct details about the radwindow that was closed.

The code in my dialog.aspx page is as follows:

            function SaveChosenImage(){  
                var oWnd = GetRadWindow();  
                var picID = $get('<%= thisPicID.ClientID %>');  
                alert(picID.value);  
                oWnd.close(picID.value);  
            }  
 

and the alert shows that the correct argument is being passed to the oWnd.close statement. The window closes correctly.

Is this a limitation of the version I am using? Is there any other way to return an argument from the RadWindow?

Andy
Svetlina Anati
Telerik team
 answered on 20 Aug 2009
1 answer
433 views
hi,

I am using radgrid with followin properties.


 

<ccRad:AppGrid ID="gridVoice" runat="server" Skin="Alg" Width="100%" EnableEmbeddedSkins="False"

 

 

GridLines="None" ShowHeader="True" HeaderStyle-Height="29" HeaderStyle-VerticalAlign="Middle"

 

 

ToolBarId="toolBarVoice" OnNeedDataSource="gridVoice_NeedDataSource" AutoGenerateColumns="false"

 

 

ViewColumns="true" ViewColumnDoPostback="true" OnPreRender="gridVoice_PreRender"

 

 

EnableLinqExpressions="true">

I filtered one of the columns. Then I reordered the column. in reorder event I rebind the grid as follows.

 

void

 

AppGrid_ColumnsReorder(object source, GridColumnsReorderEventArgs e)

 

{

 

this.DataBind();
}

here I am getting following exception.

 

An unexpected error occurred during the processing of your request.

Possible causes for this could be:

  - You might have entered unsupported characters like "<", or invalid data on the page. Kindly check the input and try again.

  - The requested feature might not be supported or valid.

 

You can contact your administrator for further assistance.

 

Error: Expression expected

Source: Telerik.Web.UI -    at Telerik.Web.UI.ExpressionParser.ParsePrimaryStart()

   at Telerik.Web.UI.ExpressionParser.ParsePrimary()

   at Telerik.Web.UI.ExpressionParser.ParseUnary()

   at Telerik.Web.UI.ExpressionParser.ParseMultiplicative()

   at Telerik.Web.UI.ExpressionParser.ParseAdditive()

   at Telerik.Web.UI.ExpressionParser.ParseComparison()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalAnd()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalOr()

   at Telerik.Web.UI.ExpressionParser.ParseExpression()

   at Telerik.Web.UI.ExpressionParser.ParseParenExpression()

   at Telerik.Web.UI.ExpressionParser.ParsePrimaryStart()

   at Telerik.Web.UI.ExpressionParser.ParsePrimary()

   at Telerik.Web.UI.ExpressionParser.ParseUnary()

   at Telerik.Web.UI.ExpressionParser.ParseMultiplicative()

   at Telerik.Web.UI.ExpressionParser.ParseAdditive()

   at Telerik.Web.UI.ExpressionParser.ParseComparison()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalAnd()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalOr()

   at Telerik.Web.UI.ExpressionParser.ParseExpression()

   at Telerik.Web.UI.ExpressionParser.Parse(Type resultType)

   at Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values)

   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()

   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()

   at Telerik.Web.UI.GridResolveEnumerable.Initialize()

   at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()

   at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()

   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)

   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)

   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)

   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)

   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()

   at Telerik.Web.UI.GridTableView.PerformSelect()

   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()

   at Telerik.Web.UI.GridTableView.DataBind()

   at Telerik.Web.UI.RadGrid.DataBind()

   at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)

   at Telerik.Web.UI.RadGrid.Rebind()

   at Allegiance.Efm.WebApp.Controls.Voice.Inbox.gridVoice_PreRender(Object sender, EventArgs e) in D:\Allegiance\Development\Source\EFM\WebApp\Controls\Voice\Inbox.ascx.cs:line 1997

   at System.Web.UI.Control.OnPreRender(EventArgs e)

   at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadGrid.OnPreRender(EventArgs e)

   at Allegiance.Efm.WebApp.Controls.Rad.AppGrid.OnPreRender(EventArgs e) in D:\Allegiance\Development\Source\EFM\WebApp\Controls\Rad\AppGrid.cs:line 584

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
Please help me to resolve this issue.

Mira
Telerik team
 answered on 20 Aug 2009
1 answer
130 views
Hello,

I have a question regarding persistence of a tab that's dynamically added to a radTabStrip contained in a master page.

  • I have a masterPage (master1.master) that contains a radTabStrip control (masterTabStrip).  masterTabStrip contains a single tab created at design time: text is "Home", navigateURL is "Home.aspx"
  • I have an aspx page (Home.aspx) that uses master1.master.
  • On Home.aspx's page_load event, I check if IsPostBack == false.  If it is false a new tab is dynamically added to masterTabStrip with text "Page2" and navigateURL is "Page2.aspx".
  • Page2.aspx also uses master1.master.
  • On Home.aspx there's a button that causes a postback where a redirect to Page2.aspx is done.
  • Page2.aspx loads with only the "Home" tab visible.  There is no "Page2" tab.

Why is the "Page2" tab gone?  Is there a property that can be set to enable masterTabStrip to maintain state between different aspx pages?

Thanks,
David

Paul
Telerik team
 answered on 20 Aug 2009
1 answer
281 views
Hello

When I upload a document I want the page to be "greyed-out" and the progress area to display on top so they can't move away from the page.
I have read and tried your the article here http://www.telerik.com/support/kb/aspnet-ajax/window/using-radupload-progress-area-in-radwindow.aspx "Using RadUpload Progress area in RadWindow" but it won't work for me as I have a user control on the page that automatically posts back every so often and this causes the radwindow to display each time it posts back.

I decided to try and use the progress template and have almost acheived what I am trying to do by using the following:

       <telerik:RadProgressArea Visible="true" ID="radProgressArea" runat="server" DisplayCancelButton="true" style="background-color:Gray; filter: alpha(opacity=60);   
                    opacity:0.60; position:absolute; z-index:1000; top:0; left:0; width:100%; height:100%;"> 
            <ProgressTemplate> 
                <div id="ProgressDiv" style="background-color:Gray; filter: alpha(opacity=60);   
                    opacity:0.60; position:absolute; z-index:1000; top:0; left:0; width:100%; height:100%;"> 
                 </div>   
                 <div style="border-width:1px; border-color:Black; width:500px; z-index:1001; height:400px; top:50px; left:50px;   
                     background-color:White; position:absolute;"> 
                    <ul> 
                        <li> 
                        <h6>TotalProgressBar:</h6> 
                        <div style="position: relative; height: 168px; width: 168px;">  
                            <div id="PrimaryProgressBarInnerDiv" runat="server" style="background-color: Blue;  
                                height: 0%; width: 168px; vertical-align: bottom; position: absolute; top: 0;  
                                left: 0; z-index: 900;"> 
                            </div> 
                       </div> 
                    </li> 
                    <li><strong>TotalProgress:</strong> <span runat="server" id="PrimaryValue"></span></li>  
                    <li><strong>TotalProgressPercent:</strong> <span runat="server" id="PrimaryPercent"></span></li>  
                    <li><strong>FilesCount:</strong> <span runat="server" id="SecondaryValue"></span></li>  
                    <li><strong>FilesCountPercent:</strong> <span runat="server" id="SecondaryPercent"></span></li>  
                    <li><strong>RequestSize:</strong> <span runat="server" id="PrimaryTotal"></span></li>  
                    <li><strong>SelectedFilesCount:</strong> <span runat="server" id="SecondaryTotal"></span></li>  
                    <li><strong>CurrentFileName:</strong> <span runat="server" id="CurrentOperation"></span></li>  
                    <li><strong>TimeElapsed:</strong> <span runat="server" id="TimeElapsed"></span></li>  
                    <li><strong>TimeEstimated:</strong> <span runat="server" id="TimeEstimated"></span></li>  
                    <li><strong>TransferSpeed:</strong> <span runat="server" id="Speed"></span></li>  
                </ul> 
           
 
                 </div> 
            </ProgressTemplate>   
        </telerik:RadProgressArea> 

Although this greys out my page I cannot work out how to get the two progress bars as in the original rad progress area to display.

My second attempt was just apply a style to the progress area as so:

   <telerik:RadProgressArea Visible="true" ID="radProgressArea" runat="server" DisplayCancelButton="true"   
          style="background-color:Gray; position:absolute; z-index:1000; top:0;   
              left:0; width:100%; height:100%;"> 
              
        </telerik:RadProgressArea> 

This is more like what I want to acheive, but I need the grey background opacity to be set but the actual progress area to be solid.

So my Question is, how do I display the progress bars in a progresstemplate, or how can I set the opacity of the background of the progress area, whilst still having the progress area it's self solid?

Thanks

Paul Clark
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
163 views
I have the next User Control

ascx File:
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"   
    Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>   
   
<Telerik:RadEditor runat="server" ID="TestEditor" Skin="Vista"    
                EditModes="Design" Height="200px" Width="100%" EnableResize="False">   
                <Tools>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="Bold" />   
                        <Telerik:EditorTool Name="Underline" />   
                        <Telerik:EditorTool Name="Italic" />   
                        <Telerik:EditorTool Name="StrikeThrough" />   
                    </Telerik:EditorToolGroup>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="FontName" />   
                        <Telerik:EditorTool Name="FontSize" />   
                        <Telerik:EditorTool Name="ForeColor" />   
                        <Telerik:EditorTool Name="BackColor" />   
                    </Telerik:EditorToolGroup>   
                </Tools>   
<Content>   
</Content>   
            </Telerik:RadEditor>   
    <asp:Button runat="server" ID="btnRadEditorContent" Text="Set RadEditor Content" onclick="btnRadEditorContent_Click" />   
<Telerik:RadAjaxManager runat="server" ID="TestAjaxManager">   
    <AjaxSettings>   
        <Telerik:AjaxSetting AjaxControlID="btnRadEditorContent">   
            <UpdatedControls>   
                <Telerik:AjaxUpdatedControl ControlID="TestEditor" />   
            </UpdatedControls>   
        </Telerik:AjaxSetting>   
    </AjaxSettings>   
</Telerik:RadAjaxManager> 

ascx.cs File:
protected void btnRadEditorContent_Click(object sender, EventArgs e)  
{  
    TestEditor.Content = "This needs to change";  
}  

But when I click the "btnRadEditorContent" button, the RadEditor is not updating the content, It's removing all the toolbars and showing one blank box where I cannot write. Is there another extra step that I'm not doing?.

When I'm not using the AjaxManager, the content is set correctly.

Thanks for your support.


Svetlina Anati
Telerik team
 answered on 20 Aug 2009
1 answer
139 views
as per the example i have a menu on a panel bar but my panelbar is set to fully expanded ...


so my menu sits at the top of the panel bar ... i want the rest of the panel to have the same back color as the mneu so with a bit of css
<style type="text/css">     
        .RadPanelBar .rpLevel1 .rpFirst     
        {     
            padding-top: 0 !important;     
            padding-bottom: 0 !important;     
            height: 100% !important;     
        }     
        .RadPanelBar .rpGroup .rpLink,     
        .RadPanelBar .rpGroup .rpTemplate     
        {     
            height: 100% !important;     
        }     
    </style> 

i increase the size of the panel then put a div round the menu with the backcolor set.

unfortunately my css affects allthe panel items and ruins the display of all the other items ...


any ideas of how to just affect the one panelbar my menu sits on


thanks
kevin
Paul
Telerik team
 answered on 20 Aug 2009
6 answers
344 views
Hi

I am trying to populate a RadComboBox with a web service and am receiving the following serialization error:

System.InvalidOperationException Occurred.
*********************************************
Message: Unable to handle request.
Data:
TargetSite: System.Web.Services.Protocols.ServerProtocol Create(System.Type, System.Web.HttpContext, System.Web.HttpRequest, System.Web.HttpResponse, Boolean ByRef)
HelpLink: NULL
Source: System.Web.Services

StackTrace Information
*********************************************
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)

2) Exception Information
*********************************************
Exception Type: System.InvalidOperationException
Message: Method SearchService.GetSearch can not be reflected.
Data:
TargetSite: System.Web.Services.Protocols.SoapReflectedMethod ReflectMethod(System.Web.Services.Protocols.LogicalMethodInfo, Boolean, System.Xml.Serialization.XmlReflectionImporter, System.Xml.Serialization.SoapReflectionImporter, System.String)
HelpLink: NULL
Source: System.Web.Services

StackTrace Information
*********************************************
at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs)
at System.Web.Services.Description.SoapProtocolReflector.ReflectMethod()
at System.Web.Services.Description.ProtocolReflector.ReflectBinding(ReflectedBinding reflectedBinding)
at System.Web.Services.Description.ProtocolReflector.Reflect()
at System.Web.Services.Description.ServiceDescriptionReflector.ReflectInternal(ProtocolReflector[] reflectors)
at System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type type, String url)
at System.Web.Services.Protocols.DocumentationServerType..ctor(Type type, String uri)
at System.Web.Services.Protocols.DocumentationServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

3) Exception Information
*********************************************
Exception Type: System.InvalidOperationException
Message: There was an error reflecting 'GetSearchResult'.
Data:
TargetSite: System.Xml.Serialization.MembersMapping ImportMembersMapping(System.Xml.Serialization.XmlReflectionMember[], System.String, Boolean, Boolean, Boolean, System.Xml.Serialization.RecursionLimiter)
HelpLink: NULL
Source: System.Xml

StackTrace Information
*********************************************
at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access)
at System.Web.Services.Protocols.SoapReflector.ImportMembersMapping(XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, Boolean serviceDefaultIsEncoded, Boolean rpc, SoapBindingUse use, SoapParameterStyle paramStyle, String elementName, String elementNamespace, Boolean nsIsDefault, XmlReflectionMember[] members, Boolean validate, Boolean openModel, String key, Boolean writeAccess)
at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs)

4) Exception Information
*********************************************
Exception Type: System.InvalidOperationException
Message: There was an error reflecting type 'Telerik.Web.UI.RadComboBoxItemData'.
Data:
TargetSite: System.Xml.Serialization.TypeMapping ImportTypeMapping(System.Xml.Serialization.TypeModel, System.String, ImportContext, System.String, System.Xml.Serialization.XmlAttributes, Boolean, Boolean, System.Xml.Serialization.RecursionLimiter)
HelpLink: NULL
Source: System.Xml

StackTrace Information
*********************************************
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.CreateArrayElementsFromAttributes(ArrayMapping arrayMapping, XmlArrayItemAttributes attributes, Type arrayElementType, String arrayElementNs, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportArrayLikeMapping(ArrayModel model, String ns, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlReflectionMember xmlReflectionMember, String ns, XmlReflectionMember[] xmlReflectionMembers, Boolean rpc, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter)

5) Exception Information
*********************************************
Exception Type: System.InvalidOperationException
Message: Cannot serialize member 'Telerik.Web.UI.ControlItemData.Attributes' of type 'System.Collections.Generic.IDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]', see inner exception for more details.
Data:
TargetSite: Void CheckSupportedMember(System.Xml.Serialization.TypeDesc, System.Reflection.MemberInfo, System.Type)
HelpLink: NULL
Source: System.Xml

StackTrace Information
*********************************************
at System.Xml.Serialization.StructModel.CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type)
at System.Xml.Serialization.StructModel.GetPropertyModel(PropertyInfo propertyInfo)
at System.Xml.Serialization.StructModel.GetFieldModel(MemberInfo memberInfo)
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)

6) Exception Information
*********************************************
Exception Type: System.NotSupportedException
Message: Cannot serialize member Telerik.Web.UI.ControlItemData.Attributes of type System.Collections.Generic.IDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] because it is an interface.
Data:
TargetSite: NULL
HelpLink: NULL
Source: NULL

The web service method trys to return an array of 

RadComboBoxItemData


Any help or insight would be appreciated.
DW Web Team Member
Top achievements
Rank 2
 answered on 20 Aug 2009
7 answers
262 views
Is there a a way to display a second "Waiting" animation on the page at the same time during the standard Rad animation displayed as an overlay during postback events?

We have a RadGrid attatched to a database with a variety of additional controls on the page for filtering results (dropdowns listing out departments, etc. that when selected will trim down the list of returned results displayed in the grid).

When choosing an item in one of the dropdowns to filter the results, the grid fades out and has an overlay of the spinning circle animation briefly, then comes back with the returned results (all normal and as expected).

What I'd like to be able to do, is during the animation that is displayed, display a second animation somewhere else on the same page that occurs at the same time.

So far in testing, I've only been able to fire off the second animation after the postback occurs - the grid fades, spinning circle animation occurs, grid fades back in and displays results, then the second animation fires off.

Is there a way to have the secondary animation occur at the same time as the first one?

Thoughts?

Thanks in advance for any assistance offered,

- Dessie
Dimo
Telerik team
 answered on 20 Aug 2009
1 answer
268 views
I am having a radgrid. It is having one templatecolumn .
 I assigned a uniquename for that gridtemplate column.
I am having a button outside the grid
On clientclick of that button I am accessing all the rows of the grid.
I could able to read all the rows but in the cellID.innerHTML I am getting 

"<INPUT class=inputsNoExpression id=ctl00_Cont_gvWorkingHours_New_ctl01_ctl04_txtSlotName value=Sree name=ctl00$Cont$gvWorkingHours_New$ctl01$ctl04$txtSlotName> "

My value is Sree
How to get that?

If that column is a bound column then I could able to get the value of the cell by cellId.InnerHTML
but here it is a template column and my unique name was set to that.

Please give the code snippet for accessing the gridtemplate cell value.

My Code:



<asp:Content ID="content" runat="server" ContentPlaceHolderID="Cont">
 
            function AddSlot_New()
            {
                debugger;
                var grid = window["<%= gvWorkingHours_New.ClientID %>"];
         
                 for (var i = 0; i < grid.MasterTableView.Rows.length; i++)  
                 {  
                     var row   = grid.MasterTableView.Rows[i]; 
                     var cellID = grid.MasterTableView.GetCellByColumnUniqueName(row, "txtSlotName");    
                     alert(cellID.innerHTML);
                  }

            }

<rad:RadGrid ID="gvWorkingHours_New" runat="server" Skin="Default" AutoGenerateColumns="false"
             OnNeedDataSource="gvWorkingHours_New_NeedDataSource"  OnItemDeleted="gvWorkingHours_New_ItemDeleted">
               <ClientSettings>
                <Selecting AllowRowSelect="true" />
               </ClientSettings>
                <MasterTableView>
              
                    <Columns>
                   
                        <rad:GridTemplateColumn UniqueName="txtSlotName">
                            <ItemTemplate>
                                <asp:TextBox runat="server" ID="txtSlotName" CssClass="inputsNoExpression" Text='<%# Bind("SlotName") %>'></asp:TextBox>
                            </ItemTemplate>
                        </rad:GridTemplateColumn>

</Columns>
                </MasterTableView>
            </rad:RadGrid>
         
       <asp:Button ID="LinkButton1" runat="server" width="97px" CssClass="sf-inputsLinkButton" OnClientClick="return AddSlot_New()" OnClick="LinkButton1_Click"/>
      

 </asp:Content>


Regards
Sreedhar Ambati

Martin
Telerik team
 answered on 20 Aug 2009
1 answer
78 views
Hi,

I have some css files in App_Themes. When i want to use RadUpload control. These css files override to RadUpload style..

How can i disable my css files from RAD Controls..

Thx.
Dimo
Telerik team
 answered on 20 Aug 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?