Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
95 views
In IE6: Open the rad editor, put in this html:

<h1>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div></div>
</div>
</div>
</div>
 Primary FRCA</div>
</div>
</div>
</div>
</div>
</div>
</h1>
<div> </div>
<div>See below for provisional timetable for primary teaching for CT1 and 2's in Anaesthesia in 2011. <br />
</div>
<div><br />
It has been our intention not to clash with Final fellowship teaching, as well as half term etc. Topics suggested are guides only to try and cover most of the syllabus and can be amended. </div>
<div><br />
<strong>Bristol School of Anaesthesia - Provisional Timetable for Primary Teaching for CT1 and 2's in Anaesthesia in 2011</strong></div>
<div>
<table cellspacing="0" cellpadding="0" border="1">
    <tbody>
    </tbody>
</table>
</div>
<div><br />
<p style="text-align: center;"> </p>
<table bordercolor="#a0a0a0" cellspacing="0" cellpadding="0" border="1">
    <tbody>
        <tr>
            <td>
            <p><strong>2011</strong></p>
            </td>
            <td valign="top">
            <p><strong>Venue</strong></p>
            </td>
            <td valign="top">
            <p><strong>Topic</strong></p>
            </td>
        </tr>
        <tr>
            <td valign="top"> Jan 21st <br />
            </td>
            <td valign="top"> Southmead</td>
            <td valign="top">Pharmacology - ideal agents, anaesthetic agents -<br />
            pharmacology, infection control <br />
            </td>
        </tr>
        <tr>
            <td valign="top"> Feb 18th<br />
            </td>
            <td valign="top">Gloucester <br />
            </td>
            <td valign="top">Intensive care, shock, vasoactive agents, antibiotic pharmacology, infection control<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> March 18th<br />
            </td>
            <td valign="top">Bristol Simulation Centre <br />
            </td>
            <td valign="top">Novice Anaesthesia Course<br />
            Please book your place with Julie Flowers <br />
            <br />
            </td>
        </tr>
        <tr>
            <td valign="top">March 24th<br />
            Note <strong>Thursday</strong><br />
            </td>
            <td valign="top"> Swindon</td>
            <td valign="top">Regional anaesthesia, anatomy, local anaesthesia, post<br />
            operative pain relief <br />
            </td>
        </tr>
        <tr>
            <td valign="top"> April 1st<br />
            </td>
            <td valign="top">Cheltenham <br />
            </td>
            <td valign="top">Respiratory physiology and pharmacology and assessment <br />
            <br />
            </td>
        </tr>
        <tr>
            <td valign="top"> April 29th<br />
            </td>
            <td valign="top">RUH <br />
            </td>
            <td valign="top">Cardiovascular physiology and pharmacology and assessment</td>
        </tr>
        <tr>
            <td valign="top"> May 6th<br />
            </td>
            <td valign="top">Bristol Simulation Centre<br />
            </td>
            <td valign="top">Primary OSCE course<br />
            (not part of core teaching, please book (£70) through the Bristol Medical Simulation Centre).<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> May 13th <br />
            </td>
            <td valign="top">Swindon<br />
            </td>
            <td valign="top">Anaesthesia for Elderly, obese, emergencies and eyes<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> June 17th<br />
            </td>
            <td valign="top">Gloucester <br />
            </td>
            <td valign="top">Obstetric and Paediatric anaesthesia .<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> June 24th<br />
            </td>
            <td valign="top">Southmead<br />
            </td>
            <td valign="top">Renal Physiology, Haemoglobin and Oxygen Transport, fluid therapy.<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> Sept 9th<br />
            </td>
            <td valign="top">RUH<br />
            </td>
            <td valign="top">Pre operative assessment and pre medication, critical incidents, management of the difficult airway<br />
            </td>
        </tr>
        <tr>
            <td valign="top"> Oct 7th<br />
            </td>
            <td valign="top">Weston-Super-Mare <br />
            </td>
            <td valign="top">Immunology, hepatic physiology and pharmacology, gut and metabolism, endocrinology <br />
            </td>
        </tr>
        <tr>
            <td valign="top">Nov 4th <br />
            </td>
            <td valign="top">Cheltenham <br />
            </td>
            <td valign="top">Physics (gases and vapours), electrical safety, clinical measurements and equipment <br />
            </td>
        </tr>
        <tr>
            <td valign="top"> December 2nd<br />
            </td>
            <td valign="top">Frenchay<br />
            </td>
            <td valign="top">Pain medicine, nerve and muscle physiology and pharmacology<br />
            </td>
        </tr>
    </tbody>
