Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
275 views
I have a popup edit form that is autogenerated, the only issue i have is that the drop down list fields are not wide enough(actually the text is mashed and unreadable when viewing the list after hitting the down arrow).  I guess I am looking for a way to make all 30 controls on the pop up form bigger. 

Thanks in advance for the help.

John
John
Top achievements
Rank 1
 answered on 06 Mar 2009
1 answer
150 views
Hi,
    When I added 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

in my project and then try to run the application i get following error.Could anyone please let me know ,is anything am i missing ?

Compiler Error Message: CS0012: The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:

Line 1936:								                                             
Line 1937:								                                               <button id="btnPrevious" onclick="javascript:FooterButtonClickAction('PreviousPage');" class="submitBtn"><span><h4><</h4></span></button>
Line 1938: <telerik:RadComboBox ID="radcbCoursePopup" runat="server" Width="150px" ShowToggleImage="True" ZIndex="506" />Line 1939:  						                                                       &nbsp;<button id="btnNext"   onclick="javascript:FooterButtonClickAction('NextPage');" class="submitBtn"><span><h4>></h4></span></button>
Line 1940:    								                                         </TD>
Veselin Vasilev
Telerik team
 answered on 06 Mar 2009
1 answer
103 views
Hello,

I've noticed that the radeditor changes inline css when saving in firefox.

When you create html such as this:

<div style="background:#CCC;">Test</test>

Once you save and view the HTML it winds up looking like this:

<div style="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Test</div>

How do we prevent this from happening?

Thanks







Rumen
Telerik team
 answered on 06 Mar 2009
1 answer
59 views

We just noticed an issue with radeditor and thought we will report this to you. Please ignore if you are already aware of this.

On IE, while stripping BORDER-RIGHT, BORDER-TOP, BORDER-LEFT, BORDER-BOTTOM properties of the style attribute, editor looses other propeties like float, width, color etc of the Style attribute.

For example, this DIV tag

<div style="BORDER-RIGHT: #e87e7e 2px solid; BORDER-TOP: #e87e7e 2px solid; FLOAT: right;
 BORDER-LEFT: #e87e7e 2px solid; WIDTH: 203px; COLOR: #ffffff; BORDER-BOTTOM: #e87e7e 2px solid; BACKGROUND-COLOR: #c80002">

will get converted to

<div style="border: #e87e7e 2px solid; background-color: #c80002;">

Thanks, Lakshman

Rumen
Telerik team
 answered on 06 Mar 2009
1 answer
166 views
Hi,
We need to open 3 pop-up  windows from one aspx page to edit the information, i am using telerik window
I am using a radwindowmanager and i have 3 - windows

<telerik:RadWindowManager ID="WinManager" runat="server">  

<Windows>   

<telerik:RadWindow id="WinAccInfo" 

Behaviors="Close"

 

Skin="Vista"

ReloadOnShow = "true"  

ClientCallBackFunction="CallBackFunction"

 OnClientshow = "OnClientshow"

 OnClientclose = "OnClientclose"

 openerElementId = "<%# btnEditAccountInformation.ClientID %>"

 OffsetElementId = "<%# lblContactName.ClientID%>"

 Left="350px"

 Modal = "true"

 Runat="server"

 Width="400px"

 Height="500px"

 Title="Account Information"

 VisibleStatusbar="false" >

 </telerik:RadWindow>   

<telerik:RadWindow ID="winPaymentInfo"  

Behavior="Close"  

Skin="Vista" 

ReloadOnShow="true"  

ClientCallBackFunction="PaymentInfoCallBack"  

OnClientShow="PaymentInfoShow"  

OnClientclose = "PaymentOnClientclose"  

openerElementId = "<%# btnEditPaymentInformation.ClientID %>"

 

OffsetElementId = "<%# lblNameOnCard.ClientID%>"  

 

 

Left="350px"  

Modal = "true" Runat="server"

 Width="400px"

 Height="400px"

 Title="Payment Information" VisibleStatusbar="false">

 </telerik:RadWindow>

 <telerik:RadWindow id="DialogBillingWindow"

 Behaviors="Close"

 Skin="Vista"

 ReloadOnShow = "true"

 ClientCallBackFunction="BillingCallBackFunction"

 OnClientshow = "OnBillingClientshow"

 OnClientclose = "OnClientclose"

 openerElementId = "<%# btnEditBillingInformation.ClientID %>"

 OffsetElementId = "<%# lblBillingName.ClientID%>"

 Left="350px"

 Modal = "true"

 Runat="server"

 Width="400px"

 Height="400px"

 Title="Billing Information" > 

</telerik:RadWindow 

</Windows 

</telerik:RadWindowManager>


the javascript functions to open window are

 

function showDialog() 

