Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
72 views
I removed the dock icon with the EnableDock property set to false.

1. How can I disable the close icon?
2. how can I set the height of the slider that expands to be exactly large enough to fit the content that is there.   The content is dynamic so it won't be the same each time so I can't set a fixed height.
S
Top achievements
Rank 1
 asked on 17 Aug 2011
2 answers
171 views
Masters and Experts,
I would like to implement a workflow form using the PanelBar control. I wanted to check here and see if it's possible before I put the development effort into it. What I would like to accomplish is creating a user control that would display in a RadWindow that will function as follows;
Panel1:
  User Selected Search Criteria
  Search / Move Next button (if results were found, If not message user)
Panel2
  RadGrid containing the results from the Search from Panel1. User would select the record they need for primer data for their new entry on Panel3
  Move Next Button
Panel3
  ReadOnly data items from Panel2s selection and editable user entry data fields
  Save Button

If it's possible for the control to handle that type of data manipulation would you know of any samples I could review as reference.

Thanks,
Tim
Tim
Top achievements
Rank 2
 answered on 17 Aug 2011
3 answers
125 views
Hi, I have three ComboBox in my webform which are used to for country, district and area for a user when they register in my site. 2nd ComboBox is populated when first one is selected and 3rd one when 2nd is selected. I have successfully databind these 3 from database. but after registering, if a user want to edit their data I want to pre-select all three ComboBoxes with the value which they select when registering at page load. I cannot find any idea how to do this... Can anyone please help me??
Ratul
Top achievements
Rank 1
 answered on 17 Aug 2011
5 answers
135 views
I have the following in the CommandItemTemplate tag:

 

<

 

CommandItemTemplate>

 

 

    <table width="100%">

 

 

        <tr>

 

 

            <td align="left">Third Party Mismatches</td>

 

 

            <td align="right">

 

 

                <asp:LinkButton ID="showFilter" runat="server" CommandName="DisplayFilter"

 

 

                    Text="Filter">

 

 

                </asp:LinkButton>

 

 

            </td>

 

 

        </tr>

 

 

    </table>

 

</

 

CommandItemTemplate>

 

 

 

 

 

 

 

 

 

What i want to do is when the user clicks on the showFilter link it will display or hide the folter depending on if it is shown already or not. I have that part working. What I can't get is to change the text to "Show Filter" if the filter is hidden and "Hide Filter" if it is shown.
I have the followinfg code but it isn't working.
Protected Sub GrdThirdParty_ItemCommand(ByVal source As Object, _  
                         ByVal e As GridCommandEventArgs) _  
                         Handles GrdThirdParty.ItemCommand  
 
        If e.CommandName = "DisplayFilter" Then 
            Dim lnkButton As LinkButton = CType(e.Item.FindControl("showFilter"), LinkButton)  
            If GrdThirdParty.AllowFilteringByColumn = False Then 
                GrdThirdParty.AllowFilteringByColumn = True 
                lnkButton.Text = "Hide Filter"  
            Else 
                GrdThirdParty.AllowFilteringByColumn = False 
                lnkButton.Text = "Show Filter" 
            End If 
            GrdThirdParty.MasterTableView.Rebind()  
        End If 
 
    End Sub 
Any ideas?
Thanks for the help.

Matt DiPietro
Top achievements
Rank 1
 answered on 17 Aug 2011
4 answers
492 views
Hi:
I have masterpage with a RadScriptManager and a asp:panel (panel used for messages).  In my one of my content pages, I have a RadAjaxPanel.  In my code behind, I am updating the panel pnlErrors.  Sometime the changes to pnlErrors does not display.  Any suggestions?

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<%@ 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">
<head id="Head1" runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="masterPageRadScriptManager" runat="server" AsyncPostBackTimeout="180" >
        <Scripts>
            <asp:ScriptReference Path="Scripts/jquery-1.4.1.js" />
        </Scripts>
    </telerik:RadScriptManager>
    ...
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
    <telerik:RadMenu ID="RadMenu1" Runat="server" DataSourceID="SiteMapDataSource1" Width="100%" style="z-index:2900">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </telerik:RadMenu>
    ...
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
 
    </asp:ContentPlaceHolder>
    <asp:Panel ID="pnlErrors" runat="server" EnableViewState="false">
    </asp:Panel>
    </form>
    ...
</body>
</html>

Phil
Phil
Top achievements
Rank 2
 answered on 17 Aug 2011
3 answers
351 views
Hi,

Here is our scenario. We have a screen where users need to add their comment in a text editor. What we would like to achieve is that the color is fixed based on the user role.
We have tried the following code but without any luck:

RadEditor tbOpmerkingen = editedItem.FindControl("tbOpmerkingen") as RadEditor;
            tbOpmerkingen.ForeColor = System.Drawing.Color.Blue;

and 

tbOpmerkingen.ContentAreaCssFile = "~/App_Themes/easecc/Test.css";

css looks like
.RadEContent
{
color: Blue !important;
}

and 

Literal styleSheet = (Literal)this.Master.FindControl("styleSheet");
 styleSheet.Text = ".RadEContent{color: Blue !important;}";

with in the masterpage header section

    <style>
       <asp:Literal id="styleSheet" runat="server"></asp:Literal>
   </style>

Any help on this issue is appreciated.
Ron
Gimmik
Top achievements
Rank 1
 answered on 17 Aug 2011
3 answers
95 views
I am working on several pages that have Rad controls.  When I run these pages in the Visual Studio debugger and my server-side code throws an exception, it always shows up as if it is a Javascript exception.  (See the attached screenshot).  I believe this happens whenever I have a RadAjaxPanel on the page.

This means it takes me a very long time to track down the source of the exception.  Since I don't get to see the standard ASP.Net exception message, I don't get to see the file name and line number of where the exception was thrown.

Is there any way to disable this behavior, and show the standard ASP.Net exception message instead?
Jayd
Top achievements
Rank 1
 answered on 17 Aug 2011
0 answers
158 views
I have a RadGrid with an upload copied from the example. When the cancel, edit or delete buttons are pushed I get a Microsoft JScript runtime error with the following data:

Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. 

I have tried several work arounds but none of them work.

8/18/2011 - Problem solved.
OverCoded
Top achievements
Rank 2
 asked on 17 Aug 2011
3 answers
98 views
Hello,

Please take a look at the attached screenshot. When I click on the filter operator selector (this is, the place where I can pick if I want the field to be EqualTo, NotEqualTo, GreaterThan, etc.) the dropdown centers itself in he middle of the screen, instead of showing right down the Filter component expression being entered. This happens also when I click on the Field selector. Is this a CSS issue? please advice, thanks!
Galin
Telerik team
 answered on 17 Aug 2011
3 answers
144 views
I have a RadComboBox that is populated on demand with a web service with items based off what the user types.  It works fine with a basic string as the text value when I add a RadComboBoxItemData object to the array that I pass back with the web service.  I would like to have a template format when the RadComboBox is opened though.  For example, a name with a formatted address that is a different color than the title and someone dynamically formatted based on what fields exist for each record.  I didn't see an example, so I tried to generate a few HTML tags to handle that.  It displays fine when expanded, although it has the tags for the textbox area.  It would be nice if I could just have the name in the textbox, but the name and formatted address when the RadComboBox is open.  When I select one of the items I get a server 500 error.  In the event viewer, it states that "A potentially dangerous Request.Form value was detected from the client ".  Is there some other way that I should be doing this?  Is the functionality I am looking for even possible right now with the RadComboBox?
Kalina
Telerik team
 answered on 17 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?