</table>
<style id="telerik-reTable-1" type="text/css">
    .telerik-reTable-1 {
    BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse
    }
    .telerik-reTable-1 TR.telerik-reTableHeaderRow-1 {
    PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND: #d6e8ff; PADDING-BOTTOM: 10px; MARGIN: 10px; VERTICAL-ALIGN: top; TEXT-TRANSFORM: capitalize; COLOR: #3f4d6b; LINE-HEIGHT: 14pt; PADDING-TOP: 10px; FONT-STYLE: normal; FONT-FAMILY: Tahoma; TEXT-ALIGN: left; border-spacing: 10px
    }
    .telerik-reTable-1 TD.telerik-reTableHeaderFirstCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; COLOR: #3a4663; LINE-HEIGHT: 14pt; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableHeaderLastCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; COLOR: #3a4663; LINE-HEIGHT: 14pt; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableHeaderOddCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; COLOR: #3a4663; LINE-HEIGHT: 14pt; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableHeaderEvenCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; COLOR: #3a4663; LINE-HEIGHT: 14pt; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TR.telerik-reTableOddRow-1 {
    FONT-SIZE: 10pt; VERTICAL-ALIGN: top; COLOR: #666666; BACKGROUND-COLOR: #f2f3f4
    }
    .telerik-reTable-1 TR.telerik-reTableEvenRow-1 {
    FONT-SIZE: 10pt; VERTICAL-ALIGN: top; COLOR: #666666; BACKGROUND-COLOR: #e7ebf7
    }
    .telerik-reTable-1 TD.telerik-reTableFirstCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableLastCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableOddCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TD.telerik-reTableEvenCol-1 {
    PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in
    }
    .telerik-reTable-1 TR.telerik-reTableFooterRow-1 {
    FONT-WEIGHT: 500; FONT-SIZE: 10pt; COLOR: #4a5a80; LINE-HEIGHT: 11pt; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #d6e8ff
    }
    .telerik-reTable-1 TD.telerik-reTableFooterFirstCol-1 {
    PADDING-RIGHT: 5.4pt; BORDER-TOP: gray 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in; TEXT-ALIGN: left
    }
    .telerik-reTable-1 TD.telerik-reTableFooterLastCol-1 {
    PADDING-RIGHT: 5.4pt; BORDER-TOP: gray 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in; TEXT-ALIGN: left
    }
    .telerik-reTable-1 TD.telerik-reTableFooterOddCol-1 {
    PADDING-RIGHT: 5.4pt; BORDER-TOP: gray 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in; TEXT-ALIGN: left
    }
    .telerik-reTable-1 TD.telerik-reTableFooterEvenCol-1 {
    PADDING-RIGHT: 5.4pt; BORDER-TOP: gray 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; PADDING-TOP: 0in; TEXT-ALIGN: left
    }
</style>
<p> </p>
<p> </p>
<p>I have chosen the dates to prevent clashing with Final FRCA teaching sessions, exams or holidays (as much as possible) and to maximise opportunities prior to exam dates.</p>
<p>I have mapped the topics in the newly revamped syllabus to the expertise in different hospitals and adjusted some of the content.  Weston-super-Mare is welcomed as a new teaching venue.<br />
<br />
I have included a couple of specific exam related BMSC courses but these are not funded as part of the teaching programme but are subsidised for Bristol trainees and are highly recommended.   </p>
<p>I am very keen to maximise the learning opportunities and would ask that the trainees are contacted (through Julie Flowers) 2 - 4 weeks in advance with a specific request to complete either on-line Anaesthetic e-learning modules or specific reading tasks, so that the session acts more like a workshop/tutorial and less like a lecture.<br />
<br />
</p>
<p>Please give Julie Flowers, School administrator, a copy of the day’s program and preparatory work list a month prior to your scheduled date so that she can place it on the website.  If you would like to alter the date or content of the teaching session, please could you let both Julie and me know as soon possible.<br />
<br />
Please could you take a register of the names of those trainees attending the teaching day and forward it to Julie Flowers.  Please could you also remind trainees that those who are released from clinical duties, yet do not attend, will have their names fed back to the College Tutor and will have a day of study leave docked and may need to answer to their Trust.</p>
<p>These sessions are an integral part of our school training programme and are key to maintaining our excellent exam results, thank you for your involvement. </p>
<p> </p>
<p>Robin Cooper</p>
<p>Anaesthetic Core Programme Director</p>
<p>School of Anaesthesia </p>
</div>
<div> </div>
<div>Julie Flowers email:
<div> </div>
 </div>

