Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
185 views
Hi,
we are using radcombobox with LoadOnDemand. Everything works ok except the positioning of the item when we click on MoreResults. Items are loading correctly but the list of items in dropdownbox is positioned back in the first item again and not in the new first loaded item, that is, we see the first item if I scroll to the last item and then I click on MoreResults option; then new items are loaded but we see item(0) again and not item(10) if ItemsPerRequest is set to 10. In demo ComboBox / Load on Demand Modes (http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultvb.aspx ) it works fine.
Our radcombobox control is defined:

<Telerik:RadCombobox ID="ddl_radcombo" runat="server" AllowCustomText="false" AutoPostBack="true"  EnableLoadOnDemand="true" Filter="none" Height="100px" LoadingMessage="..." MarkFirstMatch="false" ShowMoreResultsBox="true" Width="95%">
</Telerik:RadCombobox>

Please, any cue?, any idea?

Thanks in advance.
Boyan Dimitrov
Telerik team
 answered on 28 Jan 2013
8 answers
797 views
Folks,

Environment: RadControls for ASP.NET AJAX Q3 2009 / VS 2008 SP1/IE7/WINXP SP 2.

Is it possible to open Rad Window from Radgrid CommandItemTemplate for both Insert and Update. I would like to customize this page (Window / Edit Dialog for RadGrid: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window). 

Thanks

gc_0620

below is my commanditemtemplate:

<CommandItemTemplate> 
 <div style="padding: 5px 5px;">  
 Custom command item template for Grid&nbsp;&nbsp;&nbsp;&nbsp;  
 <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected"   
 Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Edit selected</asp:LinkButton>&nbsp;&nbsp;  
 <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" /> Update</asp:LinkButton>&nbsp;&nbsp;  
 <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Cancel editing</asp:LinkButton>&nbsp;&nbsp;  
 ''''  
 ''''  
  New Link Button or href to add new rows via Radwindow->Radgrid.                          
  New Link Button or href to edit existing rows via Radwindow->Radgrid.  
  For Editing existings rows, the Visible property should be: Visible='<%# RadGrid1.EditIndexes.Count == 0 %>',  
  the same as above LinkButton 
ID="btnEditSelected".  My intention is prior to editing, users must select a Row from current RadGrid..
  ''''
  ''''
</
div> 
</CommandItemTemplate> 
 
Marin Bratanov
Telerik team
 answered on 28 Jan 2013
2 answers
72 views
Dear All
    I have an issue with the Rad Button

    I normally use it like so:

<telerik:RadButton ID="btnBack" runat="server" ButtonType="ToggleButton" ToggleType="CustomToggle"

Width="150px" Height="32px" ForeColor="White"

onclick="btnBack_Click" Text="Back to List" Font-Size="11pt" CssClass="border-5 glow-shadow-2">

<ToggleStates>

<telerik:RadButtonToggleState ImageUrl="../images/oButtonUp.gif" HoveredImageUrl="../images/oButtonHover.gif"

Selected="true" IsBackgroundImage="true" />

</ToggleStates>

</telerik:RadButton>

Normally looks great and works fine but on the Kindle Fire it does not display.  If you press where it should it highlights (but just an outline) but then does not click (post back)

I have tried on multiple platforms and it works fine just not the kindle - does any body else have this problem? Have I missed something ? Any suggestions ?

Many thanks

Stid
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
94 views

I need to convert an SSRS report that I developed into a Telerik grid which does similiar grouping (see attached files).

Notice that in the SSRS rpt, the data is grouped by CruiseLine, Ship, and Date. I want that same kind of grouping (not the look, just the correct grouping) in the Telerk Grid, but cannot achieve that desired result.

I've read articles and searched the web about this topic. I've tried several different things, but I just can't get it to group data on those fields.

The detail data is coming out fine (see attached file "telerik grp") with the correct display in the Group Header.

I don't know where the top line (CruiseLine, Ship, and Date) comes from via my grid. I don't see any properties that would display that. I'm not interested in any sorting, just grouping. btw, when I click on any of those 3, the grid just disappears.

Below, is my code for the grid.

Can somebody please help me achieve what should be, a simple grouping, and point out what I'm doing wrong that needs to be corrected?

<telerik:radgrid id="RadGrid1" runat="server" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" ShowGroupPanel="True"
                        ShowFooter="True" >
                        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                        <MasterTableView GroupsDefaultExpanded="false" GroupLoadMode="Client" ShowGroupFooter="True" pagesize="50"
                            ExpandCollapseColumn-Groupable="True">
                            <RowIndicatorColumn Visible="True"> 
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True"> 
                                <HeaderStyle Width="19px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CruiseLine" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Ship" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Date" ReadOnly="true" DataFormatString="{0:M/d/yyyy}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product1Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product2Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product3Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product4Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product5Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product6Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Sales" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <GroupByExpressions>
                              <telerik:GridGroupByExpression>
                                <SelectFields>
                                  <telerik:GridGroupByField FieldName="CruiseLine" />
                                  <telerik:GridGroupByField FieldName="Ship" />
                                  <telerik:GridGroupByField FieldName="Date" FormatString="{0:M/d/yyyy}" />
                                </SelectFields>
                                <GroupByFields>
                                  <telerik:GridGroupByField FieldName="CruiseLine" />
                                  <telerik:GridGroupByField FieldName="Ship" />
                                  <telerik:GridGroupByField FieldName="Date" FormatString="{0:M/d/yyyy}" />
                                </GroupByFields>
                              </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                        </MasterTableView>
                    </telerik:radgrid>
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
1 answer
70 views
I've already solved this problem but I thought I should post it here anyway.

