Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
270 views
I have 2 GridButtonColumns mapped to distinct Items..  a hyperlink Activate/De-Activate and and the 2nd item contains an imageButton for Delte both of which map to CommandName="Delete". In the OnDeleteCommand handler for the grid in the code behind how do I distinguish the GridEditableItem ImageButton with uniqueName="Delete" from trhe hyperlink with UniqueName="De-Activate" ?  I have tried retrieving sender.Gettype.Name and some other ways but do not see a straightforward way to tell which control sent the Delete Command in the handler. Please provide some insight at the earliest. Version used is 2010.35... etc.


<telerik:GridButtonColumn CommandName="Delete" HeaderText="" UniqueName="De-Activate"
                                HeaderStyle-Width="80px" ConfirmDialogType="Classic">
                            </telerik:GridButtonColumn>
                             <telerik:GridButtonColumn CommandName="Delete" HeaderText="Delete" ButtonType="ImageButton"
                                UniqueName="Delete" Text="Delete" HeaderStyle-Width="80px" ConfirmDialogType="Classic">
                            </telerik:GridButtonColumn>
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
123 views
Hi all,

my grids are behaving like they were case sensitive is there a way to stop that???

Best Regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Nov 2013
3 answers
151 views
Is it possible to take two text fields and total them up and show that total in another text field, but only show the total when both fields have a number? If so, how can you do that? But only do that for that row, so if i add another row, the same thing will happen but only to that row, and so on...Does anyone have an example on how to do something like that?
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
5 answers
143 views
Hi. I need to create telerik grid that creates its columns automatically. Some of the columns can have mixed columns like below:

Name                 Surname                              Info
                                                        Date                   Number
------------------------------------------------------------------------------
John                  White                     4.4.2011                  45
Tracey              Dapt                       5.4.2011                  70    

I try to create a table that  its view like above. Also, I will create headers dynamically. How can I achieve this? I searched a bit of GirdTemplateColumn and ITemplate. Can anyone give me an idea?
Thanks in advance...
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
101 views
Hello,
Im using telerik on asp.net ajax
i face problem when usign Right to Lift Languages  in RadAsyncUpload in design of control
i found the same problesm in telerik demos as u see in in attachment
the uploading area become not visible also uploading button
you can add file just by clicking (Double Click ) on the position of the RadAsynUpload 
 
i hope that there is a solution for problem

Regards ,,,

Kate
Telerik team
 answered on 31 Oct 2013
1 answer
76 views
Hi all,


I need urgently help : I'm trying to add Rad panel loading that when I click on the save button it will show on the screen spinning image for couple of sec because I have a lot of data to load so please help me and show how to do it.


This is my Code:

function MyClientShowing(sender, eventArgs) {

eventArgs.get_loadingElement().style.border = "2px solid #000000";

eventArgs.set_cancelNativeDisplay(true);

$telerik.$(eventArgs.get_loadingElement()).show("slow");

}

function MyClientHiding(sender, eventArgs) {

eventArgs.get_loadingElement().style.border = "2px solid #000000";

eventArgs.set_cancelNativeDisplay(true);

$telerik.$(eventArgs.get_loadingElement()).hide("slow");

}

function saveUserNotification_Clicked(sender, eventArgs) {

var l_saveUserInfo = $find("<%=saveUserInfo.ClientID %>");

l_saveUserInfo.style.visibility = 'none';

}

 

</script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">

<div class="elementHeader">

<span class="text"> <asp:Label ID="lblFilter" runat="server" Text=""></asp:Label></span>

</div>

<div id="filterWrapperDiv" runat="server" clientidmode="Static">

<div style=" border:0px solid red; padding:20px 0px 0px 10px">

<table>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table>

</div>

</div>

<div class="elementFooter"></div>

</asp:Content>

<asp:Content ID="cphRight" ContentPlaceHolderID="RightContent" runat="server">

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackColor="gray" Transparency="30"

OnClientShowing="MyClientShowing" OnClientHiding="MyClientHiding">

<span style="background-color:#FFFFFF; margin-top:30px;">Saving Plese Wait...</span>

</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="Panel1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="Panel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<div class="form shadow" style="margin-left: auto; margin-right: auto; height:100%;">

<div class="elementHeader">

<span class="text"> <asp:Label ID="PageTitle" runat="server" Text="EDIT USER NOTIFICATION"></asp:Label></span>

</div>

<div id="gridWrapperDiv" runat="server" clientidmode="Static">

<div id="reportFieldsDiv" runat="server" clientidmode="Static">

<div class="GeneralFontShape">

<asp:Image ID="imgBack" runat="server" ImageUrl="~/Images/GoBack.png" />