Save it, then re-edit it, and attempt to delete the first row of the table.

IE Crashes.

Causing a lot of problems for our customers, but we can't seem to find a reason for this?
n65uk
Top achievements
Rank 1
 answered on 18 Feb 2011
1 answer
470 views
hi

i want to findcontrol of a textbox in radgrid itemtemplate in button event

i have done this but getting an exception
protected void btnSave_Click(object sender, EventArgs e)
{
        Button btnSave = (Button)sender; 
        GridHeaderItem item1 = ((GridHeaderItem)(btnSave.NamingContainer)); 
        RadNumericTextBox txtQty = (RadNumericTextBox)item1.FindControl("txtQty"); 
        RadNumericTextBox txtAmount = (RadNumericTextBox)item1.FindControl("txtAmount"); 
        RadNumericTextBox txtlicenseFee = (RadNumericTextBox)item1.FindControl("txtlicensefee");
}

 

 

 

 

Shinu
Top achievements
Rank 2
 answered on 18 Feb 2011
2 answers
55 views
Hello,
   I want show a text in a column bound to a bool field, showing diferent text depending if the value is true or false. And also in a column bound to a int field, showing diferent text devending the value.

Can anyone help me?
thanks in advance.
Tajes
Top achievements
Rank 1
 answered on 18 Feb 2011
0 answers
55 views
Dear All,
I am getting problem when I want to update
country Radcombobox with Continent RadCombobox OnselectIndexChanged event
where I put RadCombobox AutoPostBack  property to true.

And Applied radajaxmanager with UpdateControl though its not updating partially

What might be the problem

plz assist me about this problem

Before that I was using following tactics but was not solved mine problem
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx


Thanks & Regard
Manoj Chavan
Exa India Pvt ltd
Manoj
Top achievements
Rank 1
 asked on 18 Feb 2011
1 answer
120 views
Hi all, I need to develop a progress bar in my web application which is in asp.net. This progress bar should see on screen while switching to new page of my application. (Because while switching to the another page , it tooks much time so user get confuse)

I have master page in which i have created diffrent menues.. like Audit,Manual,Update
on click of tht different menu, pages will get disply.

so i want to disply progressbar on click of those menus.

<tr id="trHR" runat="server" visible="false" colspan="0" style="border-bottom-color: Red;
                                  border-width: thin">
                                  <td colspan="0" align="center">
                                      <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                                          <tr>
                                           <td id="td23" valign="middle" align="center" style="width: 100px; height: 15px; background-image: url(./images/grey_bg.jpg);"
                                                  onmouseover="javascript:changecolor(this,'on');" onmouseout="javascript:changecolor(this,'off');">
                                                  <asp:HyperLink ID="HyperLink25" runat="server" CssClass="CSMenu" Text="Update" NavigateUrl="~/UpdateData.aspx" />
                                              </td>
                                              <td align="center" valign="middle" style="width: 1px; height: 25px">
                                                  <div style="display: inherit;">
                                                      <img src="images/line_vertical.jpg" border="0" alt="Line" height="25px" /></div>
                                              </td>
                                              <td colspan="0" id="td15" valign="middle" align="center" style="width: 100px; height: 15px;
                                                  background-image: url(./images/grey_bg.jpg);" onmouseover="javascript:changecolor(this,'on');"
                                                  onmouseout="javascript:changecolor(this,'off');">
                                                  <asp:HyperLink ID="HyperLink24" runat="server" CssClass="CSMenu" Text="Audit" NavigateUrl="~/Audit.aspx" />
                                              </td>
                                              <td id="td24" valign="middle" align="center" style="width: 100px; height: 15px; background-image: url(./images/grey_bg.jpg);">
                                              </td>
              <td id="td" valign="middle" align="center" style="width: 100px; height: 15px; background-image: url(./images/grey_bg.jpg);"
                                                  onmouseover="javascript:changecolor(this,'on');" onmouseout="javascript:changecolor(this,'off');">
                                                  <asp:HyperLink ID="HyperLink25" runat="server" CssClass="CSMenu" Text="Manual" NavigateUrl="~/Manual.aspx" />
                                              </td>
                                              <td align="center" valign="middle" style="width: 1px; height: 25px">
                                                  <div style="display: inherit;">
                                                      <img src="images/line_vertical.jpg" border="0" alt="Line" height="25px" /></div>
                                              </td>
                                          </tr>
                                      </table>
                                  </td>
                              </tr>


