Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
209 views
I've got a real need to be able to, from a client page, call a .ashx handler in my site, and have it return a bunch of html, including some telerik controls like textboxes, drop down boxes, masked edit type things, etc.

However, I've tried faking a page and adding rad controls to it and then getting the resulting html, but that tells me I need a script manager.  I've tried adding one in, but that tells me the helpful message of Object isn't instantiated...

Is there any good way that I can create controls without having a full .aspx page?
Dimitar Milushev
Telerik team
 answered on 07 May 2010
5 answers
218 views
We are currently using the WebBlue skin, which overall, looks great. But, we don't like some of the icons associated with this skin. The edit pencil is blue, as are the select and cancel icons. Is it possible to just change the icon set to that of another skin?
I want the cancel to be red, and the edit pencil to look like an edit pencil, not an all blue pencil.
Daniel
Telerik team
 answered on 07 May 2010
7 answers
280 views
Hi,

I bumped into a rather obscure problem when using RadWindow.
The problematic situation rises under the following circumstances:
An input field with selected content has style.display="none" on the same page as the RadWindow is shown. Then try to move or resize the window. An Unknown Runtime Error occurs in the Telerik script at the point where document.selection.empty() is called.
From DOM perspective I can imagine that emptying the selection on a non-visible element is problematic, but I think the Telerik script should anticipate such a situation and act accordingly instead of letting an error occur.

I can imagine it might come across as a weird situation having a hidden input field with selected content (on the same page as a RadWindow) so let me explain the situation I encountered the problem:
I have a edit form with a tab strip combined with a multi page. On the first tab the first input is selected and given focus so that the user can start altering the data easily. On the second tab there is a button which causes a RadWindow to appear as a modal dialogue where the edited user can be linked to user groups. When I let the selected content on the first tab to remain selected when I switch to the second tab, click the button which causes the RadWindow to appear and then try to move or resize the RadWindow I get the Unknow Runtime Error on the line where document.selection.empty() is called.

While searching for the one exact cause of my problem I have created a situation as simple as possible which demonstrates the problem. For your convenience I will place it here:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MoveRadWindowTest.aspx.cs" Inherits="CMS.Views.Tests.MoveRadWindowTest" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
 
<body> 
<form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
     
    <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="OpenRadWindow();return false;" /> 
     
    <div id="HideMe"> 
        <asp:TextBox ID="TextBox1" runat="server" /> 
    </div> 
     
    <telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" NavigateUrl="http://www.telerik.com" /> 
</form> 
     
    <script type="text/javascript"> 
        function OpenRadWindow() { 
            $get('HideMe').style.display = "none"; 
             
            $find("<%=RadWindow1.ClientID%>").show(); 
        } 
    </script> 
</body> 
</html> 
 

There is nothing custom in the code behind file.

I hope this problem can be fixed. (I expect a check whether the selected content is visible should be the way to go.)

Regards,

Mink
James
Top achievements
Rank 1
 answered on 07 May 2010
12 answers
284 views

When tabstrip is used along with radajax manager error (a is undefined) is raised in "Sys.UI.Control.initializeBase(this);this._element=a;a.control=this" 

Yana
Telerik team
 answered on 07 May 2010
1 answer
85 views
Hi, I;m using the tabstrip with a couple of pageviews.
On each tab/pageview, I am showing some settings for an application I am making.

So on each tab I am dynamically loading a different usercontrol with a form (with settings which are loaded) and a submit button.
I'm having touble when trying to find out if a postback is caused by a click on the tabstrip, or on the submit button.

If I click on a tab (causes a postback), the usercontrol should be loaded, and the form should be filled with the settings which are already present in the database.
If I click on an update button (causes a postback), the settings of the current usercontrol should be saved back to the database.

I'm doing this in the main page:

#Region "RadTabStrip1_TabClick"
        Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As RadTabStripEventArgs) Handles RadTabStrip1.TabClick
            Select Case RadTabStrip1.SelectedIndex
                Case 0
                    LoadGeneralSettings()
                Case 1
                    LoadMembershipSettings()
                Case 2
                    LoadUsersSettings()
                Case 3
                    ...
                Case 4
                    ...
            End Select
        End Sub
#End Region

And:

#Region "LoadMembershipSettings"
        Sub LoadMembershipSettings()
            Dim gMembershipSettings As MB.Modules.gMembershipSettings = LoadControl("~/DesktopModules/MB/ControlPanel/gMembershipSettings.ascx")
            gMembershipSettings .ModuleConfiguration = Me.ModuleConfiguration
            rpvMembershipSettings.Controls.Add(gMembershipSettings )
            gMembershipSettings.getsettings()
        End Sub
#End Region

So in gMembershipSettings.ascx I have a sub called getsettings, which loads the settings from the database and fills them in the form.
And I have an eventhandler for the update button which will save the settings to the database.

However when I click the submit button, it will first load the old settings again, and save those back to the database.

