Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Following is the Code Written Inside grid itme Created event..
But on Postback of textchanged ..Listbox seems to Refresh.

ItemCreated Event

Dim
item As GridEditableItem = TryCast(e.Item, GridEditableItem)

 

 

 

 

 

 

 

Dim raditem1 As New RadComboBoxItem

 

 

 

Dim raditem2 As New RadComboBoxItem

 

 

 

Dim raditem3 As New RadComboBoxItem

 

 

 

Dim raditem4 As New RadComboBoxItem

 

 

 

If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then

 

 

 

Dim txtuserName As TextBox = DirectCast(item.FindControl("txtuserName"), TextBox)

 

 

 

Dim txtpassword As TextBox = DirectCast(item.FindControl("txtpassword"), TextBox)

 

 

 

Dim lstbLocations As ListBox = DirectCast(item.FindControl("lstbLocations"), ListBox)

 

 

 

 

 

RadAjaxManager1.AjaxSettings.AddAjaxSetting(txtuserName, lstbLocations)
END IF

Pavlina
Telerik team
 answered on 16 Apr 2010
1 answer
116 views
Hi Telerik expert,

Can you please advise if your Rotator can be configured with the features on the top of the following example page?

http://www.whitehouse.gov/
Thanks,
Hong

Princy
Top achievements
Rank 2
 answered on 16 Apr 2010
3 answers
82 views
Hi!
We use the image editor in a MOSS 2007 environment and have a issue with resizing images.

When we resize an image the new _thumb gets a grey outline around the image. Is there a way to fix this?

Attached file shows the original image to the left and when it's opened in the image editor to the right.

//Kristian
Stanimir
Telerik team
 answered on 16 Apr 2010
1 answer
128 views
hi I have created  a css file in which folllowing entries are there for css
.red
{
    font-size:14px;
    color: ffcccc;
    background-color:#000000;
}
.blue
{
    font-size:15px;
    font-weight:bold;
    text-decoration: blink;
    color:#ccffff;
    background-color:#3366ff;
}
.majorcrisis
{
    font-size:15px;
    font-weight:bold;
    text-decoration: blink;
    color:#ccffff;
    background-color:#000000;
}

I modified the toolsfile.xml file with the following entries
<classes>
   <class name="Clear Class" value="" />
   <class name="No Crisis  Style" value=".red" />
   <class name="Minor Crisis  Style" value=".blue" />
     <class name="Major Crisis Style" value=".majorcrisis" />
 </classes>
 <cssFiles>
 <item name="/_wpresources/RadEditorSharePoint/5.6.2.0__1f131a624888eeed/Resources/ExternalCssFiles/CrisisComm.css"  />
 </cssFiles>

here when I check my page in sharepoint only red and blue but not the majorcrisis.If I change the name of "blue" or "red" css to any other name it doesnot work.Why is it happening so?


Stanimir
Telerik team
 answered on 16 Apr 2010
3 answers
490 views
Hi,

I understand the webmail sample uses the skinchooser dropdown for telerik embedded skins.

I have now created my own skin, using your tools I have converted in into an assembly. How can I now add this new skin into the skinchooser and have it skin all the controls for which I have created styles when I select it?

Regards
Mike

Any chance of a reply on this Telerik?
Rosen
Telerik team
 answered on 16 Apr 2010
1 answer
241 views

Hi,

Currently I am using RadNumericTextBox for accepting decimal values. I need to set the MaxValue,MinValue and Precision which works fine with RadNumericTextBox.

However there is a need to set the masking for the numbers. The mask can be of any format. Few examples for the possible number format are

0                          -->          Displays numbers without any further formatting, for example: 1234.

#,##0                   -->          Formats numbers with the thousands separator, for example: 1,234.

#,##0;(#,##0)       -->          Formats numbers with the thousands separator, and places negative numbers in parentheses. For example:

• 1234 appears as 1,234

• -1234 appears as (1,234)

Also the masking is for Display purpose only and when I fetch the data for saving, I need only the values without any formatting applied on it.

Since the display masking is dynamic and I cannot enforce the same using DecimalSeperator, GroupSeperator and Precision property of the RadNumericTextBox

Is there a way to achieve this masking in RadNumericTextBox similar to what we have in radmaskedtextbox?

Conversely,  can I achieve all the above said (maxvalue, minvalue and precision including) in radmaskedtextbox?

Maria Ilieva
Telerik team
 answered on 16 Apr 2010
1 answer
103 views
Dears,

I have checked the webpart assembly with SPDisposeCheck tool and it suffers from 3 non disposed SPWeb objects for SharePoint.
Any suggestions?
Stanimir
Telerik team
 answered on 16 Apr 2010
2 answers
86 views
Hi, I have a strange behavior on my code.
When I call the set_closed client-side method on a RadDock that has a DockCommand with OnClientCommand event attached, my script enters in a loop cycle.

Here you are a sample code that illustrates the behavior.
Just click on ShowHideRadDock1 to replicate the bug.
Thanks.

<script type="text/javascript"> 
 
        function RadDockClientCommand(sender, eventArgs) { 
            alert('RadDockClientCommand'); 
            if (eventArgs.Command.get_name() == "Close") { 
                var isClosed = sender.get_closed(); 
                sender.set_closed(!isClosed); 
            } 
        } 
 
        function ShowHideRadDock(controlID) { 
            alert('In ShowHideRadDock'); 
            var dock = $find('RadDock1'); 
            var isClosed = dock.get_closed(); 
            dock.set_closed(!isClosed); 
        } 
         
    </script> 

