Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
66 views
hi team,

i found a solution to show all appointments in grid... i need to show current day events in grid...



also need to show the recurrence for current days +7 or -7 in another grid... !!!



can anyone help on this
ganesh
Top achievements
Rank 2
 asked on 03 Feb 2011
1 answer
133 views
Hi Telerik,
I need to achieve the fuction set_text like get_text.Because i append some text from database .That why i am asking.......
Thank you.
Rumen
Telerik team
 answered on 03 Feb 2011
1 answer
41 views
Hi;
I am using RADLIST BOX drag and drop functionality.
My question is how can I find which value User has selected to Drag from One list box to another
For Example:
I have one Listbox as ListBox1 which contains value India,SriLanka,USA etc.... How Can I find user has selected India to drag and drop
from ListBox1 to ListBox2  and viceversa.

From ListBox1 to ListBox2  If I fire sever side event "OnTransferred" then I can easily track the value but my question is IF the user drag and drop some value like India from ListBox2  to ListBox1 how can I find this Value

Please Reply ASAP it is very Urgent 
Princy
Top achievements
Rank 2
 answered on 03 Feb 2011
7 answers
131 views
Hi,
how to translate label ("Update", "Cancel") in pop-up of RadGrid:

http://img844.imageshack.us/img844/1816/przechwytywanietz.png

Thanks :)
Daniel
Telerik team
 answered on 03 Feb 2011
1 answer
67 views
Hi,

I have a radgrid, with a delete option as below:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>   
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlMaster">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMaster" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
  
<telerik:RadGrid ID="grdCompanyList"
                runat="server" GridLines="None"
                AutoGenerateColumns="False"
                AllowSorting="True"
                AllowFilteringByColumn = "True"
                AllowPaging="True"
                EnableLinqExpressions="False"
                PageSize="10"
                OnNeedDataSource="grdCompanyList_NeedDataSource"                
                OnItemDataBound="grdCompanyList_ItemDataBound"
                OnItemCommand = "grdCompanyList_ItemCommand">
                  
                <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>                                
                <MasterTableView DataKeyNames="watchlist_id" CommandItemDisplay="Top" EditMode="PopUp">
                <CommandItemSettings ShowAddNewRecordButton="false"/>
                <Columns>
  
                    <telerik:GridBoundColumn DataField="watchlist_id" DataType="System.Int32" 
                        HeaderText="watchlist_id" ReadOnly="True" SortExpression="watchlist_id" 
                        UniqueName="watchlist_id" Visible="false" >
                    </telerik:GridBoundColumn>
                      
                    <telerik:GridBoundColumn DataField="company_id" DataType="System.Int32" 
                        HeaderText="company_id" ReadOnly="True" SortExpression="company_id" 
                        UniqueName="company_id" Visible="false" >
                    </telerik:GridBoundColumn>
                      
                    <telerik:GridTemplateColumn AllowFiltering="false" ItemStyle-Width="180px">
                    <ItemTemplate>
                        <asp:Image width="142" height="58" ID="CompLogos" ImageUrl="<%# showCompLogo(Container.DataItem) %>"
                         runat="server" AlternateText="Logo" />
                    </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      
                    <telerik:GridBoundColumn DataField="company_name"
                        HeaderText="Company name" SortExpression="company_name" ItemStyle-Width="450"
                        UniqueName="company_name" ReadOnly="true">
                        <ItemStyle Width="450px" />
                    </telerik:GridBoundColumn>                   
                    
                    <telerik:GridTemplateColumn AllowFiltering="false" ItemStyle-Width="150px" HeaderText="Actions">
                    <ItemTemplate>
                        <div>
                            <span style="padding:0 5px">
                                <asp:HyperLink ID="CoLink" runat="server" ImageUrl="~/images/viewicon_big.png"
                                ToolTip="View Details"></asp:HyperLink>
                            </span>
                            <span style="padding:0 5px">                                
                                <asp:ImageButton runat="server" ID="DelButton" ImageUrl="~/images/delete-32.png" ToolTip="Delete"
                                CausesValidation="false" CommandName="Delete" />
                            </span>
                        </div>                        
                    </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true"></ClientSettings>
                </telerik:RadGrid>

