Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
104 views
Hi all,

I have a combobox which contains checkboxes inside. The first item is "ALL", it means when this item is checked, the other checkboxes will be unchecked and disabled.
When the first item is unchecked, the other items will be enabled for user checking them.

How can I know if user is interacting with the first item for doing the above action?

Thanks for your help
Manish
Top achievements
Rank 2
 answered on 19 Aug 2011
2 answers
189 views
this is an almost perfect solution except when there are more than one fieldName on the page.i add the 1st one and put in a value in the text field - so far so good.
add the 2nd one & changed the Filter Expression - it changes the expression on the top one and clears the text box. i sort of underStand why it's doing that, but what i don't know is how to tell it which one i'm on.
for instance  say, two Field Editors: Workordernumber & PoNumber.(in that order)
i create one: workordernumber & put in a value.
then create another & when i change from workordernumber to PoNumber on the 2nd one, it changes the 1st one at the top and blanks out the Value previously put in. it's performing the RecreateControl on the wrong one.....or rather, not the one i intended. how could i limit the "ChangeExpression" to the one that's being change.
thanks again for any help
rik

 

 

protected void WorkOrdersRadFilter_ItemCommand(object sender, RadFilterCommandEventArgs e)

 

{

 

 

if(e.CommandName == RadFilter.AddExpressionCommandName)

 

{

e.Canceled =

 

true;

 

 

 

RadFilterStartsWithFilterExpression item = new RadFilterStartsWithFilterExpression("WORKORDERNUMBER");

 

(e.ExpressionItem

 

as RadFilterGroupExpressionItem).Expression.AddExpression(item);

 

WorkOrdersRadFilter.RecreateControl();

}

 

 

else if (e.CommandName == RadFilter.ChangeExpressionFieldNameCommandName)

 

{

 

 

string myCmdArg = e.CommandArgument.ToString();

 

 

 

if (myCmdArg != "WOTYPENAME" & myCmdArg != "STATUS_MESSAGE" & myCmdArg != "MATERIALTYPE" & myCmdArg != "CREATEDDATE")

 

{

e.Canceled =

 

true;

 

 

 

RadFilterStartsWithFilterExpression item = new RadFilterStartsWithFilterExpression(e.CommandArgument.ToString());

 

 

 

//replace the current item with the new item that has the default filter set to StartsWith

 

 

 

int i = e.ExpressionItem.OwnerGroup.Expression.Expressions.IndexOf((e.ExpressionItem).OwnerGroup.Expression.FindByFieldName((((RadFilterSingleExpressionItem)(e.EventSource)).Expression).FieldName));

 

e.ExpressionItem.OwnerGroup.Expression.Expressions.RemoveAt(i);

e.ExpressionItem.OwnerGroup.Expression.Expressions.Insert(i, item);

WorkOrdersRadFilter.RecreateControl();

}

}

}

rik butcher
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
121 views
Good morning,
today i bought a full version of Telerik Ajax ASP.NET components and i am trying to use RadImageEditor for croping my images. What i need to do is edit crop dialog - remove two its buttons - http://imageshack.us/photo/my-images/651/imgzkz.jpg/

Can you please help me?

Thanks
Amadeo Mareš
Bozhidar
Telerik team
 answered on 19 Aug 2011
6 answers
153 views
I am using a radgrid control where i have paging and autogenerate columns set to true. When i select a page on the radgrid it shows a panel id on the top and if i select again it works fine. It means it shows the panel id on every alternative select of a page in the grid. Can you help me to reslove it please?
Iana Tsolova
Telerik team
 answered on 19 Aug 2011
3 answers
429 views
Team,

In one of our application we are binding the dynamically generated datatable (With all Field datatypes are String) to a Radgrid.
Problem is when we apply sorting on those string fields it wont sort numerically, instead of that sorting occurs on string.

My question is without change the datatypes in datatable is it possible to change the columns of Radgrid to numeric before apply sorting..

Pls. help me on this. Client wants it immediately.


Thanks,
Tsvetina
Telerik team
 answered on 19 Aug 2011
17 answers
1.7K+ views
I'm using the RadTreeView control.

How to Change the Expand and Collapse Icons to be e.g. arrows instead of + and - icons?

Currently the plus and minus icons are embedded in the Telerik assembly judgying by the background-image value:

url("WebResource.axd?d=VgJdxXzsswqOdCD5rvTw9qbASzacFrx1ogUDI2C8a8ec2xoyM_TB0dE7ON7_Qufmatd1FUHdwBxJuyWB5iw6-kRks3J05ogSsFdHXjCEjQfuCDzPhAViqekZ41WXyBJy0y5vpj0JBT8YkXRnUrmL8-ofV0U1&t=634342277869187417")

are there any other images embedded e.g. arrows that I can use?

Thanks,
Kate
Telerik team
 answered on 19 Aug 2011
2 answers
86 views
In this thread a user claimed...

"We found elsewhere on this site that Telerik has dropped support for IE7, so the problem we are having doesn't come as a surprise."

Is this true?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 19 Aug 2011
3 answers
161 views

I am using jQuery for setting controls.

 

 

var

 

 

status = $telerik.findComboBox("<%= rcbStatus.ClientID %>");

 

status.set_value(2);

status.set_text(

 

"On Order");

My understanding of jQuery (which is limited) is that I should be able to chain commands like this:

 $telerik.findComboBox("<%= rcbStatus.ClientID %>").set_value(2).set_text("On Order");

But the chanined command doesn't work.

 

Am I missing something? Thanks for any help

 

 

 

 

Ivan Zhekov
Telerik team
 answered on 19 Aug 2011