<asp:LinkButton ID="lbToLocalAdmin" runat="server" Text="Go Back" OnClick="Cancel_Click" Visible="true" ></asp:LinkButton>

</div>

<asp:Panel ID="Panel1" runat="server" Width="930px" Height="492px" BorderStyle="None">

<div style="float:left;width:455px; height: 100%; text-align: left; border: 0px solid red;">

<table style="width:435px; margin: 10px 0px 0px 10px; border:1px solid #CCCCCC">

<tr>

<td valign="top" colspan="2" class="GeneralFontShape" style="text-align:left; color:#CCCCCC;">

Automated Notification

</td>

</tr>

<tr>

<td valign="top" class="GeneralFontShape" style="text-align:left; width: 120px">

Editing User:

</td>

<td class="GeneralFontShape" style="text-align: left; width: 300px">

<asp:Label ID="lblName" runat="server" ></asp:Label>

</td>

</tr>

<tr>

<td valign="top" class="GeneralFontShape" style="text-align:left; width: 120px">

Notification by:

</td>

<td class="GeneralFontShape" style="text-align: left; width: 300px">

Email<asp:CheckBox ID="cbByEmail" runat="server" Checked="False"/> &nbsp;

SMS<asp:CheckBox ID="cbBySMS" runat="server" Checked="False"/>

</td>

</tr>

<tr>

<td class="GeneralFontShape" style="text-align: left; vertical-align:top;">Categories:<span class="validationClass">*</span>

<div>Total Selected: <asp:Label ID="lblTotal" runat="server"></asp:Label> </div></td>

<td style="text-align: left">

<telerik:RadListBox ID = "rlbCategories" CheckBoxes="true" Width="290px" Height="170px"

AllowTransfer="true"

OnClientItemChecked="ShowTotalCheckedListbox"

OnTransferring="rlbCategories_Transferring"

AutoPostBackOnTransfer="true"

OnClientCheckAllChecked="ShowTotalCheckedListbox"

TransferToID=""

ShowCheckAll="true"

runat="server" >

<ButtonSettings TransferButtons="TransferAllFrom" AreaHeight="30" Position="Right" HorizontalAlign="Center" />

</telerik:RadListBox>

</td>

</tr>

<tr>

<td class="style16" valign="bottom">

</td>

<td class="style17" valign="bottom">

<telerik:RadButton ID="saveUserInfo" ValidationGroup="validateEditUser" OnClick="saveUserNotification_Click" OnClientClicked="saveUserNotification_Clicked" Width="70px" runat="server" Text="Save">

<Icon PrimaryIconCssClass="rbSave" PrimaryIconLeft="4" PrimaryIconTop="4" />

</telerik:RadButton>

<telerik:RadButton ID="btnCancel" runat="server" Text="Cancel" Width="70px" OnClick="Cancel_Click">

<Icon PrimaryIconCssClass="RadListBox1" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>

</telerik:RadButton>

</td>

</tr>

</table>

<div id ="divErrorMessage" class="divErrorMessage" runat="server" visible = "False" clientidmode="Static">

<asp:Label ID="lblErrorMessage" runat="server" ></asp:Label>

</div>

<div id ="divMessage" runat="server" class="divMessage" visible="False" clientidmode="Static">

<asp:Label ID="lblMessage" runat="server" ></asp:Label>&nbsp;&nbsp;

<asp:LinkButton ID="lbGoBack" runat="server" OnClick="Cancel_Click"><- Go Back</asp:LinkButton>

</div>

</div>

<div style="float:right; width:470px; height: 100%; text-align: left; border: 0px solid red;">

<table style="width:435px; margin: 10px 0px 0px 0px; border:1px solid #CCCCCC">

<tr>

<td valign="top" colspan="2" class="GeneralFontShape" style="text-align:left; color:#CCCCCC;">

Personal Notification - Phone

</td>

</tr>

<tr>

<td valign="top" class="GeneralFontShape" style="text-align:left; width: 120px">

Editing User:

</td>

<td class="GeneralFontShape" style="text-align: left; width: 300px">

<asp:Label ID="lblNamePhone" runat="server" ></asp:Label>

</td>

</tr>

<tr>

<td valign="top" class="GeneralFontShape" style="text-align:left; width: 120px">

User Type:

</td>

<td class="GeneralFontShape" style="text-align: left; width: 300px">

<telerik:RadComboBox ID="rcbUserType" EmptyMessage="Select User Type" runat="server" AutoPostBack="True" OnClientSelectedIndexChanged="UserTypeChangeAlert" OnSelectedIndexChanged="UserTypeChangeAlert_SelectedIndexChanged"></telerik:RadComboBox>

