Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
256 views


        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1" GridLines="None" 
            Skin="Office2007" BorderStyle="Solid" BorderWidth="1pt">  
            <MasterTableView DataSourceID="ObjectDataSource1" AutoGenerateColumns="false" DataKeyNames="Datastore:ResultSummaryId">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Datastore:ResultSummaryId" HeaderText="ID" HeaderStyle-Width="75pt">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SummaryName" HeaderText="Name">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="AttemptRate Variations" HeaderText="Variation Attempt Rate" 
                        DataFormatString="{0:P}" HeaderStyle-Width="75pt" HeaderStyle-HorizontalAlign="Center" 
                        ItemStyle-HorizontalAlign="Right">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="PassRate Variations" HeaderText="Variation Pass Rate" 
                        DataFormatString="{0:P}" HeaderStyle-Width="75pt" HeaderStyle-HorizontalAlign="Center" 
                        ItemStyle-HorizontalAlign="Right">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="AttemptRate Results" HeaderText="Result Attempt Rate" 
                        DataFormatString="{0:P}" HeaderStyle-Width="75pt" HeaderStyle-HorizontalAlign="Center" 
                        ItemStyle-HorizontalAlign="Right">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="PassRate Results" HeaderText="Result Pass Rate" 
                        DataFormatString="{0:P}" HeaderStyle-Width="75pt" HeaderStyle-HorizontalAlign="Center" 
                        ItemStyle-HorizontalAlign="Right">  
                    </telerik:GridBoundColumn> 
                </Columns> 
                <DetailTables> 
                    <telerik:GridTableView DataSourceID="ObjectDataSource2" runat="server" 
                        AutoGenerateColumns="true">  
                        <ParentTableRelation> 
                            <telerik:GridRelationFields DetailKeyField="Datastore:ResultSummaryId" MasterKeyField="Datastore:ResultSummaryId" /> 
                        </ParentTableRelation> 
                    </telerik:GridTableView> 
                </DetailTables> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True">  
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
        </telerik:RadGrid> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetTestPassSummaryByResultSummaryTo" 
            TypeName="ScratchWebApplication.ServiceReference1.AtlasReportingServiceClient">  
            <SelectParameters> 
                <asp:QueryStringParameter DefaultValue="WIN_CLIENT_UA:347184,WIN_CLIENT_UA:347194,WIN_CLIENT_UA:347845,WIN_CLIENT_UA:347866,WIN_CLIENT_UA:350235,WIN_CLIENT_UA:350237,WIN_CLIENT_UA:351070,WIN_CLIENT_UA:351082,WIN_CLIENT_UA:351098" 
                    Name="dataStoreRCIdCombos" QueryStringField="rc" Type="String" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetTestPassSummaryByResultSummaryTo" 
            TypeName="ScratchWebApplication.ServiceReference1.AtlasReportingServiceClient">  
            <SelectParameters> 
                <asp:SessionParameter SessionField="Datastore:ResultSummaryId" Name="dataStoreRCIdCombos" Type="String" DefaultValue="" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 

Pretty simple - I want to show rows in the master table that have only a few columns from the dataset, and if the user expands a row they can see all the columns from that same dataset for that row.  I'd like to know if this is possible without writing code-behind.  The ObjectDataSources come from a WCF service reference.  I was under the impression from something I read that the RadGrid adds thte DataKey/Value to the session state, which can then be dereferenced by the second ObjectDataSource.  Doesn't seem like that's the case.

Any ideas?

Thanks
Sal
Top achievements
Rank 1
 answered on 08 Aug 2011
1 answer
165 views
Had install the RadFormDecorator for ASP.NET AJAX version 2011.2 712(Jul 13, 2011), seems installed correctly.
When I am trying to create the C# RadControl web Application using VS2010, seems to get this error which I am unable to found solutions for it both here and google. Error as below,

Error executing custom action
Telerik.Web.UI.VSX.Actions.CopyResourcesAction: Attemped to access a path that is not on the disk.

Please help, thanks in advance.

Punprom.
Teodor
Telerik team
 answered on 08 Aug 2011
1 answer
119 views
want to know if this control works only in .net version 4.0? or it works in 3.5 as well..

am trying to use this from long time but am unsuccessful..

I want to use this multi file upload in 3.5 .net framework.. is this possible? or i need to point to 4.0 .net framework compulsorily coz am getting

Assembly 'Telerik.Web.UI, Version=2010.3.1317.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'        


pls help

thanks
Pramodh
Helen
Telerik team
 answered on 08 Aug 2011
3 answers
137 views
Hello

My RadAsyncUpload works normally when the page is access directly. But when the page is under a RadWindow then the RadAsyncUpload failed to filter file extensions.

I've tried on IE and Chrome, and the same results.

Here's my code snippet for RadAsyncUpload:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AutoAddFileInputs="False" onfileuploaded="RadAsyncUpload1_FileUploaded" TargetFolder="~/Central/Images/" AllowedMimeTypes="jpg, jpeg, bmp, png">
  <FileFilters>
     <telerik:FileFilter Description="Images (jpg, jpeg, bmp, png)" Extensions="jpg, jpeg, bmp, png" />
  </FileFilters>
</telerik:RadAsyncUpload>

I hope this can be fixed... not a bug.

Can somebody help me.

Thanks in advance
Thanh Dang
Peter Filipov
Telerik team
 answered on 08 Aug 2011