The following is the delete code in c#:

protected void grdCompanyList_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == RadGrid.DeleteCommandName)
        {
            GridDataItem item = (GridDataItem)e.Item;
            string iWatch = item["watchlist_id"].Text;
  
            Power50MiddleWare.BL.Watchlist oWatch = new Power50MiddleWare.BL.Watchlist();
            oWatch._WatchlistId = Int32.Parse(iWatch);
            try
            {
                int retResult = oWatch.RemoveWatchlist();
                if (retResult == 1)
                {
                    GenerateWatchlist();
                    pnlMsg.Visible = true;
                    lblMsg.Text = "Successfully deleted your watchlist item";
                }
                else
                {
                    pnlMsg.Visible = true;
                    lblMsg.Text = "Sorry could not delete the item, please contact your system administrator";
                }
            }
            catch (System.Exception exp)
            {
                pnlMsg.Visible = true;
                lblMsg.Text = exp.Message.ToString() + exp.StackTrace;
            }
        }

However when i try this, i get an JS error as attached.

Please suggest.

Thanks,

Debashis
Radoslav
Telerik team
 answered on 03 Feb 2011
8 answers
327 views
I want to know if this is possible - I haven't seen anything out there yet.  I have a radTextBox in the header of my radGrid.  When the user enters a letter/number for the name I want the radGrid to autopopulate based upon what is entered in the search box - could be 1 - 7 letters.  Thanks for your help.
Tsvetina
Telerik team
 answered on 03 Feb 2011
1 answer
42 views
Hello,

  At the base of my Grid control, I have the Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric set as PagerStyle.Mode.  It shows the next page buttons, as well as a drop down list box of items on the page to the left.  And on the far right, it shows the number of items per page, such as "5 items in 4 pages."

  I would like to move that "5 items in 4 pages" text to be left aligned with the drop down box.  However, I can't figure out how to do it.  It seems as though the drop down box has a width of 100%, which pushes the "5 items" text to the right size.  I've tried various CSS tags to style the controls, but either I'm not doing it right, or what I want to do can't be done.

  Has anyone tackled this?  I think it's pretty simple, but I'm just stumped on how to do it.

Thanks!
Kevin J Baird
Iana Tsolova
Telerik team
 answered on 03 Feb 2011
1 answer
42 views
Hello,
I have a solution using masterpage, in witch i have pur radAjaxManager, and every page i am doing ajax, it is done in the master , with loadingpanel, that is set in the master. I have wrote it like this :

<

 

telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"

 

 

Skin="Vista" IsSticky="true" BackgroundPosition="Center" Height="60px"

 

 

Width="70px" HorizontalAlign="Center">

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<asp:ContentPlaceHolder ID="contentBody" runat="server">

 

 

--------------Here comes the pages---------------
</
asp:ContentPlaceHolder>
Actually , when ajax workes, i see the image loading but it is positioned in top of the page, and also take place. I want it to be in the center of the ajaxed place, and to above the content, not instead place in the content.
Is it possible?

I have attached a picture of how my loadingPanel is seen when ajaxed.

Thanks,
gila

 

gila
Top achievements
Rank 1
 answered on 03 Feb 2011
2 answers
103 views

Hi

I’m trying to setup a terms & conditions box.

What mechanism/control can I use to display html T & C text (coming from a data field) on a web form such that when user scrolls to the bottom of the text using scroll bar then an event is fired to designate that user has read all the text?

Many Thanks

Regards

John
Top achievements
Rank 1
 answered on 03 Feb 2011
1 answer
68 views
I have a RadGrid with Refresh on Command line. I am not using ajax for Grid but want that ajax action when I click refresh. I deleted the following code
<telerik:AjaxSetting AjaxControlID="RadGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid" 
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>

How can I just add refresh to ajax ?

Please help,
Smiely
Pavlina
Telerik team
 answered on 03 Feb 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?