Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
53 views
hi team,

i wish to display the "show 24 hours" as a full stretch throughout the footer.. i.e. the link should be available through all the footer... is it possible?
ganesh
Top achievements
Rank 2
 answered on 18 Jan 2011
1 answer
71 views
Okay - I have created a radWindow before, but did not run into this problem.  Also, this radWindow is a little different as there is no RadGrid within the radWindow.  It is just labels and textboxes for editing.  Here is my  code:  Thank you so much for your help.  When I click edit it opens the radWindow but it does not diplay anything but the title and then 15 seconds later it closes.

Parent page:

 

<

 

telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">

 

 

 

 

 

<script type="text/javascript">
var parent_window = window;

 

 

function openNewVenWin() {
var oWnd1 = radopen("Vendor_Add.aspx", "RadWindow1");
}

 

 

function openEditVenWin(vendorCode) {
var oWnd2 = radopen("Vendor_Edit.aspx?ID=" + vendorCode, "RadWindow2");
}

 

 

function openMaintWin() {
var oWnd3 = radopen("Maintenance.aspx", "RadWindow3");
}

 

 

function CloseOnReload() {
$find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}

function
confirmDelete(vendor) {
confirm(
"Are you sure that you want to delete " + vendor + "?");
}
</script>
</telerik:RadCodeBlock>

 

<

 

telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
ReloadOnShow="true" runat="server" Skin="Sunset">
<Windows>|
<telerik:RadWindow ReloadOnShow="true" ID="RadWindow1"
Width="880px" Height="600px" Title="Add New Vendor" Behaviors="Close, Move, Resize, Maximize"
runat="server" NavigateUrl="Vendor_Add.aspx" Modal="true">
</telerik:RadWindow>
<telerik:RadWindow ReloadOnShow="true" ID="RadWindow2"
Width="880px" Height="600px" Title="Edit Vendor" Behaviors="Close, Move, Resize, Maximize"
runat="server" NavigateUrl="Vendor_Edit.aspx" Modal="true">
</telerik:RadWindow>
<telerik:RadWindow O ReloadOnShow="true" ID="RadWindow3"
Width="880px" Height="600px" Title="Maintenance" Behaviors="Close, Move, Resize, Maximize"
runat="server" NavigateUrl="Maintenance.aspx" Modal="true">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

This is the button  that I am selecting to open up the radWindow:
<asp:Button ID="editButton" style="text-decoration:none" CommandName="EditButton" runat="server"
Text="Edit" OnClientClick='<%# Eval("VendorCode", "return openEditVenWin(\"{0}\")")%>' >
</asp:Button>

RadAjaxManager on parent page:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="radGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

Child page:

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
<script type="text/javascript">
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}

 

 

function closeWin() {
GetRadWindow().close();
}

 

 

function CloseAndRedirect(sender, args) {
GetRadWindow().close();
GetRadWindow().BrowserWindow.location.reload();
GetRadWindow().BrowserWindow.location.href =
'Checklist.aspx'; //Redirect to new url
// //GetRadWindow().BrowserWindow.location.reload('Checklist.aspx');
// GetRadWindow().close(); //closes the window
}

 

 

function confirmDelete(vendor) {
confirm(
"Are you sure that you want to delete " + vendor + "?");
}
</script>
</telerik:RadCodeBlock>

RadAjaxManager on child:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="main">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="main" />
<telerik:AjaxUpdatedControl ControlID="blistErrors" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

 

Svetlina Anati
Telerik team
 answered on 18 Jan 2011
5 answers
114 views

I have a mode in application that uses radeditor where a certain role, call it “user” has no ability to modify content other than through 3 custom “note annotation” buttons on custom tool bar and in the context menu (add note, delete note, modify note).  I figure there are two ways of doing this with radeditor;