{

 

 

var oWnd = $find("<%=WinAccInfo.ClientID%>");

 

 

var url= "AccountInfoEdit.aspx?oState=" +document.getElementById('<%=lblState.ClientID%>').innerHTML

 

url= url +

 

"&ocountry=" + document.getElementById('<%=lblCountry.ClientID%>').innerHTML;

 

oWnd.setUrl(url);

oWnd.show();

 

}

 function showbillDialog()

 

{

  

 

var oManager = GetRadWindowManager();  

 var oWnd = oManager.GetWindowByName("DialogBillingWindow");

 var url= "BillingInfoEdit.aspx?oState=" +document.getElementById('<%=lblBillingState.ClientID%>').innerHTML;

 

url= url + "&ocountry=" + document.getElementById('<%=lblBillingCountry.ClientID%>').innerHTML;  

oWnd.setUrl(url);

oWnd.show();

 }

 function showDialogPaymentInfo()

 {  

 

var oWnd = $find("<%=winPaymentInfo.ClientID%>");  

 

var url= "PaymentInfoEdit.aspx?expdt=" + document.getElementById('<%=lblExpirationDate.ClientID%>').innerHTML ; 

url= url +

 

"&ccType=" + document.getElementById('<%=lblCardType.ClientID%>').innerHTML 

 

oWnd.setUrl(url);

oWnd.show();

 

}

 

 

i have no issues to open windows and get back the value but when i click on the submit button on parent window to save the information. I am getting the javascript error "Microsoft JScript runtime error: 'parentNode' is null or not an object" .

May i know what may be causing teh issue or how can i solve this issue.
the main goal is to open multiple windows from an aspx page.

Thanks in advance
Parvati

Fiko
Telerik team
 answered on 06 Mar 2009
6 answers
135 views
I have used your code for Open files in new window, but I can't able to open the window. I am getting error for that.

Error: [Exception... "'Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<script>window.open('.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]
My code:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Open File")
{
GridDataItem item = e.Item as GridDataItem;
if (item != null)
{
string file = item["name"].Text;
try
{
file = file.Replace(
"\\", \\\\);
Response.Write(
"<script>window.open('FileList2.aspx?Address=" + file + "');</script>");
}

I checked with the direct path instead of item["name"].Text; then also I am getting the same error.
Actually my requitrement is to open that link in the same window.please help me  to open the window in both ways.
Thanks
Surya

Fiko
Telerik team
 answered on 06 Mar 2009
2 answers
195 views
I need to know how to reset radcombobox as filter in the radgrid.
                <telerik:GridBoundColumn DataField="Dept" HeaderText="Department" SortExpression="Dept" 
                    UniqueName="Dept" > 
                    <FilterTemplate> 
                    <asp:TextBox runat="server" ID="TextBox1" style="display:none;">  
                    </asp:TextBox> 
                    <telerik:RadComboBox ID="cboRadDept" DataSourceID="DeptSqlDS" DataTextField="Name" DataValueField="Name"   
                        AutoPostBack="True" AppendDataBoundItems="True" Height="100%" Width="170px" 
                        SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Dept").CurrentFilterValue %>' 
                        runat="server" OnSelectedIndexChanged="cboRadDept_SelectedIndexChanged" Skin="WebBlue" > 
                        <Items> 
                        <telerik:RadComboBoxItem /> 
                        </Items> 
                    </telerik:RadComboBox> 
                    </FilterTemplate> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="From" HeaderText="Originator" SortExpression="From"   
                    UniqueName="From">  
                    <FilterTemplate> 
                    <asp:TextBox runat="server" ID="TextBox2" style="display:none;">  
                    </asp:TextBox> 
                    <telerik:RadComboBox ID="cboRadFrom" DataSourceID="FromSqlDS" DataTextField="UserName" DataValueField="UserName"   
                        AutoPostBack="True" AppendDataBoundItems="True"   
                        SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("From").CurrentFilterValue %>' 
                        runat="server" OnSelectedIndexChanged="cboRadFrom_SelectedIndexChanged" Skin="WebBlue">  
                        <Items> 
                        <telerik:RadComboBoxItem /> 
                        </Items> 
                    </telerik:RadComboBox> 
                    </FilterTemplate> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status" UniqueName="Status">  
                    <FilterTemplate> 
                    <asp:TextBox runat="server" ID="TextBox3" style="display:none;">  
                    </asp:TextBox> 
                    <telerik:RadComboBox ID="cboRadStatus" DataSourceID="StatusSqlDS" DataTextField="Status" DataValueField="Status"   
                        AutoPostBack="True" AppendDataBoundItems="True" Height="100%" Width="85px"   
                        SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Status").CurrentFilterValue %>' 
                        runat="server" OnSelectedIndexChanged="cboRadStatus_SelectedIndexChanged" Skin="WebBlue">  
                        <Items> 
                        <telerik:RadComboBoxItem /> 
                        </Items> 
                    </telerik:RadComboBox> 
                    </FilterTemplate> 
                </telerik:GridBoundColumn> 
 
    Protected Sub cboRadDept_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)  
        Dim filterItem As GridFilteringItem = DirectCast(RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)(0), GridFilteringItem)  
        TryCast(filterItem("Dept").Controls(1), TextBox).Text = e.Value  
        filterItem.FireCommandEvent("Filter", New Pair("EqualTo", "Dept"))  
    End Sub  
 
    Protected Sub cboRadFrom_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)  
        Dim filterItem As GridFilteringItem = DirectCast(RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)(0), GridFilteringItem)  
        TryCast(filterItem("From").Controls(1), TextBox).Text = e.Value  
        filterItem.FireCommandEvent("Filter", New Pair("EqualTo", "From"))  
    End Sub  
 
    Protected Sub cboRadStatus_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)  
        Dim filterItem As GridFilteringItem = DirectCast(RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)(0), GridFilteringItem)  
        TryCast(filterItem("Status").Controls(1), TextBox).Text = e.Value  
        filterItem.FireCommandEvent("Filter", New Pair("Contains", "Status"))  
    End Sub  
 
