Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
638 views
I've just read a thread on how to change the back color of a menu item in a Windows app but how do you do it in a Web application?

If I select the control in the designer I just get Edit Templates or Edit Items and the Skin is set to default.

I can alter the items okay I just can't alter the background color of the actual bar itself.  It always ends up being the dark silvery color!
Missing User
 answered on 10 May 2013
3 answers
73 views
I've set up a grid with vertical headers (see attached screenshot) but I can't resize the column width.
Should I be changing it in code or in the style sheet?

Eyup
Telerik team
 answered on 10 May 2013
2 answers
399 views
Hi.

I have one issue and no idea how to aproach it.

On development server, IIS7, I have RadComboBox with AutoPostBack under UpdatePanel and it works fine.
Ajax partial refresh works as it's supposed to do.

But, when I publish project and upload it to production server (IIS7), on RadComboBox change whole page is reloaded, not only UpdatePanel content. No any javascript errors.
Please notice that Asp:Button, which is also AutoPostBack and under same UpdatePanel, reloads just UpdatePanel content on development and production server, as it's supposed to do.

This was tested with Telerik versions 2010 and 2012.

Any ideas what is wrong?

Thanks in advance
Kresimir
Top achievements
Rank 1
 answered on 10 May 2013
3 answers
98 views
Hello,

I have the following scenario:
1. in the editor css file:
a.lightBox-link {
color:Red;
}
2. in the toolsfile.xml:
<classes>
<class name="Lightbox Link" value="a.lightBox-link" />
</classes>
3. Now open the editor in chrome (v. 26.0.1410.64) and check the ApplyCssClass drop down - it does not contain Lightbox Link. But it works fine in IE9
If I change the toolsfile.xml content to value="a.lightbox-link" (lowercase b) then it works in chrome but not in IE.

Does the editor treats css class names as case sensitive?
Can this be fixed?
Dobromir
Telerik team
 answered on 10 May 2013
1 answer
79 views
Hi,

I am using RadComboBox.Net2 Version 2.8.5.0. AutoComplete does not work correctly in IE9/10. The suggestions are not getting populated as per user input.

Is this a product version issue? If it is, what will be the best solution for me with minimal code changes?

Note: I am also using Telerik.Web.UI Version 2012.2.912.40 in some other areas.

Thanks





Nencho
Telerik team
 answered on 10 May 2013
0 answers
129 views
Hello to all(Image Table.jpg)

in first node Technology Name then Factor the SubFactor
Technology Name
    Factor Name
        SubFactor
So how to correct my query or bind Radtreeview For this.

Jack
Top achievements
Rank 1
 asked on 10 May 2013