<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"> 
         
    </telerik:RadScriptManager> 
 
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="javascript:ShowHideRadDock('RadDock1');">ShowHideRadDock1</asp:HyperLink> 
    <br /> 
    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="javascript:ShowHideRadDock('RadDock2');">ShowHideRadDock2</asp:HyperLink> 
    <br /> 
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server"> 
        <telerik:RadDock ID="RadDock1" runat="server" Skin="Telerik" Width="300px" Left="50px" 
            CloseText="chiudi" BackColor="#a79c00" CssClass="RadDockPostIt"> 
            <Commands> 
                <telerik:DockCommand Name="Close" Text="Chiudi" OnClientCommand="RadDockClientCommand" 
                    CssClass="rdClose" /> 
            </Commands> 
         <ContentTemplate> 
                My Content RadDock1 
            </ContentTemplate> 
        </telerik:RadDock> 
        <telerik:RadDock ID="RadDock2" runat="server" Skin="Telerik" Width="300px" Left="50px" 
            Top="120px" CloseText="chiudi" BackColor="#a79c00"> 
           <Commands> 
                <telerik:DockCommand Name="Close" Text="Chiudi" OnClientCommand="RadDockClientCommand" 
                    CssClass="rdClose" /> 
            </Commands> 
            <ContentTemplate> 
                My Content RadDock2 
            </ContentTemplate> 
        </telerik:RadDock> 
    </telerik:RadDockLayout> 
    </form> 
</body> 


Lorenzo Margola
Top achievements
Rank 1
 answered on 16 Apr 2010
3 answers
195 views
Hi all!
1. I have radgrid, couple template columns contaning text box and combobox, and select column.
2. when I select any item from combobox I need to know the grid's row (ItemIndex) where I change the item in teh combobox.
3. All these operations I need to perform in client-side, with the client API.

Thank you very much in advance.

Boris
Veli
Telerik team
 answered on 16 Apr 2010
1 answer
565 views
I am using the combobox as a filter in a grid. I wanted to use the combobox in a column to filter out values. It works great in the code the first time. But I was noticing on every postback when I select a filter value, it would again keep making retreivals to the DB to fill the combo box with values again and again. So I figured that I would check the postback condition, and just not bind in that case thinking, the combox box would still have values in it from the original call and since the EnableViewState flag is true. But the values don't stay on postback. How can I fix this:
ASPX Code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LaunchPage.aspx.cs" Inherits="SearchDesk.LaunchPage" %>

<!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 id="Head1" runat="server">
    <title></title>
</head>
<body>

   banner : User ID :
    <asp:Label ID="lblUserID" runat="server"  Text=""></asp:Label>

    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
  

 
    <p>
        &nbsp;</p>
  
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
        AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
        onneeddatasource="RadGrid1_NeedDataSource" onsortcommand="RadGrid1_SortCommand"
        onupdatecommand="RadGrid1_UpdateCommand" Width="585px">
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>

<MasterTableView DataKeyNames="SearchID">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <NoRecordsTemplate>
        Currently no open searches.....
    </NoRecordsTemplate>
    <Columns>
        <telerik:GridBoundColumn DataField="SearchName" HeaderText="Search Name"
            SortExpression="SearchName" UniqueName="SearchName">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn DataField="StatusName" HeaderText="Search Status"
            SortExpression="StatusName" UniqueName="StatusName">
            <ItemTemplate>
                <asp:Label ID="StatusNameLabel" runat="server" Text='<%# Eval("StatusName") %>'></asp:Label>
            </ItemTemplate>
            <FilterTemplate>
                <telerik:RadComboBox ID="cboFilterStatus" Runat="server"
                    ondatabinding="cboFilterStatus_DataBinding" DataTextField="SearchStatusName"
        DataValueField="SearchStatusName" AutoPostBack="True"
                    onselectedindexchanged="cboFilterStatus_SelectedIndexChanged"
                    ondatabound="cboFilterStatus_DataBound" EnableAutomaticLoadOnDemand="True">
                </telerik:RadComboBox>
            </FilterTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DateOpened" HeaderText="Date Opened"
            SortExpression="DateOpened" UniqueName="column1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Age" HeaderText="Age" SortExpression="Age"
            UniqueName="column">
        </telerik:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
        <GroupingSettings CaseSensitive="False" />
    </telerik:RadGrid>
  
 
    <asp:LinkButton ID="linkNew"  runat="server">Create New Search</asp:LinkButton><br />
    <asp:LinkButton ID="linkAdmin1" PostBackUrl="Utils/ChangeUser.aspx" runat="server">Change User</asp:LinkButton>
  
 
    <br />
    <asp:LinkButton ID="linkAdmin2" runat="server">Admin 2</asp:LinkButton>
  
  </form>
  
    </body>
</html>


c# code behind:
protected void cboFilterStatus_DataBinding(object sender, EventArgs e)
    {
      if (!Page.IsPostBack){
        ((RadComboBox) sender).DataSource =
          Searches.GetListOfSearchStatus().Select(s => new{s.SearchStatusID, s.SearchStatusName});
      }
    }
Kalina
Telerik team
 answered on 16 Apr 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?