1.       Use Design mode and when the ‘user role’ is detected go into design mode remove all the tool bars except the one that has the 3 annotation buttons remove all context menus except the 3 annotation buttons.  I can disable content by catching all keystokes (that I want to catch) in a client side key event handler.  (This mode is the one I’m currently coding to at the moment)

Problems with this method:

1.       I have some bordered colored span tags that the “user role” can grab with the mouse and move around, which I would like to disable.

2.       Some content is in tables and the “user role” can size the borders, which I would like to disable.

3.       All tables even with invisible borders can have their border sized modified by the “user role”

2.       Use Preview mode.  I can enable the three button based on this support article http://www.telerik.com/support/kb/aspnet-ajax/editor/enabling-print-button-in-preview-mode.aspx .  Here there is not the problems listed in #1 but there are other problems introduced;

Problems with this method (so far)

1.       Some html document elements don’t work, like getElementById which is essential for inserting annotations into document

2.       It does not appear that the editor content can be modified by client side programming.

3.       Cursor selection is disabled

If I could overcome the problems for either 1 or 2 I think I could fulfill my “user role” requirement with limited user editing via client/server program control

Thank you for any thoughts on the issue.

Dobromir
Telerik team
 answered on 18 Jan 2011
1 answer
48 views
In My RadGrid there is 3 listbox where user can select multiple option and then he can update his/her data.I have done dropdown with single selection but not listbox with multiple option. I need ur help. When User will update then Id will be save to database.How Can I find value of selected text.Please Help me. Asp.net3.5.
Princy
Top achievements
Rank 2
 answered on 18 Jan 2011
3 answers
182 views
I'm running VS2010
I have an existing web project
When I open a web form in which I want to place a control I see all the standard web form controls but no Telerik.
I tried launching the Toolbox Configurator and then tell it to install the v.2010.3.1215.40 [Installation Folder] [Trial]
After relaunching they were in the toolbox for a second but when I opened it again they were gone.
Now they never appear after running the configurator.  Even if I exit and relaunch VS 2010;
Petar
Telerik team
 answered on 18 Jan 2011
3 answers
125 views
Howdy,

I am looking for more info on the Custom Links drop-down used on the editor control.  I am adding a bunch of custom links to the control and everything is working great. However, the link display is not the best.  The value of the Name property on some of the links is fairly long (30+ chars) and these links are one to two levels deep in the drop-down (I have the links in two levels of categories) which means there is white space to the left of the link names.  

When the link is long, the link that follows the long one is indented and does not look proper. Can I control how the links are displayed (ie no wrap)? Can I get rid of the unwanted indention? I have not seen any example of nested links with long text. Also can I control the width of the drop-down area, so that the control width remain normal in the toolbar, but the drop-down is large to handle the long link name?

Thanks,
Seth
Dobromir
Telerik team
 answered on 18 Jan 2011
1 answer
103 views
Hello,

I have a simple drop down:

<div style="margin: 0 0 15px 0;"><b>Available User(s):</b>
<telerik:RadComboBox ID="rcbApprovalUsers" runat="server" MarkFirstMatch="true" AllowCustomText="false"
    Filter="Contains" Width="250px" />
</div>

void rcbApprovalUsers_DataBinding(object sender, EventArgs e)
{
    List<ApproverInfo> unassignedApprovalUsers =
        CustomerFactory.ApprovalForwardingGetUnassigned(ECISite.ID, Master.ECICustomer.ID, Master.ECISession.AccountInfo.AccountNumber);
 
    rcbApprovalUsers.Visible = bAddApprover.Visible = (unassignedApprovalUsers.Count != 0);
    lNoApproversAvailable.Visible = (unassignedApprovalUsers.Count == 0);
 
 
    if (unassignedApprovalUsers.Count > 0)
    {
        rcbApprovalUsers.DataSource = unassignedApprovalUsers;
        rcbApprovalUsers.DataTextField = "UserInfo";
        rcbApprovalUsers.DataValueField = "CustomerID";
        rcbApprovalUsers.SelectedValue = unassignedApprovalUsers[0].CustomerID.ToString();
    }
}

