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

Hello..
i applied sorting on Rad Grid using this Code

 <himani:HimaniGrid ID="HimaniGrid1" runat="server" AllowPaging="True"
                    AllowSorting="True" GridLines="None" AutoGenerateColumn="False">
                 
                 <MasterTableView AllowMultiColumnSorting="false" AllowNaturalSort="true"
                        cellspacing="-1"/>
            <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" />
            <HeaderStyle Width="100px" />

                </himani:HimaniGrid>
i m using link Button in Item Template...
its apply sorting on all Columns but not on link button column..
i also want to apply  sorting on link button Column...
 i m using basic sorting
link is given below
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/sorting/defaultcs.aspx
plz reply.....

Princy
Top achievements
Rank 2
 answered on 31 Dec 2009
1 answer
124 views
hello
i m using Rad Date Picker on a web form.i want this popup should be open according to my screen mean it should be auto customise according the screen.it should be automatic open on top side if buttom side is not enough space to open calender pop up..
plz resolve my Query after holidays
Shinu
Top achievements
Rank 2
 answered on 31 Dec 2009
1 answer
157 views
Hi,

I need to identify, when calling NeedDataSource() on my RADGrid, whether the action to invoke this is the RADMenu click (server-side click event handler for this control calls NeedDataSource()) or Page_Load, which calls likewise.

My RADGrid is in a RADAjaxManager:

            
                                  <telerik:RadAjaxManager ID="AjaxManager1" runat="server" EnableHistory="True"
                                                                                <AjaxSettings> 
                                                                                    <telerik:AjaxSetting AjaxControlID="RadTreeView1"
                                                                                        <UpdatedControls> 
                                                                                            <telerik:AjaxUpdatedControl ControlID="RadTreeView1" /> 
                                                                                                    <telerik:AjaxUpdatedControl /> 
                                                                                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                                                                            </UpdatedControls> 
                                                                                   </telerik:AjaxSetting> 
                                                                             </AjaxSettings> 
                                                                            </telerik:RadAjaxManager> 


Thus, will the below work?

        RadMenu test = source as RadMenu; 
 

So if this is null, RadMenu could not be invoking the event handler and thus it must be Page_Load. I am not soure if object source is like object sender, and if I should replace RadMenu with RadAjaxManager?


Thanks







Princy
Top achievements
Rank 2
 answered on 31 Dec 2009
2 answers
101 views
Hello..
i applied sorting on Rad Grid using this Code

 <himani:HimaniGrid ID="HimaniGrid1" runat="server" AllowPaging="True"
                    AllowSorting="True" GridLines="None" AutoGenerateColumn="False">
                 
                 <MasterTableView AllowMultiColumnSorting="false" AllowNaturalSort="true"
                        cellspacing="-1"/>
            <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" />
            <HeaderStyle Width="100px" />

                </himani:HimaniGrid>
i m using link Button in Item Template...
its apply sorting on all Columns but not on link button column..
i also want to apply  sorting on link button Column...
plz reply.....

Harry
Top achievements
Rank 1
 answered on 31 Dec 2009
4 answers
130 views
I have a master table view with 2 detail table views under it.  I have a context menu that can expand both detail table views.  How does one expand only one of the detail table views?
Wyatt
Top achievements
Rank 1
 answered on 30 Dec 2009
5 answers
258 views
We use a technique of flushing text to the browser to show a progress indicator on pages that take a while to load.
We are basically sending html to display a GIF through the page_PreInit event as:

    Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
        Response.AddHeader("Refresh", Convert.ToString((Session.Timeout * 60) + 5))
        HttpContext.Current.Response.Buffer = True
        HttpContext.Current.Response.Write("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd'>")
        HttpContext.Current.Response.Write("<html xmlns='http://www.w3.org/1999/xhtml'>")
        HttpContext.Current.Response.Write("<div ID='divsplashScreen' runat='server'><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td class='copy' align='right' height='1'></td></tr><tr><td class='copyblack' style='font-family:tahoma;font-size:11px' align='center'><img src='images/progress.gif' border='0' align='absmiddle'><br></td></tr></table></div>")
        HttpContext.Current.Response.Write("</body></html>")
        HttpContext.Current.Response.Flush()
    End Sub

For the most part this approach causes no problems. However with using the ItemsRequested() event for a ListBox on a page using this technique it fails.  the ItemRequested() event fires and does not generate an error although the list box is not being populated by the this event.  I am assuming that this is happening because the document is not well formed.  Basically sending anything to the document prior to the DOCTYPE causing the event to fail. 

Can anyone think of a way around this?

Robert

Robert
Top achievements
Rank 1
 answered on 30 Dec 2009
3 answers
175 views
If you go to your demo and run http://demos.telerik.com/aspnet-ajax/spell/examples/phoneticalgorithm/defaultcs.aspx
please do the following: enter the word Tresting
Phonetic won't give you a testing suggestion
while edit distance does give me testing suggestion.