When I do something like

if not page.ispostback then
     gMembershipSettings.getsettings()
end if

It will not load the settings when I click on the tab.

So what should I do?


Yana
Telerik team
 answered on 07 May 2010
1 answer
65 views
Hello,

We have some issues using date filters on a RadGrid. The filter icon (.rgFilter) shows under the filter textbox in FF3.6. However this works fine on IE8.

On your RadGrid demo, we found this :
<div style="height: 20px; width: 120px; display: -moz-inline-stack;" class="RadPicker RadPicker_Default " id="RadGrid1_ctl00_ctl02_ctl02_RDIPFShippedDate_wrapper"> 

However, in our app, the "display: -moz-inline-stack" is missing.

We added the following CSS rule and it works fine, but it looks more like a hack from now :
.rgFilterRow .RadPicker 
{ 
  display: -moz-inline-stack; 
} 
 

Additionally we have a blank space on IE7 between date filter text boxes (.riTextBox) and calendar icons (.rcCalPopup). These should be close each other.

Thank you

Using :
- FF 3.6.3
- IE7
- Telerik 2010.1.415.40
- Default RadGrid skin
Dimo
Telerik team
 answered on 07 May 2010
1 answer
96 views
Hello Friend's

How to validate the DropDownList control inside built-in GridDropDownColumn.
i am not want to use gridtemplatecolumn

 

 

 


Shinu
Top achievements
Rank 2
 answered on 07 May 2010
2 answers
235 views
Here is my code...
  strDOB = strDOB & "/" & mid(USBHID.GetTrack(2), 30, 2) & "/" & mid(USBHID.GetTrack(2), 32, 2)  
document.getElementById ("ctl00_ContentPlaceHolder1_fvClients_DOBTextBox").value = strDOB 
It should populate my datepicker with the date of birth from my Javascript.

However this dosen't work using the control above, nothing is entered into the datepicker (and yes I have verified the variable holding the date is valid using an alert box) and looking at my rendered source code, I see that RadCalendar produces two more input controls:
ctl00_ContentPlaceHolder1_fvClients_DOBTextBox_dateInput_text
ctl00_ContentPlaceHolder1_fvClients_DOBTextBox_dateInput

If I change my JS code to populate these input boxes, I start to see results, however they still do not work.  If I use the input control which ends in "dateInput" and then click in the radDatePicker after it populates, the input control clears and the date is lost.

Then if I use the input control which ends in "dateInput_text" and then click in the radDatePicker after it populates, the input control changes to "0NaN/0NaN/0NaN" and the date reverts back default "minDate" of 1998/12/31

So my question is, using JS what input control should I be targeting and how do I get the date to "stick" even when someone clicks in the datePicker control field?
Dimo
Telerik team
 answered on 07 May 2010
7 answers
468 views
Hi,

Is there an ability to add rounded corners?  I couldn't see anything, but have only had a quick look.

Thanks,

Richard
Yana
Telerik team
 answered on 07 May 2010
2 answers
354 views
Hi.

I have a RadGrid (Q3 2009) that i add columns to dynamically at runtime.
My problem is that the total grid width is always 100% of the parent container and the columns are sized thereafter.

I would like the columns to have a size that has an "auto fit" to the content but when the column headers that in my case sometimes are quite long i would like to wrap them as well. But when I set the <HeaderStyle Wrap="true" /> the columns sometimes gets wrapped so that every single word is on a single line which looks really bad  (See attachment: croppercapture[1].png)
I would like to have a solution that provides MinWidth and MaxWidth type of values.

I have tried MasterTableView.TableLayout Fixed and Auto but without a decent result. Soo how can I make the grid to size its columns based on the content but still have wrapping but with more control. Can I do it in code behind, and perhaps use some kind of MeasureString() function to set the column size?

Any ideas how to solve my problem?

Thanks in advance.

//Johan

This is the markup.
        <telerik:RadGrid ID="RadGrid1" runat="server" OnColumnCreated="RadGrid1_ColumnCreated" AutoGenerateColumns="false" OnDataBound="RadGrid_DataBound" OnItemDataBound="RadGrid_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource" 
            OnSortCommand="RadGrid_SortCommand" AllowSorting="True" BorderWidth="0px" CellPadding="0" AllowMultiRowSelection="True" Skin="Default" meta:resourcekey="RadGrid1Resource1" EnableViewState="False"> 
            <ItemStyle Height="10px" /> 
            <AlternatingItemStyle Height="10px" BackColor="#F8F9BC" /> 
            <MasterTableView EnableViewState="False" AutoGenerateColumns="false"> 
                <RowIndicatorColumn Visible="False" /> 
                <ExpandCollapseColumn Visible="False" /> 
            </MasterTableView> 
            <HeaderStyle Font-Bold="True" Font-Size="X-Small" Wrap="True"  Height="20px" /> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
Dimo
Telerik team
 answered on 07 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?