3 answers
154 views
I have radgrid on my webpage and i have set automatic insert ,update and delete to TRUE. But When I try to update or insert , it puts empty strings into database instead of values in textboxes.Here is my code:-
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ITIMaster.Master" CodeBehind="AlertTypeAdmin.aspx.vb" Inherits="EmailAlertsMonitor.AlertTypeAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadGrid ID="gvAlertTypes" runat="server" AutoGenerateColumns="False" 
        Skin="Outlook" CellSpacing="0" DataSourceID="SqlDataSource1" 
        GridLines="None" EnableViewState="False">
  
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True" DataKeyNames="Alert_Type_ID" 
            DataSourceID="SqlDataSource1" CommandItemDisplay ="TopAndBottom" 
            EnableViewState="False" >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
  
    <Columns>
         <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
         <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this Alert Type?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
  
        <telerik:GridTemplateColumn DataField="Alert_Subject" HeaderText ="Alert Subject" 
            FilterControlAltText="Filter column column" UniqueName="column">
                         <ItemTemplate >
                            <asp:Label ID="lblAlertSubject" runat ="server" Text ='<%#EVAL("Alert_Subject") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSubject" runat ="server" Text ='<%#EVAL("Alert_Subject") %>' MaxLength ="250" Width ="400px" TextMode="MultiLine"  ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Sender" HeaderText ="Alert Sender" 
            FilterControlAltText="Filter column column" UniqueName="column1">
                           <ItemTemplate >
                            <asp:Label ID="lblAlertSender" runat ="server" Text ='<%#EVAL("Alert_Sender") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSender" runat ="server" Text ='<%#EVAL("Alert_Sender") %>' MaxLength ="30" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Level" HeaderText ="Alert Level" 
            FilterControlAltText="Filter column column" UniqueName="column2">
                          <ItemTemplate >
                            <asp:Label ID="lblAlertLevel" runat ="server" Text ='<%#EVAL("Alert_Level") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:HiddenField ID="hdAlertLevel" runat ="server" Value ='<%#EVAL("Alert_Level_ID") %>' />
                            <asp:DropDownList ID="ddlAlertLevels" runat ="server" DataSourceID ="SqlDataSource2" DataValueField ="Alert_Level_ID" DataTextField ="Alert_Level"  >
                            </asp:DropDownList>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Alert_State" HeaderText ="Alert State" 
            FilterControlAltText="Filter column column" UniqueName="column3">
                         <ItemTemplate >
                            <asp:Label ID="lblAlertState" runat ="server" Text ='<%#EVAL("Proj_State") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:HiddenField ID="hdAlertState" runat ="server" Value ='<%#EVAL("Alert_State") %>' />
                            <asp:DropDownList ID="ddlAlertStates" runat ="server" DataSourceID ="SqlDataSource3" DataValueField ="Proj_State_Code" DataTextField ="Proj_State"  >
                            </asp:DropDownList>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Server" HeaderText ="Alert Server" 
            FilterControlAltText="Filter column column" UniqueName="column4">
                        <ItemTemplate >
                            <asp:Label ID="lblAlertServer" runat ="server" Text ='<%#EVAL("Alert_Server") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertServer" runat ="server" Text ='<%#EVAL("Alert_Server") %>' MaxLength ="20" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Source" HeaderText ="Alert Source" 
            FilterControlAltText="Filter column column" UniqueName="column5">
                       <ItemTemplate >
                            <asp:Label ID="lblAlertSource" runat ="server" Text ='<%#EVAL("Alert_Source") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSource" runat ="server" Text ='<%#EVAL("Alert_Source") %>' MaxLength ="20" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook"></HeaderContextMenu>
  
    </telerik:RadGrid>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   DeleteCommand="DELETE FROM [Alert_Type] WHERE [Alert_Type_ID] = @Alert_Type_ID" 
                   InsertCommand="INSERT INTO [Alert_Type] ([Alert_Subject], [Alert_Sender], [Alert_Level], [Alert_State], [Alert_Server], [Alert_Source]) VALUES (@Alert_Subject, @Alert_Sender, @Alert_Level, @Alert_State, @Alert_Server, @Alert_Source)" 
                   SelectCommand="SELECT [Alert_Type_ID],[Alert_Subject],[Alert_Sender],at.Alert_Level as Alert_Level_ID  ,al.Alert_Level ,[Alert_State], ast.Proj_State,[Alert_Server],[Alert_Source]  FROM [AlertEmailManagement].[dbo].[Alert_Type] at  left outer join Alert_Level al on at.Alert_Level =al.Alert_Level_ID   left outer join Alert_States ast on at.Alert_State = ast.Proj_State_Code order by alert_state,alert_level_id,alert_source,alert_server "
                   UpdateCommand="UPDATE [Alert_Type] SET [Alert_Subject] = @Alert_Subject, [Alert_Sender] = @Alert_Sender, [Alert_Level] = @Alert_Level, [Alert_State] = @Alert_State, [Alert_Server] = @Alert_Server, [Alert_Source] = @Alert_Source WHERE [Alert_Type_ID] = @Alert_Type_ID">
                   <DeleteParameters>
                       <asp:Parameter Name="Alert_Type_ID" Type="Int64" />
                   </DeleteParameters>
                   <InsertParameters>
                       <asp:Parameter Name="Alert_Subject" Type="String" />
                       <asp:Parameter Name="Alert_Sender" Type="String" />
                       <asp:Parameter Name="Alert_Level" Type="Int16" />
                       <asp:Parameter Name="Alert_State" Type="String" />
                       <asp:Parameter Name="Alert_Server" Type="String" />
                       <asp:Parameter Name="Alert_Source" Type="String" />
                   </InsertParameters>
                   <UpdateParameters>
                       <asp:Parameter Name="Alert_Subject" Type="String" />
                       <asp:Parameter Name="Alert_Sender" Type="String" />
                       <asp:Parameter Name="Alert_Level" Type="Int16" />
                       <asp:Parameter Name="Alert_State" Type="String" />
                       <asp:Parameter Name="Alert_Server" Type="String" />
                       <asp:Parameter Name="Alert_Source" Type="String" />
                       <asp:Parameter Name="Alert_Type_ID" Type="Int64" />
                   </UpdateParameters>
               </asp:SqlDataSource>
               <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   SelectCommand="SELECT [Proj_State_Code], [Proj_State] FROM [Alert_States] ORDER BY [Proj_State]">
               </asp:SqlDataSource>
               <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   SelectCommand="SELECT [Alert_Level_ID], [Alert_Level] FROM [Alert_Level] ORDER BY [Alert_Level_ID]">
               </asp:SqlDataSource>
</asp:Content>

Radoslav
Telerik team
 answered on 19 Aug 2011
4 answers
596 views
Trying to get some performance out of my pages and I have the RadStylesheetManager on my masterpage.
<telerik:RadStyleSheetManager ID="StyleSheetManager" runat="server" >
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Slider.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Menu.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Grid.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/TabStrip.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/ToolTip.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Window.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/ComboBox.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Calendar.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Button.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/TreeView.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Layout.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Styles.css" />
    </StyleSheets>
</telerik:RadStyleSheetManager>

I do have this key:
add
key="Telerik.Web.UI.StyleSheetFolder" value="~/App_Themes/Default"/>

The last 2 CSS files are being applied as the sites layout is OK, but none of the Telerik controls are srtyled. In the app_Themes/Default folder I have individual folders for the Telerik images.

Does anyone have any ideas?

Andy

PS. Just looked at the http in Fiddler, and the images have the wrong paths  the path (as in the app settings) isn't being applied.
Simon
Telerik team
 answered on 19 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?