Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Hello!

I used the code( tabs and grid) in sales dashboard. Now I want to record the three buttons (search, reset, clear) clicked state so that I can use it in the user control . When three buttons clicked then I will always get data from database and for other postbacks I only use session variable.

How could I do it? I used session to record the clicked state and pass it to usercontrol property. but I don't think it will work as when other postback the session still hold the clicked( true) value.

Thanks for any help in advance!

Amy
Tsvetina
Telerik team
 answered on 03 Sep 2011
1 answer
64 views
I have followed the instructions on http://www.telerik.com/help/aspnet-ajax/radformdecorator-creating-custom-skins.html to create a custom stylesheet but it does not seem to be applying. I have created a directory called CustomSkins and copied the FormDecorator.Forest.css file and the FormDecorator directory to it, just as a test I added a link to the css and set EnableEmbeddedSkins=False. Shouldn't that pick up and apply the Forest colors and look the same as if embedded skins was turned on and selected Forest. But in my page I'm getting no stylesheet settings. What we want to be able to do is us all the telerik styles but add items to the telerik stylesheet to handle things we have already incorporated in our apps.

<

head runat="server">

 <title></title>

 <link href="CustomSkins/FormDecorator.Forest.css" rel="stylesheet" type="text/css" />

 </head>

 <body>

 

 <form id="form1" runat="server">

 <div>

 <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 <telerik:RadSkinManager ID="radskinMgr" runat="server" ShowChooser="true"></telerik:RadSkinManager>

 <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" EnableEmbeddedSkins="false" />

 <br /><br />

 <h2>This is a test page for new styles and preferences - COMING SOON IN 2011!!</h2>

 <hr />

 <h1>ODE STYLES</h1>

 <h1 class="announcement">TEXT Test for H1 - ODE Class ANNOUNCEMENT</h1>

 <h2 class="sidebar">TEXT Test for H2 - ODE Class SIDEBAR</h2>

 <h3 class="odehilite">TEXT Test for H3 - ODE Class ODEHILITE</h3>

 <b class="small">TEXT Test for ODE Class SMALL</b><br />

 <b class="larger">TEXT Test for ODE Class LARGER</b><br />

 <b class="largest">TEXT Test for ODE Class LARGEST</b>

 <h4>Text for H4</h4>

 </div>

 </form>

 </body>

 

Bozhidar
Telerik team
 answered on 03 Sep 2011
3 answers
137 views

I seem to be unable to get the OnImageChanged server-side event to fire ... tried with an empty project with default.aspx content:

 

<div>
    <telerik:RadImageEditor ID="RadImageEditor1" runat="server" OnImageChanged="RadImageEditor1_ImageChanged"
        ImageUrl="~/images/160004.jpg">
    </telerik:RadImageEditor>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><telerik:RadButton
        ID="RadButton1" runat="server" Text="PostBack" AutoPostBack="true">
    </telerik:RadButton>
</div>

And in the code-behind:

 

protected void RadImageEditor1_ImageChanged(object sender, Telerik.Web.UI.ImageEditorEventArgs args)
    {
        Label1.Text = System.DateTime.Now.ToString();
    }

It seems the Label's text never gets updated ...

 

 


What am I doing wrong here ?

 

Luc Cappaert
Top achievements
Rank 2
 answered on 03 Sep 2011
8 answers
110 views
Hello:

i have this issue:
I have one RadAjaxManager on my .aspx page like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
<telerik:AjaxSetting AjaxControlID="LnkGrabar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GrdDetalle" />
                <telerik:AjaxUpdatedControl ControlID="TxtFecha" />
                <telerik:AjaxUpdatedControl ControlID="TxtProducto" />
                <telerik:AjaxUpdatedControl ControlID="TxtOperacion" />
                <telerik:AjaxUpdatedControl ControlID="TxtCanastas" />
                <telerik:AjaxUpdatedControl ControlID="TxtBines" />
                <telerik:AjaxUpdatedControl ControlID="TxtLbsNetas" />
                <telerik:AjaxUpdatedControl ControlID="CboProducto" />
                <telerik:AjaxUpdatedControl ControlID="CboOperacion" />
                <telerik:AjaxUpdatedControl ControlID="TxtObservacion" />                               
                <telerik:AjaxUpdatedControl ControlID="TxtBoleta" />       
                <telerik:AjaxUpdatedControl ControlID="LblMensaje" />
            </UpdatedControls>
        </telerik:AjaxSetting>
         
    </AjaxSettings>
</telerik:RadAjaxManager>

and I open a popup windowd with this:

Dim sb As New StringBuilder
sb.Append("<script>")
sb.Append("window.open('http://msdn.microsoft.com', '', '');")
sb.Append("</scri")
sb.Append("pt>")
 
 
ClientScript.RegisterStartupScript(Me.GetType, "test", sb.ToString())

but the page dont open
only when i remove the telerik:RadAjaxManager it's open

please help me!!
thanks in advance
Hector Hernandez
Top achievements
Rank 2
 answered on 03 Sep 2011
9 answers
480 views
I have a RadGrid which currently allows for uploading an image from the local machine, and after which it displays in the grid. The image itself is stored in the database. Would it be possible to inject the ImageEditor control into this sequence so people could essentially upload their picture - make an edit if necessary - and then have the grid store the edited image to the database as it currently does?
Andres Calvete
Top achievements
Rank 1
 answered on 02 Sep 2011
2 answers
125 views
Hello,

I have been trying to modify the z-index of the dialog box for cropping without success. Can you point me the right css class or way to do this? right now the editor is in a control with a z-index of 100001 and therefore when the crop button is pressed the dialog shows behind the editor.

Thanks
Andres Calvete
Top achievements
Rank 1
 answered on 02 Sep 2011