I have a grid on a screen.  I've not had this problem with any other grid in the app.  The lead part of the grid is as follows:

<telerik:RadGrid Width="100%" ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCreated="RadGrid1_ItemCreated" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound" AllowFilteringByColumn="True" OnPreRender="RadGrid1_PreRender" AllowPaging="True" AllowSorting="True" PageSize="20">

I found that if I made the brower window resizable and started stretching out the length, the window suddenly went mostly blank, with the exception of what looks like a button in the top left corner.  It's almost as if there's some sort of featureless control on there.  I've attached a screen shot.

The fix is simply to reduce the Width to 99%.  Then it works perfectly.  I should also mention that this particular grid does not have the centering CSS declarations some of the others have.   (Currently running 2012.2.607.40.  Whenever I get the latest I'll try again.)

(Just checked.  This only happens in Chrome. IE and Firefox are apparently unaffected.)
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
6 answers
332 views
Hello,

I am having an issue with the RadListBox transfer buttons. It is happening in IE and in quirks mode only, yes I know about quirks mode and yes I have to use it for client compatibility issues. The buttons are rendering partially behind the listbox. Please see the screenshot for an example. The settings for the listbox are below though I don't think it is going to matter because what I need is a way to deal with IE5 compliant styling I think.

<telerik:RadListBox ID="rlbRoutes" runat="server" AllowTransfer="true" TransferToID="rlbSelectedRoutes"  CausesValidation="false"
    TransferMode="Move" AutoPostBackOnTransfer="true" SelectionMode="Multiple" Height="200px" Width="200px" visible="true" Enabled="true" OnTransferred="rlbRoutes_Transferred">
    <ButtonSettings Position="Right"  VerticalAlign="Middle"  ShowDelete="false" ShowTransferAll="true" ShowReorder="false"   HorizontalAlign="Right" />
</telerik:RadListBox>

The one really weird thing is that if I change the AreaWidth to 20, the buttons scoot to the right just a bit but they never fully come out from behind the box. Another weird thing about this is that I took all of the code for the listbox and put it in to a new project and it renders fine, even in quirks mode. I am truly at a loss on this. I am wondering if it has anything to do with the fact that I am using this as a custom control instead of putting it directly in the .aspx page. This is the only difference between the original project and the new test project I made.
Ivan Zhekov
Telerik team
 answered on 28 Jan 2013
3 answers
328 views
I have a JavaScript function called 'ResizeGrid' that resizes the RadGrid.

I want to run it after the user clicks the column header and sorts the grid.
Emil
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
431 views
Hi 
I need to add a context menu to a treeviewcontext menu in asp.net Ajax. either to right on the tree view context or in the Menu format. The details to be bind from database.








Thanks
Boyan Dimitrov
Telerik team
 answered on 28 Jan 2013
5 answers
201 views

I have a grid with Auto Generate Columns at run time and Multi Row Selection:


<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True"

       oncolumncreated="RadGrid1_ColumnCreated">

       <ClientSettings>

             <Selecting AllowRowSelect="True" />

       </ClientSettings>

       <MasterTableView DataKeyNames="InventarioID" GroupLoadMode="Client">

             <Columns>

                    <telerik:GridClientSelectColumn UniqueName="SelectColumn"/>

             </Columns>

       </MasterTableView>

</telerik:RadGrid>

C#:

protected void Page_Load(object sender, EventArgs e)

{

       string _anno = StringHelpers.Right(DateTime.Today.Year.ToString(), 2);

       RadGrid1.DataSource = new DataClaseDataContext().MyTable.Select(s => new {....my fields...});

}

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)

{

       if (e.Column is GridBoundColumn)

       {

             ((GridBoundColumn)e.Column).DataFormatString = "<nobr>{0}</nobr>";

       }

}  


This works well and auto adjusts the column width to content, but this functionality is lost when grouped.


<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True"

                    oncolumncreated="RadGrid1_ColumnCreated">

       <ClientSettings>

             <Selecting AllowRowSelect="True" />

       </ClientSettings>

       <MasterTableView DataKeyNames="InventarioID" GroupLoadMode="Client">

             <Columns>

                    <telerik:GridClientSelectColumn UniqueName="SelectColumn"/>

             </Columns>

             <GroupByExpressions>

                    <telerik:GridGroupByExpression>

                           <SelectFields>

                                  <telerik:GridGroupByField FieldName="Area"/>

                           </SelectFields>

                           <SelectFields>

                                  <telerik:GridGroupByField FieldName="AreaDescription"

HeaderText=" " HeaderValueSeparator="" />

                           </SelectFields>

                           <GroupByFields>

                                  <telerik:GridGroupByField FieldName="Area"/>

                           </GroupByFields>

                    </telerik:GridGroupByExpression>

             </GroupByExpressions>

       </MasterTableView>

</telerik:RadGrid>  


Any help?


Eyup
Telerik team
 answered on 28 Jan 2013
1 answer
105 views
Hi,

How can override default editor style with our own colors/images?
We are using moss radeditor latest version. We require outlook kind of stylesheet.css and  we can use in our own skin assembly just like we have used for other telerik controls(radgrid,tabstrip etc).
We have not found such resource  for moss radeditor.

Can you provide us the stylesheet for radeditor or skin file ?


Thanks,
Ankit Trivedi


Rumen
Telerik team
 answered on 28 Jan 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?