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

Hello,

in the Link Manager Dialog, for the fields with id="LinkURL" and id="LinkTargetCombo",
I would like to use respectively a RadTextBox and a RadComboBox (the aspect of the
corresponding components input and select is not that of the selected skin fot the RadEditor).
How can I modify the JavaScript code in LinkManager.ascx so that everything is working fine?
For the RadTextBox I've tried to change $get("LinkURL") with $get("LinkURL_text"), but when
I click on the RadTextBox its content disappears.
 
Thank you very much

AB

Rumen
Telerik team
 answered on 01 Aug 2012
2 answers
118 views
I am opening a RadWindow that starts a modal dialog I am using as a 4-step wizard.

The code on the page that launches the wizard does a set_status to successfully set the status to read "Step 1 of 4":

var oWnd = $find("<%=radNewProjectWizard.ClientID%>");
oWnd.show();
oWnd.set_title("New Project Wizard");
oWnd.MoveTo(482, 100);
oWnd.add_pageLoad(function () { oWnd.set_status("MyProject"); });
oWnd.add_close(NewProject_OnClientClose);


When the user clicks "next" I do a redirect to the next .aspx page in the series and want to update the status to "Step 2 of 4".

I am unable to refresh the status - it still says "Step 1 of 4".

The code I am using in step2.aspx is as follows:

<body onload="OnLoad()">
  
<...>
  
function OnLoad() {
            GetRadWindow().set_status("Step 2 of 4");
        }
  
function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)  
            return oWindow;
        }

I would assume the GetRadWindow gets a reference to the parent page (the RadWindow) and I should be able to do a set_status to update the status bar, but this doesn't seem to be the case.
Dave
Top achievements
Rank 1
 answered on 01 Aug 2012
2 answers
65 views
I found this thread: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/tool-tip-as-modal-popup.aspx

Which fixed my problems with my dropdownlists, but I'm also using a RadMonthYearPicker and despite adding

<style type="text/css">
 
.RadCalendarPopup
{
   z-index: 10000!important;
}
 
</style>

To the header of the aspx page I'm working on the popup on the picker still opens behind the modal window.

Is there a different css class I need to reference since it is a MonthYearPicker rather than a DatePicker?
Justyn Hunter
Top achievements
Rank 1
 answered on 01 Aug 2012
2 answers
75 views
Hello,

I am trying to implement the following custom filter: rather than looking for "Contains", that can return irrelevant results, it would look for "Contains Whole Word Only" through that specific column.
Please advise.

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 01 Aug 2012
4 answers
205 views
Dear telerik support,
hi
i have a problem with RadMultiPageof a tabstrip and this is it:
im loading 2 RadMultiPages with different content and the contents have different height 
if i set the the height of  RadMultiPage equal to my bigger content the i have a really bad white space in my second tab
and if set the height to the smaller one the bigger content mixes into other part of page 

how can i change the size of RadMultiPage (or actually set size for each RadPageView ) so that i dont have white space or mixing blocks

i know maybe i should use update panel but i appreciate if you show me how can i do it 

Best regards
Nencho
Telerik team
 answered on 01 Aug 2012
2 answers
127 views
I have a tabbed dialog with a pair of RadListBox controls with transfer enabled where I am using ClientChanges to determine what the user has done.  This works great for the normal case, however in the situation where the user has made a mistake (on another tab) and the dialog posted to the server and returned without saving and the dialog showing a validation error (with focus on the tab where the error was made) things are very broken.  When I return to the tab the RadListBox controls continue to show the proper items, but have clearly lost the change list so when the user fixes whatever was wrong (that caused the validation to fail) and resubmits the dialog no changes are seen on the server side (ClientChanges is empty).  I'm not sure how to fix this as the user has no indication that anything is wrong and the server has no indication that anything is wrong.  The user could make any change in the list boxes including undoing the changes they made prior to the previous submission, so just storing the ClientChanges change list on the server would not work. 

Is this just a bug in the list box control?  Is there something I should be doing that I have not done? 

Thanks for any help,

Scott
Dimitar Terziev
Telerik team
 answered on 01 Aug 2012
1 answer
115 views
Does anyone have a sample/example for the following situation?  I looked at the demos and can see parts here and there but still some gaps I can't seem to fill.

