Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
225 views

I have a RadGrid which has a linkbutton for deleting a row from the grid and I use RadConfirm to display message to user to confirm the delete, if user chooses yes/ok then the record should be deleted.

However before the radconfirm is being called the record from the grid is deleted and then the confirm dialog box appears.

The version I am using version 2012.1.411.40 of teleik and facing issue in this version, can you please help or let me know where am I going wrong?

Updating with additional information:

 

In the grid we are adding a link button using the Command Template on the bottom of the grid and onclientclick,  we have a javascript to check whether any row is selected in the grid and based on that, we display message (ALERT) asking the user to select the record to be deleted. If the row is already selected then we display the (CONFIRM) to check if the user really wants to delete the row. And based on the user choice yes/no the record is deleted.

 

However, using RADConfirm in this scenario works differently, the row is first deleted and then the message is displayed. This is the issue.

 

 

Eyup
Telerik team
 answered on 18 Jun 2012
4 answers
122 views
How do you turn off/disable the new "Enhanced ToolTip"? I'd like to continue to use the RadToolTipManager instead. Thanks.
Hunter
Top achievements
Rank 1
 answered on 18 Jun 2012
1 answer
81 views
I need to validate my radgrid when in the EditFormMode or in InsertMode, need the same validation on the controls for both instances.  Tried to use asp validators but it does not seem to work, how can i validate my controls for insert or edit mode. 