ok so I go back to my code and add the edit distance based spelling search to my rad editor. But this does not work. When I search I do not get the testing suggestion. It gives me the same suggestions as the Phonetic based search. Please help, thanks.

 

<telerik:RadEditor runat="server" ID="retNotesEditor" SkinID="BasicSetOfTools" Height="400px" OnClientLoad="OnClientLoad" SpellCheckSettings-SpellCheckProvider="EditDistanceProvider" spell>

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 



Rumen
Telerik team
 answered on 30 Dec 2009
2 answers
169 views
I have an Adobe Flash app that needs to retrieve an image from a URL on a webserver. If I just put the radbinary image control inside an ASPX page I can see the image if I browse directly to the page. But the flash application doesn't think it is in image. How can I do this?
robertgalvinjr
Top achievements
Rank 1
 answered on 30 Dec 2009
2 answers
127 views
When I run the DEMO it works fine. When I try to copy and paste the code into my project and run it, the spell checking example produces this huge multi lines toolbar, instead of the one-line toolbar.
http://localhost:8301/radcontrols_aspnetajax/editor/examples/spellchecker/defaultcs.aspx


What am I missing?

Martin
Top achievements
Rank 1
 answered on 30 Dec 2009
3 answers
188 views
We have a similar page to the demo grid here: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx In many of the columns, we have RadComboBoxes similar to the "Custom TemplateColumn Country" column.

Issue occurring / High Level:
If I move one of the columns, no postbacks occur. If I then use one of these RadComboBoxes to filter, then a postback occurs and all of the values in the drop downs (filled on prerender) are cleared out. If I then filter again (causing a postback) the values reappear. I'm not handling a certain event. Any ideas out there? Once you see the steps, it should seem obvious, but I'm not seeing it.

Any help would be great!

Steps to Reproduce:
  1. Load grid: Grid is not automatically created. I create the datasource and databind, then use the radgrid prerender to fill the drop down values in the gridboundcolumn filtertemplates.
  2. Use the mouse to move one of the columns to a new location.
  3. Use a column's filter (RadComboBox) to filter an item in the grid. (Postback occurs, calls special function on the server which again sets the datasource and rebind, then runs the radGrids prerender.
  4. Go and open one of the drop downs filled on the prerender and they're empty.
  5. If I change a filter somewhere else that causes a postback, the RadComboBoxes are refilled

ASPX.CS
protected void Page_Load(object sender, EventArgs e)
{
            if (!this.IsPostBack)
            {
                RadGridApples.DataSource = [datasource];
                RadGridApples.DataBind();
            }
}

public void GetNewResults(object sender, EventArgs e)
{
            //Update the datasource code

            RadGridApples.DataSource = [enter datasource here];
            RadGridApples.DataBind();
}

protected void RadGridApples_PreRender(object sender, EventArgs e)
        {
            foreach (GridFilteringItem filter in RadGridApples.MasterTableView.GetItems(GridItemType.FilteringItem))
            {
                #region Drop Down
                radComboBoxApples = (RadComboBox)filter.FindControl("radComboBoxApples");
                if (radComboBoxApples != null)
                {
                    radComboBoxApples.ClearSelection();
                    radComboBoxApples.DataSource = Enum.GetNames(typeof(Apples)).ToList();
                    radComboBoxApples.DataBind();
                }

ASPX

Grid information:
<telerik:RadGrid ID="RadGridApples" runat="server" AllowFilteringByColumn="True"
  AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
  GridLines="None" onprerender="RadGridApples_PreRender" Width="100%"
  PageSize="5" OnPageIndexChanged="RadGridApples_PageIndexChanged"
  OnSortCommand="GetNewResults" OnPageSizeChanged="GetNewResults" Skin="Outlook"
     >

Example column:
<telerik:GridBoundColumn HeaderText="Apples" UniqueName="appleCombo"
      DataField="Apple"
      SortAscImageUrl="\App_Themes\XYZ\img\RadGrid\SortAsc.gif"
      SortDescImageUrl="\App_Themes\XYZimg\RadGrid\SortDesc.gif"
      SortExpression="Apple"
      >
      <HeaderStyle Width="90px" />
      <ItemStyle HorizontalAlign="Left" Width="90px"></ItemStyle>
      <FilterTemplate>
        <telerik:RadComboBox ID="RadComboBoxApples" runat="server" AutoPostBack="True" AppendDataBoundItems="true" Width="100%" OnSelectedIndexChanged="GetNewResults">
          <Items>
            <telerik:RadComboBoxItem Text="" Value="" />
          </Items>
        </telerik:RadComboBox>
      </FilterTemplate>
    </telerik:GridBoundColumn>

Client Settings in the grid:
<ClientSettings AllowColumnsReorder="True"
    AllowRowHide="True" AllowRowsDragDrop="True" ReorderColumnsOnClient="True">
    <Selecting AllowRowSelect="True" />
    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    <Resizing AllowColumnResize="True" ClipCellContentOnResize="False" />
  </ClientSettings>


Joe Bailey
Top achievements
Rank 1
 answered on 30 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?