</td>

</tr>

<tr>

<td class="GeneralFontShape" style="text-align: left; vertical-align:top;">Categories:<span class="validationClass">*</span>

<div>Total Selected: <asp:Label ID="lblTotalPhone" runat="server"></asp:Label> </div></td>

<td style="text-align: left; padding-bottom: 35px">

<telerik:RadListBox ID = "rlbCategoriesPhone" CheckBoxes="true" Width="290px" Height="170px"

AllowTransfer="False"

OnClientItemChecked="ShowTotalCheckedListbox"

AutoPostBackOnTransfer="False"

OnClientCheckAllChecked="ShowTotalCheckedListbox"

ShowCheckAll="true"

runat="server" >

</telerik:RadListBox>

</td>

</tr>

</asp:Panel>

</table>

</div>

</div>

</div>

</div>


 
Eyup
Telerik team
 answered on 31 Oct 2013
3 answers
242 views
I found some code online that does most of what I want.

Im using something like this:

The 2 issues im having...
1) The delete button image sits to high and left on the tab.  Is there a way to format where this sits within the createcloseimage() or attachcloseimage() functions?

2) The deletetab() function will remove the tab but not the window associated with is.  The win variable get assigned the associated window but the removeWindow call doesn't seem to be working.
My call:
//create a new tab
                        var tab = new Telerik.Web.UI.RadTab();
                        //set the text of the tab
                        tab.set_text(itemText);
                        oWnd.correspondingTab = tab;
                        //add the tab to the tabstrip
                        tabStrip.get_tabs().add(tab);
                        AttachCloseImage(tab, "Images/close-md.png");
                        tabStrip.repaint();
                        tab.correspondingWnd = oWnd;
                        //tab.set_imageUrl(item.get_imageUrl());
                        tabStrip.commitChanges();
 
                        //Select this tab
                        tab.select();
 
           function CreateCloseImage(closeImageUrl) {
                var closeImage = document.createElement("img");
                closeImage.src = closeImageUrl;
                closeImage.border = "0";
                //closeImage.alt = "";
                return closeImage;
            }
 
            function AttachCloseImage(tab, closeImageUrl) {
                var closeImage = CreateCloseImage(closeImageUrl);
                closeImage.AssociatedTab = tab;
                closeImage.onclick = function (e) {
                    if (!e) e = event;
                    if (!e.target) e = e.srcElement;
 
                    deleteTab(tab);
 
                    e.cancelBubble = true;
                    if (e.stopPropagation) {
                        e.stopPropagation();
                    }
 
                    return false;
                }
                tab.get_innerWrapElement().appendChild(closeImage);
            }
 
            function deleteTab(tab) {
                var win;
                if (tab) {
                    win = tab.correspondingWnd;
                    tabStrip.trackChanges();
                    tabStrip.get_tabs().remove(tab);
                    tabStrip.commitChanges();
                    if (tabStrip._selectedIndex == -1) {
                        EnableDisableToolbarButtons();
                    }
                }
                //remove the corresponding window from the manager
                manager.removeWindow(win);
            }
Kent
Top achievements
Rank 1
 answered on 31 Oct 2013
26 answers
441 views
I have a web application using RadGrid and the data entry is done using in-line editing mode.

I would like to implement the following when the data entered is outside a predetermined range:
- pop up a warning message
or
- change the colour of the corresponding data entry cell

Can you please show me how to do this (or point me to the examples)?
Ida
Top achievements
Rank 1
 answered on 31 Oct 2013
8 answers
100 views
Hi
I am having some troubles with the Telerik radeditor.
When you make a link in the editor to a SharePoint page and afterwards moving the page to a different location, the link aren't automatically updated.
For an example; If I make a link that will point to \Testsite\test1.aspx, and moving test1.aspx to Testsite2, the link should then point to \Testsite2\test1.aspx instead of pointing to the old location, but it will still point to \Testsite\test1.aspx.

I know that MOSS own content editor web part is supporting it, so I was therefore wondering is there where any way to make radeditor do the same thing.

If it isn't possible at the moment, will it then be in a future version?

Thanks in Advance
/Tommy
Ianko
Telerik team
 answered on 31 Oct 2013
1 answer
69 views
Hi,

In a RadTabStrip if a Tab is already selected and there is a NavigateUrl associated withe the tab, So the the navigation will occur on the 1st click, but once it's get selected it should go to the NavigateUrl page till the Tab is selected.

How can this be done?

Plz Help!!!
Aneliya Petkova
Telerik team
 answered on 31 Oct 2013
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?