<EditFormSettings EditFormType="Template">
                               <FormTemplate>
                                   <table width="100%">
                                       <tr>
                                           <td style="width:10%" align="right">Mac Type: </td>
                                           <td style="width:15%" align="left"><asp:DropDownList ID="ddlMacType" runat="server" AutoPostBack="false" Width="205px"></asp:DropDownList></td>
                                           <asp:RequiredFieldValidator ID="valmac" runat="server" ControlToValidate="ddlmacType" Display="Dynamic" ErrorMessage="*" ForeColor="Red" />
                                           <td style="width:10%" align="right">SSN: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtSSN" runat="server" Width="200px" Text='<%# Bind("strSSN") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">EDIPI: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtEDIPI" runat="server" Width="200px" Text='<%# Bind("strEDIPI") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">AKO Logon: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtAKO" runat="server" Width="200px" Text='<%# Bind("strAkoLogon") %>'></asp:TextBox></td>
                                       </tr>
                                       <tr>
                                           <td style="height:5px"></td>
                                       </tr>
                                       <tr>
                                           <td style="width:10%" align="right">LName: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtLName" runat="server" Width="200px" Text='<%# Bind("strLName") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">FName: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtFname" runat="server" Width="200px" Text='<%# Bind("strFname") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">MI: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtMI" runat="server" Width="200px" Text='<%# Bind("strMI") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">Gen Qual: </td>
                                           <td style="width:15%" align="left"><asp:DropDownList ID="ddlGenQual" runat="server" AutoPostBack="false" Width="205px"></asp:DropDownList></td>
                                       </tr>
                                       <tr>
                                           <td style="height:5px"></td>
                                       </tr>
                                       <tr>
                                           <td style="width:10%" align="right">Emp Type: </td>
                                           <td style="width:15%" align="left"><asp:DropDownList ID="ddlEmpType" runat="server" AutoPostBack="false" Width="205px"></asp:DropDownList></td>
                                           <td style="width:10%" align="right">Rank/Salutation: </td>
                                           <td style="width:15%" align="left"><asp:DropDownList ID="ddlSalutation" runat="server" AutoPostBack="false" Width="205px"></asp:DropDownList></td>
                                           <td style="width:10%" align="right">Job Title: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtJobTitle" runat="server" Width="200px" Text='<%# Bind("strJobTitle") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">Pick Unit: </td>
                                           <td style="width:15%" align="left"><asp:DropDownList ID="ddlunit" runat="server" AutoPostBack="false" Width="205px"></asp:DropDownList></td>
                                       </tr>
                                       <tr>
                                           <td style="height:5px"></td>
                                       </tr>
                                       <tr>
                                           <td style="width:10%" align="right">Requires Email: </td>
                                           <td style="width:15%" align="left"><asp:CheckBox ID="cbEmail" runat="server" Checked='<%# IIF(Convert.tostring(Eval("bitEmail"))="",false, Eval("bitEmail")) %>' /></td>
                                           <td style="width:10%" align="right">Military Phone: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtPhone" runat="server" Width="200px" Text='<%# Bind("strPhoneNumber") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">Requires LD: </td>
                                           <td style="width:15%" align="left"><asp:CheckBox ID="cbLD" runat="server" Checked='<%# IIF(Convert.tostring(Eval("bitLongDistance"))="",false, Eval("bitLongDistance")) %>' /></td>
                                           <td style="width:10%" align="right">Requires VM: </td>
                                           <td style="width:15%" align="left"><asp:CheckBox ID="cbVM" runat="server" Checked='<%# IIF(Convert.tostring(Eval("bitVoiceMail"))="",false, Eval("bitVoiceMail")) %>' /></td>
                                       </tr>
                                       <tr>
                                           <td style="height:5px"></td>
                                       </tr>
                                       <tr>
                                           <td style="width:10%" align="right"></td>
                                           <td style="width:15%" align="left"></td>
                                           <td style="width:10%" align="right">Zero Out: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtZeroOut" runat="server" Width="200px" Text='<%# Bind("strVoiceExt") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right">Notes: </td>
                                           <td style="width:15%" align="left"><asp:TextBox ID="txtNotes" runat="server" Width="260px" TextMode="MultiLine" Height="60px" Text='<%# Bind("strNotes") %>'></asp:TextBox></td>
                                           <td style="width:10%" align="right"></td>
                                           <td style="width:15%" align="left"></td>
                                       </tr>
                                         <tr>
                                           <td style="height:5px"></td>
                                       </tr>
                                   </table>
                                   <table width="100%">
                                        <tr>
                                           <td style="width:25%"></td>
                                           <td style="width:50%" align="center">
                                               <asp:LinkButton ID="lnkSubmit" runat="server" text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' 
                                               CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'></asp:LinkButton>
                                                     
                                               <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                                           </td>
                                           <td style="width:25%"></td>
                                       </tr>
                                   </table>
                               </FormTemplate>

  Protected Sub myRadGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadGrid.ItemCommand
        If (e.CommandName = RadGrid.PerformInsertCommandName) Then
  do something
       End if
  
  If (e.CommandName = RadGrid.UpdateCommandName AndAlso e.Item.IsInEditMode) Then
  do something
 end if
  
End sub

Kevin
Top achievements
Rank 1
 answered on 18 Jun 2012
3 answers
708 views
Hello,

I have been trying to implement the new RadHtmlChart as a pie chart, but I have not seen an example on how to get this to work.  The data being returned is in two columns, type and count.  I have tried serveral ways making this into a pie chart, but nothing seems to work correctly.  Is there any example of a pie chart with databinding to a sql datasource?  I want it to look like the pie chart sample that is in the demos with the legend showing the value for the type column and the pie chart showing the value for the count column.  The only exception is I would like the labels for each pie slice to show the percentage and value of the count field.

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 18 Jun 2012
4 answers
156 views
How do I do the following:

1. Remove Hourly, Daily, Monthly & Yearly recurrence radio buttons? Just want weekly.
2. Remove "Recur every 1 weeks on" - just want to do 1 week so will that default still work if control is hidden?
3. Do not allow recurrence of another recurrence - specifically don't allow recurrence of a record w/ a recurrentparentid.
James B.
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
62 views

Hi I am testing the google-like example but encounter  a problem when asking for the CurrentFilterValue, here is the code,

protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
        {
            if ((e.CommandName == "Filter"))
            {
                string something = "";
                foreach (GridColumn column in e.Item.OwnerTableView.Columns)
                {
                    something = column.CurrentFilterValue;
                    column.CurrentFilterValue = string.Empty;
                    column.CurrentFilterFunction = GridKnownFunction.NoFilter;
                }
            }
        }


The issue is that the string something is always “” for all the values. I test the same code with a default GridColumn and it works fine (change the value of “something”) but not with the current google-like filtering example.

The code in the CustomeFilter is the same as the demo code(MyCustomFilteringColumnCS.cs).

Thanks

Carlos
Top achievements
Rank 1
 asked on 18 Jun 2012
2 answers
88 views
hello community,

does someone know if there is a possibility to bind RadScheduler to pagemethods (webservice)?

kind regards,

bernhard  
Bernhard Rosenfelder
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
106 views
Hi Team,

  I'm getting below javascript error. I'm using Q22010 version.

  Accroding to my requirement with help of  "Load on Demand" demo implemented.

  In aspx page I write below  code
  <telerik:RadAjaxManager runat="server" ID="ramMasterData">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

and in my user control page also below code I write:
 <telerik:RadAjaxManager ID="ramRes" runat="server" EnableAJAX="true" OnAjaxRequest="ramRes_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ramRes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgGroup" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rgGroup">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgGroup" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
   and in ascx.cs file

protected void ramRes_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        try
        {
            if (e.Argument.StartsWith("Rebind$"))
            {
                //get groupId& Row Position from e.Argument
                string[] arrVal = e.Argument.Split('$');
                var groupId = arrVal[1].Trim();
                var rowpos = arrVal[2].Trim();

                rgGroup.MasterTableView.HierarchyDefaultExpanded = false;

                //refresh the Approvers list
                rgGroup.Rebind();

                //Call the javascript function to expand the parent node.
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "loadscript1", "ExpandMasterTableViewItem(" + rowpos + ");", true);
            }
            else if (e.Argument.StartsWith("Rebind"))
            {
                rgGroup.Rebind();
            }
        }
runtime I getting below error.

 Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_rgGroup_userControl_ramRes' can't be added to the application.
Thanks in Advance.
Mr.Perfect
Perfect
Top achievements
Rank 1
 asked on 18 Jun 2012
0 answers
88 views
I have a grid which dates entering valid but I want to change the state will not let me stay in the initial state can help me


 void list1_SelectedIndexChanged(
object sender, RadComboBoxSelectedIndexChangedEventArgs e)

{

RadComboBox estado = (RadComboBox)sender;

GridEditFormItem editItem = (GridEditFormItem)estado.NamingContainer;

estado_ps4 = estado.SelectedValue;

////

//mensaje = estado.SelectedValue;

//string html = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";

//Response.Write(html);

 

switch (estado.SelectedValue)

{

case "Adjudicado":

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"negociacion_prc"].Visible = true;

break;

case "Por Adjudicar":

editItem[

"contratista_prc"].Visible = false;

editItem[

"montocontratado_prc"].Visible = false;

editItem[

"observacion_prc"].Visible = false;

editItem[

"negociacion_prc"].Visible = false;

break;

case "Contratista Fallido":

editItem[

"numeroproceso_prc"].Enabled = false;

editItem[

"nombre_con"].Enabled = false;

editItem[

"fechapublicacion_ps4"].Enabled = false;

editItem[

"preguntasdesde_ps4"].Enabled = false;

editItem[

"preguntashasta_ps4"].Enabled = false;

editItem[

"recepcionofertas_ps4"].Enabled = false;

editItem[

"aperturaofertas_ps4"].Enabled = false;

editItem[

"solicitarconvalidacion_ps4"].Enabled = false;

editItem[

"entregaconvalidacion_ps4"].Enabled = false;

editItem[

"actacalificacion_ps4"].Enabled = false;

editItem[

"iniciopuja_ps4"].Enabled = false;

editItem[

"finpuja_ps4"].Enabled = false;

editItem[

"adjudicacion_ps4"].Enabled = false;

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"negociacion_prc"].Visible = true;