1 answer
123 views
I'm using a radgrid which looks up against a datatable.

I need to be able to configure/set what the default values are, which are assigned to the new row When the "Add a New Record" button is pressed.

Is this possible?  Currently it returns nulls.
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2011
1 answer
76 views
Hi guys, i have 4 textboxes and a search button. When the search button is pressed a radgrid is binded depending on the value of the textboxes, the radgrid has enable paging=true,  after hitting the search button the textboxes are cleared the when I try to change page,the grid is not binded because there's no value in the textboxes, My question is if is it posible that after clear the textboxes and change the page of the radgrid keep the last value of the textboxes?

Here's my code to bind the grid
private void BuscaSolicitanteGrid()
     {
         try
         {
             if (rdTxtExp.Value != null)
             {
                 var bdInstContext = new BD_INSTEntities();
                 var empleados = from emp in bdInstContext.Empleados
                                 where emp.exp_emp == rdTxtExp.Value && emp.ind_edo_emp=="A"
                                 select emp;
                   
                 rgSolic.DataSource = empleados;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                
                 rdTxtExp.Value = null;
          
             }
             if (rdTxtNom.Text != "")
             {
                 var bdInstContextApat = new BD_INSTEntities();
                 var empleadoNombre = from emp in bdInstContextApat.Empleados
                                      where emp.nombre_emp == rdTxtNom.Text && emp.ind_edo_emp == "A"
                                      select emp;
                   
                 rgSolic.DataSource = empleadoNombre;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
             
             }
             if (rdTxtApat.Text != "")
             {
                 var bdInstContextApat = new BD_INSTEntities();
                   
                 var empleadoApat = from emp in bdInstContextApat.Empleados
                                    where emp.paterno_emp == rdTxtApat.Text && emp.ind_edo_emp == "A"
                                    select emp;
                 rgSolic.DataSource = empleadoApat;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
           
             }
             if (rdTxtAmat.Text != "")
             {
                 var bdInstContextAmat = new BD_INSTEntities();
                 var empleadosAmat = from emp in bdInstContextAmat.Empleados
                                     where emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A"
                                     select emp;
                 rgSolic.DataSource = empleadosAmat;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
          
             }
             if (rdTxtNom.Text != "" && rdTxtApat.Text!="")
             {
                 var bdInstContextNom = new BD_INSTEntities();
                 var empleadoNom = from emp in bdInstContextNom.Empleados
                                   where emp.nombre_emp == rdTxtNom.Text && emp.paterno_emp == rdTxtApat.Text && emp.ind_edo_emp == "A"
                                 select emp;
                 rgSolic.DataSource = empleadoNom;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
           
             }
             if (rdTxtNom.Text != "" && rdTxtAmat.Text != "")
             {
                 var bdInstContextNom = new BD_INSTEntities();
                 var empleadoNom = from emp in bdInstContextNom.Empleados
                                   where emp.nombre_emp == rdTxtNom.Text && emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A"
                                   select emp;
                 rgSolic.DataSource = empleadoNom;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
              
             }
             if (rdTxtApat.Text!="" && rdTxtAmat.Text!="")
             {
                 var bdInstContextNom = new BD_INSTEntities();
                 var empleadoApellidos = from emp in bdInstContextNom.Empleados
                                         where emp.paterno_emp == rdTxtApat.Text && emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A"
                                   select emp;
                 rgSolic.DataSource = empleadoApellidos;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
             
             }
             if (rdTxtNom.Text != "" && rdTxtApat.Text != "" && rdTxtAmat.Text != "")
             {
                 var bdInstContextNom = new BD_INSTEntities();
                 var empleadoApellidos = from emp in bdInstContextNom.Empleados
                                         where
                                             emp.nombre_emp == rdTxtNom.Text && emp.paterno_emp == rdTxtApat.Text &&
                                             emp.materno_emp == rdTxtAmat.Text && emp.ind_edo_emp == "A"
                                         select emp;
                 rgSolic.DataSource = empleadoApellidos;
                 rgSolic.Rebind();
                 rgSolic.Visible = true;
                 rdTxtNom.Text = "";
                 rdTxtApat.Text = "";
                 rdTxtAmat.Text = "";
                 rdTxtExp.Value = null;
                
             }
            
         }
         catch (Exception ex)
         {
             Alerta(ex.Message);
         }
          
         
     }
In page index change method I call again this method

Hope you could help me
 
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2011
2 answers
346 views
Hi all.

i have been trying to get Cell values from Radgrid. The columns can be items templates (textbox, combo, etc ) and can be simply data binding columns. I tried:

      foreach (Telerik.Web.UI.GridDataItem dataItem in grdShippedOrders.MasterTableView.Items)
        {
                     int OrderID = Convert.ToInt32(dataItem.GetDataKeyValue("OrderID"));
       }

----------------------------------------

   GridFooterItem footer = (GridFooterItem)grdShippedOrders.MasterTableView.GetItems(GridItemType.Footer)[0];
        int order = Convert.ToInt32(footer["OrderId"].ToString());

-----------------------------------------

CompanyName = (grdShippedOrders.MasterTableView.FindItemByKeyValue("orderId") as GridDataItem)["orderId"].Text;

I know how to get the value froma  control (textbox, checked) but i can't get the value of a column with data binding source. I need to get each value from each column and row. I tried with for(...){   .......... }  too.

Please help me.



kharen
Top achievements
Rank 1
 answered on 02 Sep 2011
1 answer
46 views
I like to download this trail version. when I logged into my account - it took me to page for automation installation, manual installation.
We already have telerik load in our system, should we need to update with new version to get this ?

Please advice.
Thank you
Mohan Ambaty
Sebastian
Telerik team
 answered on 02 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?