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

Is it possible to take the Appointment-object from the "clientFormCreated"-funktion, modify it in a separate "telerik:RadWindow" with own logic (search, etc.)  and then send the updated Appointment-object to either OnClientAppointmentWebServiceInserting-function or OnClientAppointmentWebServiceUpdating-function?

I have very little data, just subject, one resource, and date/time, but i need to implement search in some different ways to let the user find the correct resource.

Can i cancel the showing on the advanced form in "clientFormCreated"? I just want to get the Appointment-object.

/Olle



Plamen
Telerik team
 answered on 28 Jan 2013
3 answers
109 views
hello
i want to create an custom button on page that by clicking it, the radgrid will update all records.
i have already button inside grid called "UpdateAll" and i want to fire this button. my grid is always in edit mode.
how can i do this?
Maor
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
242 views
My project uses the JavaScript add_close function to attach an OnClientClose event handler to a RadWindow.  The functionality is very similar to the one in the Returning Values from a Dialog example project.  The only difference is that it uses the add_close function described in this RadWindow documentation instead of setting the OnClientClose property. 

I initially developed for Internet Explorer, which has been working perfectly well, but now we find that it doesn't work in Chrome or Firefox.  I put an alert within the OnClientClose function, and it is never being reached.  Can you explain what is different about these browsers that prevents the function from working?

A few extra bits of information, for context: 
  • I have never gotten an error, as some people have experienced.  It never seems to be looking for a function that doesn't exist, it just doesn't try to call the function.
  • The window I am opening has a content URL of another .aspx page within my project.  The window's content does not exist on the same .aspx page, because it needs to be able to direct to different URLs based on certain user input.
  • The window is closed by clicking an "OK" button, which calls a returnToParent function which attaches a result then calls oWnd.close(oArg), just like in the example mentioned above
Marin Bratanov
Telerik team
 answered on 28 Jan 2013
5 answers
151 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
757 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
57 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
80 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
62 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
309 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
298 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?