break;

case "Desierto":

editItem[

"numeroproceso_prc"].Enabled = false;

editItem[

"nombre_con"].Enabled = false;

editItem[

"fechapublicacion_ps4"].Enabled = false;

editItem[

"preguntasdesde_ps4"].Enabled = false;

editItem[

"preguntashasta_ps4"].Enabled = false;

editItem[

"recepcionofertas_ps4"].Enabled = false;

editItem[

"aperturaofertas_ps4"].Enabled = false;

editItem[

"solicitarconvalidacion_ps4"].Enabled = false;

editItem[

"entregaconvalidacion_ps4"].Enabled = false;

editItem[

"actacalificacion_ps4"].Enabled = false;

editItem[

"iniciopuja_ps4"].Enabled = false;

editItem[

"finpuja_ps4"].Enabled = false;

editItem[

"adjudicacion_ps4"].Enabled = false;

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"contratista_prc"].Visible = false;

editItem[

"montocontratado_prc"].Visible = false;

editItem[

"negociacion_prc"].Visible = true;

editItem[

"observacion_prc"].Visible = false;

break;

}

////

//mensaje = estado.SelectedValue;

//string html1 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";

//Response.Write(html1);

////

//estado_ps4 = estado.SelectedValue;

}

void montoadjudicado_TextChanged(object sender, EventArgs e)

{

RadNumericTextBox monto = (RadNumericTextBox)sender;

GridEditFormItem editItem = (GridEditFormItem)monto.NamingContainer;

if (Convert.ToDouble(monto.Value) > objpaso4.montoreferencial_ps2)

editItem[

"observacion_prc"].Visible = true;

else

editItem[

"observacion_prc"].Visible = false;

}

void list_PreRender(object sender, EventArgs e)

{

RadComboBox estado = (RadComboBox)sender;

GridEditFormItem editItem = (GridEditFormItem)estado.NamingContainer;

RadDateTimePicker fecha = (RadDateTimePicker)editItem["fechapublicacion_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"fechapublicacion_ps4"].Enabled = false;

else

editItem[

"fechapublicacion_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["preguntasdesde_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"preguntasdesde_ps4"].Enabled = false;

else

editItem[

"preguntasdesde_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["preguntashasta_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"preguntashasta_ps4"].Enabled = false;

else

editItem[

"preguntashasta_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["recepcionofertas_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"recepcionofertas_ps4"].Enabled = false;

else

editItem[

"recepcionofertas_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["aperturaofertas_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"aperturaofertas_ps4"].Enabled = false;

else

editItem[

"aperturaofertas_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["solicitarconvalidacion_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"solicitarconvalidacion_ps4"].Enabled = false;

else

editItem[

"solicitarconvalidacion_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["entregaconvalidacion_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"entregaconvalidacion_ps4"].Enabled = false;

else

editItem[

"entregaconvalidacion_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["actacalificacion_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"actacalificacion_ps4"].Enabled = false;

else

editItem[

"actacalificacion_ps4"].Enabled = true;

fecha = (

RadDateTimePicker)editItem["adjudicacion_ps4"].Controls[0];

if (fecha.SelectedDate < DateTime.Now)

editItem[

"adjudicacion_ps4"].Enabled = false;

else

editItem[

"adjudicacion_ps4"].Enabled = true;

////

//mensaje = estado_ps4;

//string html2 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";

//Response.Write(html2);

////

////

//mensaje = estado.SelectedValue + "-------";

//string html3 = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";

//Response.Write(html3);

////

if(estado_ps4.Equals(""))

switch (estado.SelectedValue)

{

case "Adjudicado":

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"negociacion_prc"].Visible = true;

break;

case "Por Adjudicar":

editItem[

"contratista_prc"].Visible = false;

//editItem["montocontratado_prc"].Visible = false;

editItem[

"observacion_prc"].Visible = false;

editItem[

"negociacion_prc"].Visible = false;

break;

case "Contratista Fallido":

editItem[

"numeroproceso_prc"].Enabled = false;

editItem[

"nombre_con"].Enabled = false;

editItem[

"fechapublicacion_ps4"].Enabled = false;

editItem[

"preguntasdesde_ps4"].Enabled = false;

editItem[

"preguntashasta_ps4"].Enabled = false;

editItem[

"recepcionofertas_ps4"].Enabled = false;

editItem[

"aperturaofertas_ps4"].Enabled = false;

editItem[

"solicitarconvalidacion_ps4"].Enabled = false;

editItem[

"entregaconvalidacion_ps4"].Enabled = false;

editItem[

"actacalificacion_ps4"].Enabled = false;

editItem[

"iniciopuja_ps4"].Enabled = false;

editItem[

"finpuja_ps4"].Enabled = false;

editItem[

"adjudicacion_ps4"].Enabled = false;

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"negociacion_prc"].Visible = true;

break;

case "Desierto":

editItem[

"numeroproceso_prc"].Enabled = false;

editItem[

"nombre_con"].Enabled = false;

editItem[

"fechapublicacion_ps4"].Enabled = false;

editItem[

"preguntasdesde_ps4"].Enabled = false;

editItem[

"preguntashasta_ps4"].Enabled = false;

editItem[

"recepcionofertas_ps4"].Enabled = false;

editItem[

"aperturaofertas_ps4"].Enabled = false;

editItem[

"solicitarconvalidacion_ps4"].Enabled = false;

editItem[

"entregaconvalidacion_ps4"].Enabled = false;

editItem[

"actacalificacion_ps4"].Enabled = false;

editItem[

"iniciopuja_ps4"].Enabled = false;

editItem[

"finpuja_ps4"].Enabled = false;

editItem[

"adjudicacion_ps4"].Enabled = false;

editItem[

"contratista_prc"].Visible = true;

editItem[

"montocontratado_prc"].Visible = true;

editItem[

"contratista_prc"].Visible = false;

editItem[

"montocontratado_prc"].Visible = false;

editItem[

"negociacion_prc"].Visible = true;

editItem[

"observacion_prc"].Visible = false;

break;

}

