Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
377 views
I am using version 2011.2.1004.40.

When I enter some value inside filter textbox and push filter button, instead of opening filter menu drop down, It raises postback with filtering "contains". If I do not enter value into textbox and click filter button it opens the menu as expected.

Any thoughts?
Tsvetina
Telerik team
 answered on 23 Dec 2011
2 answers
150 views
It seems to me that 95% of the examples you have and code you supply contains client-side javascript. This is not surprising, of course, because Telerik has created a great and powerful client-side API for most of its controls. However, shouldn't the demo you provide at:

http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultvb.aspx

contain a BIG warning message telling developers that this functionlity won't work if your user controls contain javascript? Unless Telerik has come up with some sort of solution recently, it is my understanding that you can't load Usercontrols containing javascript with AJAX and expect the javascript to function properly (ie load along with the rest of the usercontrol).
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 23 Dec 2011
1 answer
78 views
Hey guys,

So, another issue that we've found - is that setting set_allowEdit(true) works for the purposes of dragging it around, but DOES NOT allow you to resize the appointment.

This differs from the scenario where you set AllowEdit = True in the code-behind, the appointment is both draggable and resizable as we would expect.

Is this a bug?

Kori
Plamen
Telerik team
 answered on 23 Dec 2011
1 answer
74 views
Hey guys,

So - we've noticed that when calling set_cssClass in client-side code, that it doesn't work correctly. The appointment won't display correctly, though the workaround is the following:

var backColor = apt.get_backColor();
apt.set_cssClass('appt-main'); // BUG: makes the appointment go grey without the first and last lines
apt.set_backColor(backColor);

Here's the CSS we're using:
.appt-main {
    opacity:0.6;
    filter:alpha(opacity=60); /* For IE8 and earlier */
}

Is this a bug?

Kori
Plamen
Telerik team
 answered on 23 Dec 2011
1 answer
810 views
I'm working with the RadButton, encapsulated within an asp:Login container;

An application scenario includes the requirement of programmatically accessing textbox variables, and the RadButton;

All is OK, until the C# code attempts to process the button click event, programmatically;

Object reference not set to an instance of an object results on the line of: ((IPostBackEventHandler)submitButton).RaisePostBackEvent(null);

Any insight is appreciated;  Best regards - Rob

<asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
            <div class="accountInfo">
                <fieldset class="login" style="border-style: none; border-color: Transparent">
                  <%--  <legend>Account Information</legend>--%>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry" Width="160px" AutoPostBack="true"
                            ontextchanged="UserName_TextChanged"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" 
                            Width="160px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                       
                    </p>
                </fieldset>
                <p class="submitButton">
  
                     <telerik:RadButton ID="rbLogin" runat="server" CommandName="Login" 
                         Text="Log In" ValidationGroup="LoginUserValidationGroup" 
                         Font-Names="Microsoft Sans Serif" Skin="Black">
                    </telerik:RadButton>
  
                       <telerik:RadButton ID="rbForgotPassword" runat="server" 
                         Text="Forgot Password" ValidationGroup="LoginUserValidationGroup" 
                         Font-Names="Microsoft Sans Serif" Skin="Black" 
                         onclick="rbForgotPassword_Click">
                    </telerik:RadButton>
  
                </p>
            </div>
        </LayoutTemplate>
    </asp:Login>

string

 

 

obtainUsername = Request.QueryString["Username"];

 

 

 

string obtainPassword = Request.QueryString["Password"];

 


var userNameTextBox = LoginUser.FindControl("UserName") as TextBox;
var passwordTextBox = LoginUser.FindControl("Password") as TextBox;

userNameTextBox.Text = obtainUsername;

passwordTextBox.Text = obtainPassword;


var submitButton = LoginUser.FindControl("rbButton") as RadButton;
  
((IPostBackEventHandler)submitButton).RaisePostBackEvent(null);


Slav
Telerik team
 answered on 23 Dec 2011
3 answers
210 views
hello i am new using teleriks controls well i am new in asp.net too, i have some problems, i am using a radgrid than could update some information, in the sql statements of update i have two conditions  COD_COMPRA that i call from textbox and COD_MATPRI, the first one is all good but when i try to use both COD_MATPRI and COD_COMPRA not update anything...this is my code i hope u can help me

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource5"
            GridLines="None" AllowAutomaticUpdates="True"
            AutoGenerateEditColumn="True" AllowAutomaticInserts="True">
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="COD_MATPRIMA"
                DataSourceID="SqlDataSource5" EditMode="InPlace">
                <Columns>
                    <telerik:GridBoundColumn DataField="COD_MATPRIMA" HeaderText="COD_MATPRIMA"
                        ReadOnly="True" SortExpression="COD_MATPRIMA" UniqueName="COD_MATPRIMA">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NOMMATPRI"
                        HeaderText="NOMMATPRI" SortExpression="NOMMATPRI"
                        UniqueName="NOMMATPRI">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CANTIDAD" HeaderText="CANTIDAD"
                        SortExpression="CANTIDAD" UniqueName="CANTIDAD" DataType="System.Single">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NOMBREMEDIDA"
                        HeaderText="NOMBREMEDIDA" SortExpression="NOMBREMEDIDA"
                        UniqueName="NOMBREMEDIDA">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PRECIO" HeaderText="PRECIO"
                        SortExpression="PRECIO" UniqueName="PRECIO" DataType="System.Decimal">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TOTAL" DataType="System.Single"
                        HeaderText="TOTAL" SortExpression="TOTAL" UniqueName="TOTAL"
                        ReadOnly="True">
                    </telerik:GridBoundColumn>
                </Columns>
              <EditFormSettings>
                  <EditColumn UniqueName="