1 answer
393 views
Hi to all,
Sorry to bother you with what might seem beginners question, I tried  to use ListView1_ItemCommand to as shown in my code below, but nothing happened the insert command is not firing should I use OnCommandInserting, if there is a form or example on how this could be done I would deeply appreciated.
thanks.
Rasha. 
if (e.CommandName == RadListView.PerformInsertCommandName)
{
    SqlCommand cmd = new SqlCommand();
    try
    {
        SqlConnection con = DataAccess.Connection.GetDBConnection();
        if (con.State == ConnectionState.Closed)
        {
            con.Open();
        }
        cmd.CommandText = "INSERT INTO [Package] VALUES (@PackageName, @PackageDesc, @PricePerMonth, @discountPercent, @NumOfImg, @NumOfGIF, @NumOfFlash, @isHomePageIncluded)";
        cmd.Parameters.Add("@PackageName", SqlDbType.VarChar);
        cmd.Parameters.Add("@PackageDesc", SqlDbType.VarChar);
        cmd.Parameters.Add("@PricePerMonth", SqlDbType.Money);
        cmd.Parameters.Add("@discountPercent", SqlDbType.Float);
        cmd.Parameters.Add("@NumOfImg", SqlDbType.Int);
        cmd.Parameters.Add("@NumOfGIF", SqlDbType.Int);
        cmd.Parameters.Add("@NumOfFlash", SqlDbType.Int);
        cmd.Parameters.Add("@isHomePageIncluded", SqlDbType.Bit);
 
        cmd.Connection = con;
 
        int result = cmd.ExecuteNonQuery();
        con.Close();
    }
    catch (Exception exp)
    {
        Response.Write(exp +"in Command: " + cmd.ToString());
    }

Shinu
Top achievements
Rank 2
 answered on 10 May 2013
1 answer
60 views
Hi 

I have a grid with 10 columns that do not fit in one single screen and of which the first two columns represent vital data and the last two columns are my Command columns that needs to be shown all the time.

Please help me fix this.

Thanks
Arun
Shinu
Top achievements
Rank 2
 answered on 10 May 2013
2 answers
106 views
Hi 

I have two columns in my radgrid
Empid - readonly, mandatory
EmpName - dropdown column , datavaluefield= "EmpID", datatextfield="EmpName"

On selection of an Employee in my dropdownlist I need to set and pertain the value of the EmpID column based on the selection in the EmpName.
Arun
Top achievements
Rank 1
 answered on 10 May 2013
3 answers
155 views
Hi Guys,

This is my RadGrid:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" DataSourceID="SqlDataSource1" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CellSpacing="0" GridLines="None">
        <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="ID" CommandItemDisplay="TopAndBottom">
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="imagebutton" />
                <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Client_Name" FilterControlAltText="Filter Client_Name column" HeaderText="CLIENT_NAME" SortExpression="Client_Name" UniqueName="Client_Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Equipment" FilterControlAltText="Filter Equipment column" HeaderText="EQUIPMENT" SortExpression="Equipment" UniqueName="Equipment">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Serial_Number" FilterControlAltText="Filter Serial_Number column" HeaderText="SERIAL_NUMBER" SortExpression="Serial_Number" UniqueName="Serial_Number">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Reason" FilterControlAltText="Filter Reason column" HeaderText="REASON" SortExpression="Reason" UniqueName="Reason">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn UniqueName="ButtonColumn" Text="Delete" CommandName="Delete" ButtonType="imagebutton" />
            </Columns>
            <EditFormSettings>
                <EditColumn ButtonType="ImageButton" InsertText="Insert" UpdateText="Update" UniqueName="EditCommandColumn1" CancelText="Cancel">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
    </telerik:RadGrid>

And this is my datasource:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues" 
        ConnectionString="<%$ ConnectionStrings:ClarityConnectionString %>" 
        OldValuesParameterFormatString="original_{0}" 
        DeleteCommand="DELETE FROM invClientsEquipmentInOffice WHERE (ID = @original_ID)" 
        InsertCommand="INSERT INTO invClientsEquipmentInOffice(Client_Name, Equipment, Serial_Number, Reason) VALUES (@Client_Name,@Equipment,@Serial_Number,@Reason)" 
        SelectCommand="SELECT ID, Client_Name, Equipment, Serial_Number, Reason FROM invClientsEquipmentInOffice" 
        UpdateCommand="UPDATE invClientsEquipmentInOffice SET Client_Name = @Client_Name, Equipment = @Equipment, Serial_Number = @Serial_Number, Reason = @Reason where ID = @original_ID">
        <DeleteParameters>
            <asp:Parameter Name="original_ID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Client_Name" Type="String" />
            <asp:Parameter Name="Equipment" Type="String" />
            <asp:Parameter Name="Serial_Number" Type="String" />
            <asp:Parameter Name="Reason" Type="String" />
            <asp:Parameter Name="original_ID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Client_Name" Type="String" />
            <asp:Parameter Name="Equipment" Type="String" />
            <asp:Parameter Name="Serial_Number" Type="String" />
            <asp:Parameter Name="Reason" Type="String" />
        </InsertParameters>
        </asp:SqlDataSource>

There is nothing in the code behind.

Partial Class inventory
    Inherits System.Web.UI.Page

End Class

Ok. The problem is that when you click the edit icon on any Row the entire page posts back and is painfully slow. Is there any way to prevent this postback?

Is there any built in default AJAX functionality for CRUD operations? One would think that by default when you click the edit icon that everything would happen client side as all the information is in the row you just clicked?

How do I find out what is happening when this postback occurs? Is it rebinding to the datasource every time I wonder?

Note: It should be noted that this is the "out of the box" RagGrid, I have not written any custom code for this one it was entirely created in Design View.

Note: It should also be noted that the select query return only 35 rows and runs in SSMS in 00:00:00 time.



Princy
Top achievements
Rank 2
 answered on 10 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?