If I click on this drop-down I see the following behaviors:

1) Text for selected value is highlighted.
2) Combo box expands to display values
3) On typing values the values filter to those containing the typed text

However, if I tab to this drop-down the behavior is different.  The combo box won't expand when I start typing and the only way to make this happen is to physically click on the combo box.

Is there a way to make the combo box expand when they start typing regardless of whether they tabbed or clicked to it?  Basically I would like the user to be able to see the available values containing their typed text without having to click the drop-down.

Thanks,
Andy
Kate
Telerik team
 answered on 18 Jan 2011
1 answer
56 views
Hi. I have a RadGrid that will display some records from a database table (using an sqldatasource). The user can edit and add records as normal. However, there is one field (called "default") which has special conditions associated with it. For a given set of records, only one record should have default=true.

I want to set client select = true such that only one record can be selected at a time (which is easy to do on the RadGrid). Then in the commandItem I want to add a button for a custom command "SetDefault". I am happy doing all of that - no problems.

My question relates to the code behind for the custom command "SetDefault". I can see three ways of doing what I want and would appreciate any view/comment about the best solution. If I do it within the Grid I am not sure how best to implement it. Options I can see are:

1. in the code use a datacontext and then a program loop to modify each of the records (easy to do) and I then assume I will need to refresh the grid.

2. somehow use an sql update query to update all of the records necessary (I can write the sql update query but I don't know how to execute a query from code) and then again refresh the grid

3. somehow process the RadGrid from the code that implements the custom command. This will have to do a foreach (GridDataItem item in RadGrid1.Items) loop that then modifies the value of a column in the grid. Questions: do I need to put each item into edit mode? How do I reference a column from the code to modify it's value? What do I need to do to then save the modified value? I am concerned that this approach will be slower than either of the previous two options - hence my question


Does this make sense?
Iana Tsolova
Telerik team
 answered on 18 Jan 2011
1 answer
44 views

I am using dropdown within Radgrid which has inline editing.

Now when I click on dropdown and then dragging the below scroll bar the list items of dropdown is also moving.
Please have a look on attached screen and 
suggest me some solution:


Thanks
Mukesh

Maria Ilieva
Telerik team
 answered on 18 Jan 2011
1 answer
69 views
I have placed my grid inside a radtooltip but when I hover my mouse the tooltip is showing but my Grid is hidden. Please explain me why its happening.

 <ItemTemplate>
                <asp:Label ID="lblJobStatus" runat="server" Text='<%# FF_JobState.GetJobStateSummary(Container.DataItem) %>' />
                <div id="divJobStatus" class="tooltip">
                    <telerik:RadToolTip ID="RadToolTipJobStatus" runat="server" CssClass="tooltipBackColor"
                        TargetControlID="lblJobStatus" RelativeTo="Element" HideDelay="3000" HideEvent="LeaveTargetAndToolTip"
                        ShowCallout="true" Position="TopRight" Width="350px" Height="200px">
                        <asp:GridView ID="gvJobStates" runat="server" AutoGenerateColumns="False" ShowHeader="False"
                            Width="300px" CssClass="gridviewSpacing gvJobStates">
                            <Columns>
                                <asp:TemplateField SortExpression="JobStateName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblJobStateName" runat="server" Text='<%# Eval("JobStateName") %>' />
                                        <asp:HiddenField ID="hidJobStateKey" runat="server" Value='<%# Eval("JobStateKey")%>' />
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbIsCompleted" runat="server" AutoPostBack="true" OnCheckedChanged="cbIsCompleted_CheckedChanged"
                                            Checked='<%# Eval("IsCompleted")%>' ValidationGroup='<%# Eval("JobStateKey")%>' />
                                    </ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </telerik:RadToolTip>                    
                </div>
            </ItemTemplate>
Tsvetina
Telerik team
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?