3 answers
161 views
I know that there is a RadTreeList client-side command for rebinding called RebindTreeList as well as the Rebind() server-side method.  It would be very nice to also have these features for for the RadTreeView.  And, while I am thinking about it, it would also be nice to have a NodeRemoved or NodeDeleted server-side event for the RadTreeView.
Nikolay Tsenkov
Telerik team
 answered on 08 Aug 2011
1 answer
106 views
I am using the FormDecorator control throughout my site, and it works great.

But on one page I have a AjaxControlToolkit.HTMLEditor control.  The FormDecorator is preventing the buttons on the HTMLEditor 
toolbar from working.  Using the properties:
DecorationZoneID
DecoratedControls
ControlsToSkip
to prevent the HTMLEditor  from being Decorated doesn't make any difference. The only workaround I can find is to make the FormDecorator control invisible - which stops the entire page from being Decorated and so looks odd in an otherwise Decorated website.

Is there another solution?
Niko
Telerik team
 answered on 08 Aug 2011
1 answer
169 views

 

 

I used the following code at radgrid_ItemCreated to update radgrid detail table header text. I need to use HierarchyLoadMode="ServerBind".  I need to sort the detail table.

 

 

 

But as long as the header text programly changed in the Rradgrid_ItemCreated, the sort function doesen't work any more.

 

 

 

if

 

 

((e.Item is GridHeaderItem) && (e.Item.OwnerTableView.Name == "Detail"))

 

{

 

 

GridHeaderItem header = (GridHeaderItem)e.Item;

 

 

 

header["FileName"].Text = "My new translated header text";
}

 

Sebastian
Telerik team
 answered on 08 Aug 2011
3 answers
410 views
Hi Telerik,

I am using the Telerik 2009.3 version and in specific I am facing an issue with the RadEditor control. The control is used in the page for sending mail to the users. The user can enter the mail text inside the RadEditor. We have few templates defined in the database upon selecting one of them the template content will be loaded in the RadEditor and the User will be able to modify few lines over there. Till this it works fine. The template content stored in the database is full html content which will be sent as mail to the user. In the templates we would like to restrict the user from being able to modify some content and allow him to only modify few sections in the content. So we have various <p> tags to define sections and I have ContentEditable="false" and Unselectable="on" on the <p> tags wherever we want to restrict the User from being able to edit that section. But this does not work in all cases. The user can still be able to delete or edit the content which is inside the <p>  tag which has ContentEditable="false" and Unselectable="on" attributes on it. The User will not able to select these tags directly when focus is inside the RadEditor but when the focus is outside the control and if the user clicks on these elements using mouse then it will be selectible and he can delete it or modify its contents. Ultimately the User will be able to modify the sections which is marked as ContentEditable="false" and Unselectable="on" which we don't want to allow to the user. I am attaching the sample HTML that we are loading inside the RadEditor you can try with this sample and let me know what is missing. I tried using <div><span> and even tried  ContentEditable="false" and Unselectable="on" on the <td> attributes but nothings seems working for me.

Below is the HTML code:
<!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>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title></title>
 </head>
 <body style="margin: 0; background: url($ImageURL$/background.jpg)" contentEditable="false" unselectable="on"> 
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" style="background: #fff; border: 1px solid #D8D8DA; margin-top: 10px; font-family: Helvetica, Arial, sans-serif; font-size:12px; color: #333; ">
   <tr> 
    <td style="padding: 30px 30px 20px 30px;">     
      $Content$<br/>
      $Signature$ 
    </td>
   </tr>
   <tr>
    <td><p style="padding: 0px 30px 20px 30px;" contenteditable="false" unselectable="on"><img src="$ImageURL$/line.png" alt="line" border="0" /></p></td>
   </tr>
   <tr>
    <td align="right">
     <p style="padding-right:30px;" contenteditable="false" unselectable="on">
      <a target="_blank" href="http://www.google.com">
       <img src="$ImageURL$/logo-vaf.png" alt="GOOGLE" border="0" />
      </a>     
     </p>     
    </td>
   </tr>
   <tr>
    <td><p contenteditable="false" unselectable="on" style="height: 30px; line-height: 30px; font-size: 1px;">&nbsp;</p></td>
   </tr>
  </table>  
  <table width="" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
    <td><p contenteditable="false" unselectable="on"><img src="$ImageURL$/shadow.png" alt="Volt" border="0" /></p></td>
   </tr>
  </table>
  <table width="" border="0" align="center">
   <tr>
    <td width="450">
     <p style="color: #666666; font-size: 10px; font-family: Helvetica, Arial, sans-serif;" contenteditable="false" unselectable="on">
     EOE | © $CurrentYear$ Company, Inc. All Rights Reserved.      
    </p>
    </td>
   </tr>
  </table>  
 </body>
</html>


Thanks in advance,
Ravi
Rumen
Telerik team
 answered on 08 Aug 2011
3 answers
138 views


How data can be exported in Hierarchical Manner in CSV from radgrid.

or any other way so that data can be exported to csv in hierarchical manner.

please reply soon.
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Aug 2011
3 answers
127 views
In trying to handle validation for both RADTextBoxes, and asp text boxes with input manager, I've run into a couple of problems.

The handler works with RADTextBox's, being called on the OnBlur event.  At that point the _invalid client property is set.

With the regular asp text boxes using input manager, the OnBlur (and others like error) handler defined in the input manager is called BEFORE the validation is performed on the text box, so that isValid() does not return the proper value.  Is there some other way to catch that?

The other issue, is that with the regular asp text boxes and input manager, it doesn't handle content pasted into the box.  That is I can paste an invalid value in that it won't let me type, and it won't catch it as invalid at all.
Pavlina
Telerik team
 answered on 08 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?