I am able to use 3 radcomboboxes as filters in the grid. the problem is that when I finished filtering and I have AppendDataBoundItems="True" and using <Items><telerik:RadComboboxItem></Items>, that it will automatically give me 1 empty row. if I click this empty row, it won't go back to selectedvalue. it's like nothing or selectedindex = -1 and then rebind the grid with the rest of the filters. Or is there another way?
Please help.
Thank you.
illumination
Top achievements
Rank 2
 answered on 06 Mar 2009
1 answer
205 views
I have a page that has a RadComboBox and a RadGrid that displays plans and is grouped by the plan type. Specs call for the user to be able to filter which type and only that type to see. I am using the RadComboBox to be able to select which type to filter by, which post back and updates the grid accordingly. I am also using a RadAjaxManagerProxy to do the updating with the ComboBox and Grid in the settings.

The issue is that I am using a RadTooltipManager to tooltipifiy the details in the Grid Rows and works perfectly on the initial render. But when I select a new item from the ComboBox and the Grid begins to update there is a Null Reference exception being thrown because it says it can not find the control with the id that is being added to the RadTooltipManager's TargetControl collection.

I have commented out the two lines where the add to the TargetControl collection takes place and everything works fine.  And the reason why I'm needing to add to the TargetControl collection is because there are some buttons that do not need to be tooltipified.  One question I'm wondering about is do I need to update the TooltipManager when a postback occurs? I'll attach a code segment below that will show how I have the TargetControl.Add().

Thank you for any advice on this matter.

protected void gridAllPlans_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) 
            { 
                var targetPlanYearName = e.Item.FindControl("planYearName"); 
                var targetPlanName = e.Item.FindControl("planName"); 
                if (!Equals(targetPlanYearName, null)) 
                { 
                    if (!Equals(this.radToolTipManager, null)) 
                    { 
                        var year = (PlanPlanYearInfo)e.Item.DataItem; 
                         
                        if (year.PlanPlanYear != null
                            ((WebControl)targetPlanYearName).Attributes["OnMouseOver"] = String.Format("DisplayPlanYearName('{0}', '{1}');", targetPlanYearName.ClientID, year.PlanPlanYear.PlanYearId); 
 
                        ((WebControl)targetPlanName).Attributes["OnMouseOver"] = String.Format("DisplayPlanName('{0}', '{1}');", targetPlanName.ClientID, year.Plan.Id); 
                         
                        radToolTipManager.TargetControls.Add(targetPlanName.ID); 
                        radToolTipManager.TargetControls.Add(targetPlanYearName.ID); 
                    } 
                } 
            } 
        } 

Svetlina Anati
Telerik team
 answered on 06 Mar 2009
1 answer
106 views
Hello;


Is there any way to modify style classes of dialogboxes on rad editor? "EnableEmbeddedSkin" =false doesnt work for dialogboxes?

Thank you 

Edit : Actually i can specify my problem little bit mor e clear. "Paste" "Cancel" buttons overlap each other on dialogboxes. It works fine at version 2008.02.820.20 . But having this problem on 2008.02.1001.20 version because of css class

 radfdRealInputButton {
min-width:54px !important;
}


Rumen
Telerik team
 answered on 06 Mar 2009
2 answers
102 views
Hi Telerik,

Are there any sample about two or more level hierarchy with using ObjectDataSource ?

Thank You..
YAVUZ
Top achievements
Rank 1
 answered on 06 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?