Here is the scenario:
I have a work order screen with some header information (ie work order #, start date, product, etc) and then below that a RadGrid with a list of some work order details for tracking scrap material generated while processing that work order. 

In this case I would like the use case to be the following:
  1. User selects work order from a search screen (already have this so not a big deal)
  2. When the scenario screen opens, I want the header and all grid row items (2 to 5 rows typically) to be in edit mode by default (ie AllowMultiRowEdit=true) with InLine edits all in edit mode.
  3. Instead of each grid row having it's own Update / Cancel, I would rather hide that and have a single Save/Cancel at the top of the screen. 

I have looked at the Kendo solution, however we would prefer to use the RadGrid solution if possible.
Thanks,
Shane
Eyup
Telerik team
 answered on 01 Aug 2012
1 answer
191 views
I am having trouble when resizing columns. I think it has to do with setting the filtering textbox widths on item rendering, but, I have to do this or the filtering textboxes do not fit within the columns (see filterboxnotfixed.gif attached).

When the grid first appears the columns and filter row matchup with the data table columns (see before.gif attached), however, when I go to resize column 3 everything gets messy (see after.gif attached).

Do you have any suggestions on how to resize the filter textboxes when column resizing occurs?

protected void RadGridAggressiveMatches_ItemCreated(object sender, GridItemEventArgs e)

{

if (e.Item is GridFilteringItem)

{

GridFilteringItem filteringItem = e.Item as GridFilteringItem;

 //set dimensions for the filter textbox
TextBox box = filteringItem["Column1"].Controls[0] as TextBox;
box.Width = Unit.Pixel(50);

box = filteringItem["Column2"].Controls[0] as TextBox

box.Width = Unit.Pixel(50);

box = filteringItem["Column3"].Controls[0] as TextBox;

box.Width = Unit.Pixel(175);

box = filteringItem["Column4"].Controls[0] as TextBox;

box.Width = Unit.Pixel(175);

box = filteringItem["Column5"].Controls[0] as TextBox;

box.Width = Unit.Pixel(175);

box = filteringItem["Column6"].Controls[0] as TextBox;

box.Width = Unit.Pixel(175);

box = filteringItem["Column7"].Controls[0] as TextBox;

box.Width = Unit.Pixel(15);

box = filteringItem["Column8"].Controls[0] as TextBox;

box.Width = Unit.Pixel(45);

}

}

 
<telerik:RadGrid ID="RadGridAggressiveMatches" runat="server" Width="1100px" Height="250px" DataMember="Aggressive Members"

 GridLines="None"

 AllowSorting="True"

 ShowFooter="True"

 Skin="Office2007"

 AutoGenerateColumns="False"

 AllowFilteringByColumn="True"

 onitemcreated="RadGridAggressiveMatches_ItemCreated"

 onselectedindexchanged="RadGridAggressiveMatches_SelectedIndexChanged"

 onsortcommand="RadGridAggressiveMatches_SortCommand"

 onneeddatasource="RadGridAggressiveMatches_NeedDataSource" >

 <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">

 <Selecting AllowRowSelect="True" />  

 <Scrolling AllowScroll="true" />

 <Resizing AllowColumnResize="true" AllowRowResize="true" ResizeGridOnColumnResize="false" />

 </ClientSettings>

 <MasterTableView TableLayout="Fixed" AllowFilteringByColumn="true" >

 <Columns>

 <telerik:GridBoundColumn UniqueName="Column1" DataField="Column1" HeaderText="Column 1" DataType="System.Int32"

 SortExpression="Column1" AllowFiltering="true" AutoPostBackOnFilter="false">

 <HeaderStyle Width="75px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column2" DataField="Column2" HeaderText="Column 2" DataType="System.Int32" SortExpression="Column2">
<HeaderStyle Width="75px" />
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column3" DataField="Column3" HeaderText="Column 3" DataType="System.String"

 SortExpression="Column3">

 <HeaderStyle Width="200px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column4" DataField="Column4" HeaderText="Column 4" DataType="System.String"

 SortExpression="Column4">

 <HeaderStyle Width="200px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column5" DataField="Column5" HeaderText="Column 5" DataType="System.String" SortExpression="Column5">

 <HeaderStyle Width="200px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column6" DataField="Column6" HeaderText="Column 6" DataType="System.String" SortExpression="Column6">

 <HeaderStyle Width="200px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Column7" DataField="Column7" HeaderText="Col 7" DataType="System.Int32" SortExpression="Column7">

 <HeaderStyle Width="40px" />

 <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 Font-Strikeout="False" Font-Underline="False" Wrap="False" />

 </telerik:GridBoundColumn>

 <telerik:GridTemplateColumn UniqueName="Column8" HeaderText="Column 8" SortExpression="Column8">

 <HeaderStyle Width="70px" />

 <ItemTemplate>

 <asp:RadioButtonList ID="RadionButtonListDecision" runat="server" RepeatDirection="Vertical">

 <asp:ListItem Value="1" Text="Yes"></asp:ListItem>

 <asp:ListItem Value="2" Text="No"></asp:ListItem>

 </asp:RadioButtonList>

 </ItemTemplate>

 </telerik:GridTemplateColumn>

 </Columns>

 </MasterTableView>

 <FilterMenu Skin="Office2007" EnableTheming="True">

 <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 </FilterMenu>

 </telerik:RadGrid>

Eyup
Telerik team
 answered on 01 Aug 2012
1 answer
74 views
We attempting to use the Grid and Editor in a similar manner as demonstrated in the Rad Gird Demo  'Save in Database'. http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx   For the most part the code works within our asp.net project excepting the Grid does not perform as expected.  <see attachment>  The user scenario;  The user selects 'edit' of an item as in Panel A of the attachment, the user abandons the edits by doing nothing to the the item,  The user selects 'edit' of the second item and the RadGrid renders an incomplete view of the items as shown in Panel B of the attachment.   Any suggestions are appreciated.
 Cheers,
Rumen
Telerik team
 answered on 01 Aug 2012
1 answer
221 views
hi
i want to create form builder in webForms .
how can i make this with form Element in Editor ?
how can I access to form elements in codeBehind C#?
I want to insert to Database from Elements .
Rumen
Telerik team
 answered on 01 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?