Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
155 views
Hi,
I need to change the items in the paging radCombobox.
I have tried this, the items is changed visually but nothing happens when I click and choosing another item!
protected void radGridCompanies_ItemDataBound(object sender, GridItemEventArgs e) 
                    if (e.Item is GridPagerItem) 
                    { 
                        GridPagerItem pager = (GridPagerItem)e.Item; 
 
                        RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox"); 
                         
                        PageSizeCombo.Items.Clear(); 
                        PageSizeCombo.Items.Add(new RadComboBoxItem("10")); 
                        PageSizeCombo.Items.Add(new RadComboBoxItem("20")); 
                        PageSizeCombo.Items.Add(new RadComboBoxItem("50")); 
                        PageSizeCombo.Items.Add(new RadComboBoxItem("100")); 
                         
                        PageSizeCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true
                      }  
}  


Mattias
Top achievements
Rank 1
 answered on 08 Jul 2009
1 answer
107 views
I suppose this will be more of a javascript question.

The Upload/Additional Fields example http://demos.telerik.com/aspnet-ajax/upload/examples/additionalfields/defaultcs.aspx is nice, but how does one make the additional text boxes multi-line as well as set their max length, rows, etc, - in other words, how to set the other properties we commonly see in an asp:TextBox control?
Paul
Telerik team
 answered on 08 Jul 2009
1 answer
106 views
Hi Everyone,

When RadCalendar property ShowDayCellTooltips is set to true, tooltips for each and every day are displayed.
When it is set to false, no tooltips ever displayed for day cells.

Is it possible not to display tooltips for regular days but show them for special days?

I've tried setting ShowDayCellTooltips=true along with  overriding DayRender routine like
    protected void rcDates_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)  
    {  
        e.Day.ToolTip = "";  
    } 

that has no effect as tooltips showing cell date, like "12-Jan-2009" still appear for regular days.
Riana Sattarova (Mamedova)
Top achievements
Rank 1
 answered on 08 Jul 2009
0 answers
71 views
Hi

   To get similar kind of menu as in telerik ( i mean when i click on the expand button ( which is on lthe left side of menu item ) it should expand it menu items ), i am using follwing code

<telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="true"> 
    <Items> 
        <telerik:RadMenuItem runat="server" Text="PRODUCTS" >                     
            <ItemTemplate> 
                &nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Text="PRODUCTS" onclick="redirect();"></asp:Label>                             
                <img alt="More Options" src="../Images/Refresh.gif" id="Img" onclick="openMenu();" /> 
            </ItemTemplate> 
            <Items> 
                <telerik:RadMenuItem Text="ASP.NET AJAX Controls" runat="server"> 
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem Text="WinForms Controls" runat="server"> 
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem runat="server" Text="CONSULTING" NavigateUrl="http://www.google.com"> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem runat="server" Text="PURCHASE" NavigateUrl="http://www.google.com"> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem runat="server" Text="SUPPORT " NavigateUrl="http://www.google.com"> 
            <GroupSettings Flow="Horizontal"></GroupSettings> 
        </telerik:RadMenuItem> 
    </Items> 
</telerik:RadMenu> 

<script type="text/javascript"> 
function openMenu() 

    var menu = $find("<%= RadMenu1.ClientID %>"); 
    var item = menu.findItemByText("PRODUCTS"); 
    item.open();     

function redirect() 

    window.location.href="http://www.telerik.com"; 

</script>

Its working well and good........but here my requirement is " the image(Refresh.gif) beside the product menuItem  should be invisible. and it should be visible when I hover on it." How can i do this.Can you please help me in this

Thanks
Srikanth gn

srikanth
Top achievements
Rank 1
 asked on 08 Jul 2009
1 answer
130 views
i added listbox into the panel bar and the listbox doesn't stay inside the bar but rather on top of it. so if i expand item 1 that has the listbox, i can't see item 2 or radlistbox will be on top of it. so how do i make it stay inside the radpanelbar

second question i have is after installing q2 2009 the file size in add remove program is actually smaller than q1 2009. is there a reason? did you take some tools off? please let me know. thank you.
Helen
Telerik team
 answered on 08 Jul 2009
5 answers
345 views
Hi
I am using RadGrid,  and I have a problem with the "Edit,Update,Cancel" 'Delete" columns.
Everything is working fine if the button styles are set to 'LinkButton' or 'Pushbutton'

However as long as I change the button style to "Imagebutton", and clicking "Edit" or "Delete " button the application crashes.
with exception like below:
 
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."