EditCommandColumn1">
                  </EditColumn>
              </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
      
        <asp:SqlDataSource ID="SqlDataSource5" runat="server"
            ConnectionString="<%$ ConnectionStrings:SICI2.0ConnectionString2 %>"
           
           
            SelectCommand="SELECT TBL_MATERIAPRIMA.COD_MATPRIMA, TBL_MATERIAPRIMA.NOMMATPRI, TBL_COM_MP.CANTIDAD, TBL_MEDIDA.NOMBREMEDIDA, TBL_COM_MP.PRECIO, TBL_COM_MP.CANTIDAD * TBL_COM_MP.PRECIO AS TOTAL FROM TBL_COMPRA INNER JOIN TBL_COM_MP ON TBL_COMPRA.COD_COMPRA = TBL_COM_MP.COD_COMPRA INNER JOIN TBL_MATERIAPRIMA ON TBL_COM_MP.COD_MATPRIMA = TBL_MATERIAPRIMA.COD_MATPRIMA INNER JOIN TBL_MEDIDA ON TBL_MATERIAPRIMA.COD_MEDIDA = TBL_MEDIDA.COD_MEDIDA WHERE (TBL_COMPRA.COD_COMPRA = @id_compra)"
            UpdateCommand="UPDATE TBL_COM_MP SET CANTIDAD = @cantidad, PRECIO = @precio WHERE (COD_COMPRA=@id_compra and COD_MATPRIMA=@cod_matprima) "> 
           
            <SelectParameters>
                <asp:ControlParameter ControlID="txtnumorden" Name="id_compra"
                    PropertyName="Text" />
            </SelectParameters>
            <UpdateParameters>
                <asp:Parameter Name="cod_matprima"/>
                <asp:Parameter Name="cantidad"/>
                <asp:Parameter Name="precio" />
                <asp:ControlParameter ControlID="txtnumorden" Name="id_compra"
                    PropertyName="Text" />
               
            </UpdateParameters>
        </asp:SqlDataSource>
 the second question is what can i do if i want to refresh when i update the radgrid... other part of my webpage... i mean i have radgrid and from data of the radgrid i have to calculate the total, IVA, etc or maybe refresh the enterire page  thanks
Antonio Stoilkov
Telerik team
 answered on 23 Dec 2011
1 answer
80 views
Hi,

I have a scenario where I display huge data and edit them using pop-up..

Some of my fields need to be comboboxes...where data has to be binded to tht particulat value for that resource..

I have a table employee...which has status (active,inactive)...but I need to bind this data from a look up table..
   EmploymentStatus:    <telerik:RadComboBox ID="ddlStatus" runat="server"    AppendDataBoundItems="true"                                         AllowCustomText="true" > </telerik:RadComboBox>

I have tried the below code to bind the values:but it didn't wok..getting null value in to the list object..

 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Edit")
        {
            GridEditableItem item = e.Item as GridEditableItem;
          RadComboBox list = item.FindControl("ddlStatus") as RadComboBox;
            SqlDataReader ddDR = null;
            myCommand.CommandText = "SELECT  [Name],[value]  FROM [Table1] where Name='Status'";
            myConnection = new SqlConnection(myConnectionstr);
            myConnection.Open();
            myCommand.CommandType = CommandType.Text;
            myCommand.Connection = myConnection;
            ddDR = myCommand.ExecuteReader();
            list.DataSource = ddDR;
            list.DataTextField = "Name";
            list.DataValueField = "Value";
            list.DataBind();


            ddDR.Dispose();
            myCommand.Dispose();
            myConnection.Dispose();
        }

    }

Can you please let me know how do I bind the data and also get the correct values when i click edit and empty value when I click insert...Will be of gr8 help..

Please advise..
thanks


                 
Dimitar Terziev
Telerik team
 answered on 23 Dec 2011
1 answer
117 views
Hi,

I am using ServerSideCallBack and would like nodes to be expanded to say two levels.
Is there a way I can emulate the asp TreeView ExpandDepth property on load.

I have tried setting node.Expanded but this doesn't seem to trigger the populate on demand.

Many thanks

Richard
Bozhidar
Telerik team
 answered on 23 Dec 2011
1 answer
114 views

Dear Telerik Team,

We are facing a problem with export to CSV feature using RadGrid. Actually we have a grid having a column showing range for ‘# of FTEs’ and ‘# of Freelancers’. You can find the column data in the attached file Grid.jpg. When we try to export the grid to CSV, these two columns converts to date column as shown in the attached file Excel.jpg.

Please provide us some solution for that.

Thanks

Tarika Team

Shinu
Top achievements
Rank 2
 answered on 23 Dec 2011
1 answer
83 views
Hi
I am encountered js problem when I use below client API.
 Does anyone can help me? thanks.

Case 1
var cMenu = $find("RadContextMenu1");
cMenu will be undefined!!

Case 2
var cMenu2 = $find("<%=RadContextMenu1.ClientID %>");
this is working.

but I would like to use the Case 1, due to I can pass the control's id into another function as a paramter in order to do more complex task and this way should be more fexible.

My developing environment as below.
VS2008 version 9.0.30729.1 SP
.NET Framework 3.5 SP1
telerik version is '2010.1.309.35'

Thank you!

Princy
Top achievements
Rank 2
 answered on 23 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?