Tsvetina
Telerik team
 answered on 18 Feb 2011
1 answer
124 views
Given a RadEditor with the following HTML currently loaded:
<h1><a name="back-to-top"></a>Our Partners</h1>
<p>aspicer anchor link <a href="#aspicer">test</a></p>
<p>aspicer actual anchor <a name="aspicer">here</a></p>


If I copy from DESIGN MODE and paste into any html friendly app (word, visual studio, etc), then what I get out is the following:
<h1><a name="back-to-top"></a></h1>
<div>
<h1>Our Partners</h1>
<p>aspicer anchor link <a href="http://rd.myapp.com/EditorWindow.aspx?did=c178ea59-4252-4dc5-90c1-5c44f283c2bf&;dt=1&m=1&rwndrnd=0.4956730466801673#aspicer">test</a></p>
<p>aspicer actual anchor <a name="aspicer">here</a></p>
</div>
<p><a name="aspicer"></a></p>


Notice the link for the named anchor changed to be the URL of the current window that is open. 
This also occurs if I COPY and PASTE from the RadEditor to the same RadEditor. 
The editor should not be manipulating the content when I copy and paste from Design mode.

Using Chrome I get the full URL for the EditorWindow instead of just the anchor tag link.
Using Firefox it doesn't set the full URL, instead it just sets the path after the domain.  

NOTE: Copy and Paste within HTML mode works fine and it does NOT manipulate the links.

I would expect that if I have a link to an anchor such as "#myAnchor" then it will not be changed when coping that content and pasting it elsewhere.
Likewise if I have a link to an anchor on another page such as "http://cool.com/article.aspx#trees" then I would expect that to also not be manipulated.

This sounds like it may be a bug in the editor. Does anyone have any advice?
Rumen
Telerik team
 answered on 18 Feb 2011
14 answers
649 views
Hello,

I have a solution containing a master page with scriptmanager and RadAjaxManager.

According to your instructions i should place on the pages a scriptmanagerproxy and a radajaxmanagerproxy.


When calling radalert, radconfirm, radprompt there is a java exception "Object required" or Sys.invalidOperationException - Two components with the same ID 'alert' can't be added to the application.

A curious note is that if i remove the proxies and leave the scriptmanager and radajaxmanager on the master page the problem still persists.

If i place the radajaxmanager and scriptmanager into the page and remove them from the master page the error still occurs.

After carefull testing apparently radalert, etc don't work on master pages, it works however in standalone pages.


Currently I had to use Radwindow from radControls and not prometheus.


What am i doing wrong or what shoudl be done?
Svetlina Anati
Telerik team
 answered on 18 Feb 2011
4 answers
205 views

So, I have a scenario that I'm not sure how to handle.  We have some pages that have a huge amount of numeric textboxes on them and having them each as a  RadNumericTextBox just doesn't work very well.   So I looked to RadInputManager.   Problem is it seems that me that there is an issue when dealing with a container of controls, take a GridView for example.   I may have 20 rows each with 5 numeric boxes in them.   1 box may require 0 decimal places for integer, 2 boxes may require 2 decimal places for money and 2 boxes may require 3 decimal places for %.   Ideally I could create a RadInputManager outside of that repeater and specify different decimals for each box, but I'm pretty sure that can't be done, because the only input to the RadInputManager is a single ClientID, not an ability to specify the container and then the name inside that container.  Is that correct? 

So, my next thought is to try to create 3 RadInputManagers inside of the GridView .   That's 3 managers total.  But I don't think there's a way to do that either, at least in the .aspx page. 

So my next thought which I'm pretty sure would work, is inside of each Template Column (or where relevant), or maybe just the first column, create three managers that each define number of decimal places and then set the ids there.   While I imagine this would probably work, my question is would there be a big hit on performance creating 3 managers per row?  Could it be done better in a code behind?  Is there a better solution I haven't thought of?