And everything stopped in the file "MicrosoftAjax.debug.js" line 4723
......................................
            _this._clearTimer();
            _this._responseAvailable = true;
            try {
                _this._webRequest.completed(Sys.EventArgs.Empty);
            }
            finally {   ------------------------------------------------------------------------------->stops here
                if (_this._xmlHttpRequest != null) {
                    _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                    _this._xmlHttpRequest = null;
                }
            }
        }

Wondering whether some settings need to be done, thanks if anyone can help me.
Daniel
Telerik team
 answered on 08 Jul 2009
8 answers
251 views
Hi, I am creating a grid using autogenerated columns and the problem I am having is that the columns are not being created in the order that they are being returned in the the dataset. I need them to be created in a certain sequence because it is supposed to be a report and the columns are dollar ranges.

Also, in the ColumnCreated event I am trying to figure out how to view the index of the column. I do not know the unique names and need to access these columns by their index. Every time I try to access OrderIndex the value is -1. Am I missing something here?

So,

#1 - how can I guarantee that the autogenerated columns will be created in a particular sequence (based on how they are ordered/returned in the dataset)

#2 - how can I access a column in the ColumnCreated event by its index?

Thanks.
Iana Tsolova
Telerik team
 answered on 08 Jul 2009
6 answers
182 views

<telerik:RadScriptBlock>  
  function OnGroupExpanding(sender, eventArgs) {  
    //To put the current group code into hidfiled
  }  
  function OnGroupCollapsing(sender, eventArgs) {  
    //To remove the current group code from hidfield
  }  
</telerik:RadScriptBlock>  
 
<asp:HiddenField ID="hidExpandGroupKeys" runat="server" />  
 
<telerik:RadGrid runat="server" ID="ItemsList">  
<MasterTableView DataKeyNames="code">  
<GroupByExpressions>  
  <telerik:GridGroupByExpression>  
     <GroupByFields>  
        <telerik:GridGroupByField FieldName="SubGroupCode"></telerik:GridGroupByField>  
     </GroupByFields>  
  </telerik:GridGroupByExpression>  
</GroupByExpressions>  
<Columns>  
  <telerik:GridBoundColumn DataField="code">  
  </telerik:GridBoundColumn>  
  <telerik:GridBoundColumn DataField="SubGroupCode">  
  </telerik:GridBoundColumn>  
</Columns>  
</MasterTableView>  
<ClientSettings>  
  <ClientEvents OnGroupCollapsing="OnGroupCollapsing" OnGroupExpanding="OnGroupExpanding" />  
</ClientSettings>  
</telerik:RadGrid> 
I want to put all the Expanding group code into the hidden field.
So that the interface can remember the status of all groups after post back every time.

I'm not sure how can I get the "SubGroupCode" from the event OnGroupExpanding and OnGroupCollapsing.
Is there anyone can help me? Thanks ahead.
Veli
Telerik team
 answered on 08 Jul 2009
4 answers
221 views
How do i programmatically force a tab to move to from one tab to another and get the multipage to do the same im using c# by the way

thanks
Kevin
Paul
Telerik team
 answered on 08 Jul 2009
8 answers
822 views
Hi

My grid has a column called DistanceTravelled. I have a sum aggregate on this field. My grid is also grouped on another field. This means that there is a Sum of DistanceTravelled per group and for the entire grid.

<

 

telerik:GridGroupByField FieldAlias="Total" Aggregate="Sum" FieldName="DistanceTravelled" />

 

<

 

telerik:GridBoundColumn DataField="DistanceTravelled" HeaderText="Distance Travelled (miles)" UniqueName="DistanceTravelled" Aggregate="Sum"  DataFormatString="{0:F2}" FooterText="Total: "

 

 

 

 

></telerik:GridBoundColumn>

 


I can't format my grid and group footers properly.

Firstly I format the DistanceTravelled column as a whole to 2 decimal places uses a DataFormatString in the bound column. It seems to me that this overrides anything specified in the FooterText property of the bound column or the FormatString property of the aggregate field. With the example above, both the group and grid footers are simply shown as a number to 2dp - the word "Total" is not displayed. If I remove the DataFormatString property I get the FooterText "Total" output in the group/grid footers but the number after it is not shown to 2 decimal places

This is what i would like but i don't know how to achieve it:

1) The column formatted to 2 decimal places
2) The group footer to say Total for group: x.xx where x.xx is the number to 2 decimal places
3)The grid footer to say Total: x.xx

Many thanks in advance
Sebastian
Telerik team
 answered on 08 Jul 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?