estado_ps4 = estado.SelectedValue;

}

void tipocontratacion_PreRender(object sender, EventArgs e)

{

TextBox texto = (TextBox)sender;

GridEditFormItem editItem = (GridEditFormItem)texto.NamingContainer;

RadDateTimePicker fecha = (RadDateTimePicker)editItem["iniciopuja_ps4"].Controls[0];

if (!texto.Text.ToLower().Contains("subasta inversa") || fecha.SelectedDate < DateTime.Now)

editItem[

"iniciopuja_ps4"].Enabled = false;

fecha = (

RadDateTimePicker)editItem["finpuja_ps4"].Controls[0];

if (!texto.Text.ToLower().Contains("subasta inversa") || fecha.SelectedDate < DateTime.Now)

editItem[

"finpuja_ps4"].Enabled = false;

if (texto.Text.ToLower().Contains("subasta inversa"))

editItem[

"negociacion_prc"].Enabled = true;

else

editItem[

"negociacion_prc"].Enabled = false;

editItem[

"nombre_con"].Enabled = false;

}

private DateTime verificarFecha(string fecha)

{

if (fecha.Equals(""))

return Convert.ToDateTime("1900-01-01");

else

return Convert.ToDateTime(fecha);

}

private bool validarCampo(string campo, DateTime fecha, ValidacionFecha[] objvalidacion)

