Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
264 views
Hi

I am new to the RadControls, but I am enjoying using them.

I have an issue with the OnSelectedIndexChanged event not firing and running the codebehind.  I have it working with the standard Microsoft control but can't seem to get this one going.

Below is the code I currently have.

Thanks for your assistant.

Paul

            <div class="equipSalesGrid">  
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Web4.App_code.WebSiteContentDataContext" 
                    Select="new (ShortDescription, EquipmentId, ThumbNailURL)" TableName="EquipmentSales">  
                </asp:LinqDataSource> 
                <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
                    DataSourceID="LinqDataSource1" GridLines="None" Skin="Black" Width="260px" PageSize="4" 
                     MasterTableView-DataKeyNames="EquipmentId" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">  
                    <HeaderContextMenu> 
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </HeaderContextMenu> 
                    <MasterTableView DataSourceID="LinqDataSource1">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="EquipmentId" DataType="System.Int32" Display="False" 
                                ReadOnly="True" UniqueName="column2">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="ShortDescription" HeaderText="Item" ReadOnly="True" 
                                SortExpression="ShortDescription" UniqueName="column">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Image">  
                                <ItemTemplate> 
                                    <asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ThumbnailURL").ToString().Trim()%>' 
                                        ID="GridImage" runat="server" Height="100px" Width="100px" /> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">  
                    <Selecting AllowRowSelect="true" /> 
                    </ClientSettings> 
                    <FilterMenu> 
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 
            </div> 
 
danparker276
Top achievements
Rank 2
 answered on 16 Mar 2013
4 answers
329 views
<asp:RadioButton ID="rb_yes" runat="server" GroupName="test" Text="Yes" AutoPostBack="true" />
<asp:RadioButton ID="rb_no" runat="server" GroupName="test" Text="No" AutoPostBack="true" />

the above works fine and it does go into the
checkedchanged function.

however, when i put
<telerik:radajaxmanager id="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" >  
            <ClientEvents OnRequestStart="RequestStart" />
            <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="rb_yes">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnl_Test" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="txt_imageurl" />
                        <telerik:AjaxUpdatedControl ControlID="txt_imagename" />
                        <telerik:AjaxUpdatedControl ControlID="btn_uploadImage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
</telerik:radajaxmanager>

the postback doesn't fire. any ideas?
Adam
Top achievements
Rank 1
 answered on 15 Mar 2013
7 answers
763 views
Hi,

I am setting the datasource in the client side using JQuery to get the data from server. I want to use custom sorting.

 

function Grid_Command(sender, args) {

 

args.set_cancel(

 

true);/

 

 

args.get_commandName(), args.get_commandArgument());
//Do Sorting with JQuery
}

1. How do I know the sorting mode in client side (asc, desc or no sort..)?

2. Also I want to display custom sort image next to the coumn header. How do I do that?

Thanks

Anand
Top achievements
Rank 1
 answered on 15 Mar 2013
2 answers
82 views
Hi,

I have enabled headercontextmenu on my radgrid. On selecting columns, I can see all the columns with checkbox. The scrollbar works when I hower on top and bottom of the containter, but I can't see the scrollbar. Is there a property that I need to set to view the scrollbar.
I tried grid.EnableAutoScroll = true; but that didn't help.

Thanks for your time!
Raj
Raj
Top achievements
Rank 1
 answered on 15 Mar 2013
9 answers
458 views
Hi

Simple one this (I hope) but can't figure it out.

I want to resize the uploaded image and overwrite the uploaded file (in the target folder) with the resized one.

Is there any code available on how to do this?

Andy
Fabio Cirillo
Top achievements
Rank 1
 answered on 15 Mar 2013
3 answers
141 views
In English OS the pm/am displayed so smaller,but in Chinese OS the localized strings displayed too bigger to see the whole strings.How to fix that issue on occured on the chinese localilzed system?

 

Boyan Dimitrov
Telerik team
 answered on 15 Mar 2013
3 answers
174 views
I have a case where RadButton Changes checked value.  I run though the behind code.  the RadButton is checked. Then it appears as unchecked. I am using ajax.  I cant seem find out when it is changing the value.  any ideas.  Also in IE the page renders much slower and I will see the checked values for a second then it changes to unchecked.

Also, Is there a way to debug the ajax to see if the issue is coming form that?
Danail Vasilev
Telerik team
 answered on 15 Mar 2013
1 answer
139 views
How do you set the DisabledStyle for a ComboBox in Code Behind?

I tried this but it didn't work:
[ToolboxData("<{0}:RadComboBoxEx runat='server'></{0}:RadComboBoxEx>")]
public class RadComboBoxEx : RadComboBox
{
    public RadComboBoxEx()
        : base()
    {
        //this.DisabledStyle.BackColor = System.Drawing.Color.White;
        //this.DisabledStyle.ForeColor = System.Drawing.Color.LightGray;
        this.Init += new EventHandler(RadComboBoxEx_Init);
    }
 
    void RadComboBoxEx_Init(object sender, EventArgs e)
    {
        SetDisabledStyle(this.Controls);
    }
 
    private void SetDisabledStyle(ControlCollection controlCollection)
    {
        foreach(Control control in controlCollection)
        {
            if ( control is RadInputControl )
            {
                RadInputControl input = (RadInputControl)control;
 
                input.DisabledStyle.BackColor = System.Drawing.Color.White;
                input.DisabledStyle.ForeColor = System.Drawing.Color.LightGray;
            }
            else
            {
                SetDisabledStyle(control.Controls);
            }
        }
    }
Nencho
Telerik team
 answered on 15 Mar 2013
1 answer
470 views
Hi,
I using VS2012. I am using a telerik radgrid and binding the grid to customer information in a dataset(single dataset). A single customer can have many records in the dataset. Hence in my grid i want to have my first column as a expand-collapse button '(+)' column. If a single customer is getting repeated in the dataset (which i get to know from the 'customer name' column and thier unique 'customer ID' column in the dataset), i want to  display the (+) expand button, on click of expand i want to display the other records for this same customer, and on clicking collapse(-) button i want to show only one record for that customer. If the customer name is unique in the dataset then i dont want to display the expand-collapse button in the first column. Is there any way to do this ? Kindly help. Thanks in Advance.
Marin
Telerik team
 answered on 15 Mar 2013
1 answer
52 views
Hi,
How can I Show Hide properties in Set Image Properties Dialog?

Thanks,
Amr Saafan
Rumen
Telerik team
 answered on 15 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?