Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
475 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
225 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
97 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
83 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
182 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
554 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
1 answer
88 views
Hi,

There seems to be a bug in ColorPicker that causes it to show an empty tooltip when PickColorText and CurrentColorText properties are set to empty strings (the control looks even worse when they are not set to empty).

See attached image for what I mean. 

It seems like it is concatenating PickColorText + "  " + CurrentColorText, but trimming the string when one of both is empty.

I would expect no tooltip to be shown if both these are empty.

-Al

Tsvetie
Telerik team
 answered on 16 Apr 2010
1 answer
80 views
Hello
I m using ToolTIp
In ToolTip i m opening usercontrol that user control load radgrid,
Issue is when run this application radgrid Header not dispaly Properly Issue is only in IE, not other browser
here i attached screenshot for that.
Bozhidar
Telerik team
 answered on 16 Apr 2010
6 answers
345 views
Right now the dock collapses when you click the minimize button in the upper right hand corner. Is it possible to make a click anywhere on the header bar collapse the dock?

Thank you.
Eirik H
Top achievements
Rank 2
 answered on 16 Apr 2010
1 answer
306 views
I am having it rough displaying a simple message on a label when i save or delete records.

 Scenario:1

I have a USERCONTROL from which i insert,delete,update records.
I call the usercontrol from within my RADGRID.(Editing records in a radgrid via a usercontrol).
Now, i want to return a label with a confirmation message that the records have been saved or deleted.

Scenario:2
I am editting, inserting or deleting records from within RADGRID. I want a similar confirmation message when i successfully insert or delete a record.

NOTE: In both scenarios, i have master pages and ajax enabled on the RadGrid.


Can someone kindly post me a code snippet Becuase this seems to be easy on the paper but not that easy when you get down with it.

thanks in adavance.

The label should be on the USERCONTROL or worst case scenario display the message within the RadGrid.


Maria Ilieva
Telerik team
 answered on 16 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?