{

bool respuesta = false;

string estado = "";

DateTime fecha2 = DateTime.Now;

for (int i = 0; i < objvalidacion.Length; i++)

{

if (objvalidacion[i].campofecha_vaf.Equals(campo))

{

estado =

"encontro";

switch (objvalidacion[i].campovalidar_vaf)

{

case "fechapublicacion_ps4":

fecha2 = objpaso4.fechapublicacion_ps4;

break;

case "preguntasdesde_ps4":

fecha2 = objpaso4.preguntasdesde_ps4;

break;

case "preguntashasta_ps4":

fecha2 = objpaso4.preguntashasta_ps4;

break;

case "recepcionofertas_ps4":

fecha2 = objpaso4.recepcionofertas_ps4;

break;

case "aperturaofertas_ps4":

fecha2 = objpaso4.aperturaofertas_ps4;

break;

case "solicitarconvalidacion_ps4":

fecha2 = objpaso4.solicitarconvalidacion_ps4;

break;

case "entregaconvalidacion_ps4":

fecha2 = objpaso4.entregaconvalidacion_ps4;

break;

case "actacalificacion_ps4":

fecha2 = objpaso4.actacalificacion_ps4;

break;

case "iniciopuja_ps4":

fecha2 = objpaso4.iniciopuja_ps4;

break;

case "finpuja_ps4":

fecha2 = objpaso4.finpuja_ps4;

break;

case "adjudicacion_ps4":

fecha2 = objpaso4.adjudicacion_ps4;

break;

}

switch (objvalidacion[i].operador_vaf)

{

case "Entre":

if (objvalidacion[i].unidadtiempo_vaf.Equals("Das"))

{

if (fecha >= fecha2.AddDays(objvalidacion[i].diainicio_vaf) && fecha <= fecha2.AddDays(objvalidacion[i].diafinal_vaf))

respuesta =

true;

else

{

respuesta =

false;

mensaje += objvalidacion[i].etiquetacampofecha_vaf +

" debe estar entre " + objvalidacion[i].diainicio_vaf + " y " + objvalidacion[i].diafinal_vaf + " das despus de " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";

}

}

else

{

if (fecha >= fecha2.AddMinutes(objvalidacion[i].diainicio_vaf) && fecha <= fecha2.AddMinutes(objvalidacion[i].diafinal_vaf))

respuesta =

true;

else

{

respuesta =

false;

mensaje += objvalidacion[i].etiquetacampofecha_vaf +

" debe estar entre " + objvalidacion[i].diainicio_vaf + " y " + objvalidacion[i].diafinal_vaf + " minutos despus de " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";

}

}

break;

case "Mayor a":

if (objvalidacion[i].unidadtiempo_vaf.Equals("Das"))

{

if (fecha >= fecha2.AddDays(objvalidacion[i].diainicio_vaf))

respuesta =

true;

else

{

respuesta =

false;

mensaje += objvalidacion[i].etiquetacampofecha_vaf +

" debe ser mayor en " + objvalidacion[i].diainicio_vaf + " das a " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";

}

}

else

{

if (fecha >= fecha2.AddMinutes(objvalidacion[i].diainicio_vaf))

respuesta =

true;

else

{

respuesta =

false;

mensaje += objvalidacion[i].etiquetacampofecha_vaf +

" debe ser mayor en " + objvalidacion[i].diainicio_vaf + " minutos a " + objvalidacion[i].etiquetacampovalidar_vaf + "\\n";

}

}

break;

}

}

else

estado =

"no encontro";

}

if (estado.Equals("no encontro"))

return true;

else

return respuesta;

}

private void lanzarVentanaInformacion()

{

string html = "<SCRIPT> alert('" + mensaje + "'); </SCRIPT>";

Response.Write(html);

}

protected void RadGrid1_PreRender(object sender, EventArgs e)

{

if (rowindex > -1)

{

RadGrid1.Items[rowindex].Edit =

true;

rowindex = -1;

}

RadGrid1.Rebind();

}

}

}


Andrea
Top achievements
Rank 1
 asked on 18 Jun 2012
1 answer
112 views
Hi there,

I am currently using the Modal RadDock popup example.  I have a save button that does some server side validation before saving to the database.  If the validation and save is successful, I would like to close the RadDock Modal popup.  Is there a way to close the RadDock via server side code?

Thanks
John
Slav
Telerik team
 answered on 18 Jun 2012
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?