An Example of this last idea with just 2 managers:

<GridView .....>

<asp:TemplateField>

<ItemTemplate>

<telerik:RadInputManager ID="RadInputManager2" runat="server">

<telerik:NumericTextBoxSetting DecimalDigits="2">

<TargetControls>

<telerik:TargetInput ControlID="SortOrder" />

</TargetControls>

</telerik:NumericTextBoxSetting>

</telerik:RadInputManager>

<asp:TextBox runat="server" ID="SortOrder" Text='<%#Eval("SortOrder") %>'></asp:TextBox>

</ItemTemplate>

</asp:TemplateField>

 

<asp:TemplateField
<ItemTemplate>
<telerik:RadInputManager ID="RadInputManager1" runat="server">
<telerik:NumericTextBoxSetting DecimalDigits="0">
<TargetControls>
<telerik:TargetInput ControlID="ItemAmount" />
<telerik:TargetInput ControlID="ItemAmountAdj" />
</TargetControls>
</telerik:NumericTextBoxSetting>
</telerik:RadInputManager>
<asp:TextBox runat="server" ID="ItemAmount" Text='<%#Eval("ItemAmount") %>'></asp:TextBox>
<asp:TextBox runat="server" ID="ItemAmountAdj" Text='<%#Eval("ItemAmountAdj") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>

</GridView>

Alex
Top achievements
Rank 1
 answered on 18 Feb 2011
1 answer
99 views
Hi.

I'd like to know how to get from the radtreelist, the dataitems that will be rendered after requesting a node expansion, and in which event it could be done.

I've tried the following code, but without success.

protected void TreeList_Load(object sender, EventArgs e)
{
     MyTreeList.DataSource = ws.GetSales(); 
     //This retrieves an array of objects which represent the sales of several stores,
     //their managers and their employees
  
     TreeListDataItemCollection rendered_items = MyTreeList.Items;
  
     object[] data = rendered_items.Select(s => s.DataItem).ToArray(); 
     //I thought this would get the DataBoundItems
     //in the treelist, but instead it gets an Array with null objects
  
     //Code for Exporting the desired data
}

By the way, getting the Items from "MyTreeList" in the OnLoad event, retrieves me the Items shown in the previous state of the control, not the ones that were recently asked for, so I don't know which event could work better. Could you help me?

Regards
Tsvetina
Telerik team
 answered on 18 Feb 2011
6 answers
333 views

I have problems to erase a register from a RADGRID, associated to a SessionDataSource, which I use temporarily, playing the role of a “recipient“ ( just insert and delete).

 

The code the .aspx for the SessionDataSource is as below:

<sds:SessionDataSource 
    DisplayWarning                  = "False"    
    PrimaryKeyFields                = "dp_key"
    ProviderName                    = "System.Data.SqlClient"
    ID                                          = "devis" 
    runat                                     = "server" 
    ConnectionString               = "<%$ ConnectionStrings:string_Connection %>" 
    ConflictDetection               = "CompareAllValues" 
    OldValuesParameterFormatString  = "original_{0}"
  
    SelectCommand="SELECT * FROM [devis] ORDER BY dp_key"
    DeleteCommand="DELETE   FROM [devis] WHERE [dp_key] = ?"
    InsertCommand="INSERT   INTO devis(dp_codeprd, dp_nombre, dp_convives, dp_prixs, dp_prixs_unitaire) VALUES (?, ?, ?, ?, ? )" 
    >
    <DeleteParameters>
        <asp:Parameter Name="original_dp_key"             Type="Int32"   />
    </DeleteParameters>
  
    <InsertParameters>
        <asp:Parameter Name="dp_codeprd"                   Type="String"   />
        <asp:Parameter Name="dp_nombre"                    Type="String"   />
        <asp:Parameter Name="dp_convives"                   Type="Int16"    />
        <asp:Parameter Name="dp_prixs"                          Type="Decimal"  />
        <asp:Parameter Name="dp_prixs_unitaire"           Type="Decimal"  />
    </InsertParameters>
  
</sds:SessionDataSource>

The code the .aspx for RadGrid is as below:

<telerik:RadGrid 
        ShowFooter              = "false"
        ID                      = "devis_prd" 
        runat                   = "server"
        DataSourceID            = "devis" 
        Width                   = "100%" 
        AllowPaging             = "True" 
        PageSize                = "10" 
        AllowSorting            = "false"
        GridLines               = "None"
           
        AllowAutomaticDeletes   = "True" 
        AllowAutomaticInserts   = "True"
        AllowAutomaticUpdates   = "True" 
        onitemdatabound         = "devis_prd_ItemDataBound" 
    >
    <HeaderContextMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </HeaderContextMenu>
    <MasterTableView 
        AutoGenerateColumns="False" 
        CommandItemDisplay="None" 
        CurrentResetPageIndexAction="SetPageIndexToFirst" 
        DataKeyNames="dp_key, dp_codeprd, dp_nombre, dp_convives, dp_prixs, dp_prixs_unitaire" 
        HorizontalAlign="NotSet" Name="devis_prd" 
        NoDetailRecordsText="Aucun produit sélectionné !" 
        NoMasterRecordsText="Votre devis est vide !" Width="100%">
        <Columns>
            <telerik:GridBoundColumn DataField="dp_key" DataType="System.Int32" 
                HeaderText="Id " ReadOnly="True" SortExpression="dp_key" UniqueName="dp_key" 
                Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dp_CodePrd" 
                DataFormatString="{0:LLL-LL-000}" DataType="System.String" 
                HeaderText="Code Produit" UniqueName="dp_CodePrd">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dp_nombre" DataType="System.String" 
                HeaderText="Nom du Produit" SortExpression="dp_nombre" UniqueName="dp_nombre">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dp_convives" DataType="System.Int32" 
                HeaderText="Convives" SortExpression="dp_convives" UniqueName="dp_convives">
                <HeaderStyle HorizontalAlign="Right" />
                <ItemStyle CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dp_prixs" DataFormatString="{0:C2}" 
                DataType="System.Decimal" HeaderText="Prix de la Paella" 
                SortExpression="dp_prixs" UniqueName="dp_prixs">
                <HeaderStyle HorizontalAlign="Right" />
                <ItemStyle CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dp_prixs_unitaire" 
                DataFormatString="{0:C2}" DataType="System.Decimal" HeaderStyle-Width="120" 
                HeaderText="Prix unitaire " SortExpression="dp_prixs_unitaire" 
                UniqueName="dp_prixs_unitaire">
                <HeaderStyle HorizontalAlign="Right" />
                <ItemStyle CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                ConfirmDialogType="RadWindow" 
                ConfirmText="Cette action permet de supprimer le produit sélectionné de votre devis. <br/><br/>Etes-vous sûr ? <br/><br/>" 
                Text="Supprimer ce produit" UniqueName="DeleteColumn">
                <HeaderStyle Width="20px" />
                <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>

The insert I do it with the code behind and it works without any problem:

 

public void Insert_Devis(object source, EventArgs e)
{
    devis.InsertParameters["dp_codeprd"].DefaultValue        = Code_PRD();
    devis.InsertParameters["dp_nombre"].DefaultValue         = Produits_ID.Text;
    devis.InsertParameters["dp_convives"].DefaultValue       = RadComboBox1.Text;
    devis.InsertParameters["dp_prixs"].DefaultValue          = (Convert.ToDouble(RadComboBox1.SelectedValue) * Convert.ToInt16(RadComboBox1.Text)).ToString();
    devis.InsertParameters["dp_prixs_unitaire"].DefaultValue = RadComboBox1.SelectedValue.ToString();
    devis.Insert();
}

But at the moment of deleting a registry from the “recipient” (RadGrid) I get the following message:

Mensaje: Sys.WebForms.PageRequestManagerServerErrorException: Error de sintaxis en la expresión.

Línea: 3

Carácter: 74672

Código: 0

URI: http://subtest.test.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aes-ES%3aacfc7575-cdee-46af-964f-5d85d9cdcf92%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aes-ES%3a30468509-1b07-456a-b5f4-bb35a9cae168%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4%3a86526ba7%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3a39040b5c%3af85f9819%3ab7778d6c%3a82923ac3%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aes-ES%3aacfc7575-cdee-46af-964f-5d85d9cdcf92%3a923aa3cc%3a853c2e0b%3a46f97eb1%3a782b16ab%3a535785ef »

Please help me to solve this problem.

Thanks for your help,
Jorge Saa-Gerbier

Radoslav
Telerik team
 answered on 18 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?