Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
321 views
I have a radgrid which displays data that is entered from rad editor.  The problem is that the grid shows several char values instead of the way it was entered. 

The grid is bound from code being and I dont have an option to set the format of the column to HTMLEditorColumn in desing view.  I was thinking to do this in code behind but did not know how to do that. 

can you please provide some light on the same

general structure of the code is 

RadGrid1.DataSource = DataTable
RadGrid1.DataBind()

For z = 0 To RadGrid1.MasterTableView.RenderColumns.Count - 1

If  <some condition to identify column> then
RadGrid1.MasterTableView.RenderColumns(z).  -- what should the code be here to set the correct format of the column
        End if 

Next


Also, can this be done in the pre-render event or does this need to be done somewhere else.  Any help provided will be much appreciated.
Andrey
Telerik team
 answered on 17 Jan 2012
1 answer
91 views
Hi Everybody


Could you suggest me about the following problem?
I want to produce the telerik report which data are coming from the telerik radgrid check box checked items. How should I do for logically? I got the checked items' keyvalues but how can I retrieve from database and pass to telerik    report.
 Pls anyone suggestion !

Thanks
Htut   
Andrey
Telerik team
 answered on 17 Jan 2012
4 answers
175 views
Hi,

I need to get buttons by their attributes (these attributes are set server-side). These buttons need to be activated, all other buttons must be deactivated. With activated I mean "visible", not "enabled".

How I can I get a collection of all buttons attached to the RibbonBar and how can I get their attributes?

Thanks!
Peter From LA
Top achievements
Rank 1
 answered on 17 Jan 2012
5 answers
173 views
Hi there,

How can i access the "Individual Buttons for transfer of data between two ListBox"
Bozhidar
Telerik team
 answered on 17 Jan 2012
1 answer
58 views

my rad upload is in a  format tempelate which is in the details table of rad grid , i want to implement required field validation on the upload control , i am attaching the markup with the post for your further convenience , thnx


 

 

 

<telerik:GridTableView DataKeyNames="IncomingDocumentRegisterPA.Id,Id" Name="IncDocRegInit"

 

 

 

 

 

 

 

 

Width="100%" CommandItemDisplay="Top" EditMode="EditForms">

 

 

 

 

 

 

 

 

<EditFormSettings EditFormType="Template" PopUpSettings-Height="260px" PopUpSettings-Width="400px"

 

 

 

 

 

 

 

 

PopUpSettings-Modal="true">

 

 

 

 

 

 

 

 

<FormTemplate>

 

 

 

 

 

 

 

 

<div class="BoxHeadFull">Selection of initiator by personal assistant(PA)</div>

 

 

 

 

 

 

 

 

<!-- INSIDE CHROME -->

 

 

 

 

 

 

 

 

<asp:ValidationSummary ID="vsInitiator" ValidationGroup="vgrpInitiator" runat="server"

 

 

 

 

 

 

 

 

ShowMessageBox="true" />

 

 

 

 

 

 

 

 

<table border="0" cellspacing="0" cellpadding="0" width="100%">

 

 

 

 

 

 

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

 

 

<td bgcolor="#ffffff" align="left" class="FormTextBlue">Select scanned document<span class="FormRequiredField"> * </span></td>

 

 

 

 

 

 

 

 

<td bgcolor="#ffffff" align="left">

 

 

 

 

 

 

 

 

<span class="FormText">

 

 

 

 

 

 

 

 

<telerik:RadUpload ID="rfScannedDocument" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" runat="server"></telerik:RadUpload>

 

 

 

 

 

 

<%

 

-- <asp:CustomValidator ID="ValidateUpload" ControlToValidate="rfScannedDocument" runat="server" ErrorMessage="CustomValidator" OnServerValidate="ServerValidation"></asp:CustomValidator>--%>

 

 

 

</span>

 

 

 

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

 

</telerik:GridTableView>

 

 

 

 

 

 

 

 

</DetailTables>

 

 

 

 

 

 

 

 

</MasterTableView>

 

</

 

 

telerik:RadGrid>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bozhidar
Telerik team
 answered on 17 Jan 2012
6 answers
267 views
I am using a RadScheduler, and have some issues. I cant seem to get rid of the edit templates. What i have done is, in the OnClientAppointmentDoubleClick event, i do some custom Javascript code. I want only this code to run, and dont want to see any edit templates etc from the telerik control. But when i run this, the template for editing is displayed when i double click an appointment. How can I avoid this? I have set AllowEdit="False", but that does not seem to help. And i cannot catch the AppointmentEditingEvent from this post:http://www.telerik.com/community/forums/silverlight/scheduler/how-to-disable-some-features-of-radscheduler.aspx
for 2 reasons:
1. I still want the user to be able to expand an item by clicking and dragging.
2. There IS NO SUCH EVENT on the Scheduler control.

How can I disable the edit template showing up when double clicking an appointment?


What I actually want to do is:
- User double clicks an appointment
- Hide scheduler
- Show a hidden panel
- Put ID, subject, start and end of the clicked appointment into textboxes inside the new panel

And I would like this panel to be TOTALLY INDEPENDANT of the Scheduler. Possible? 
Ivana
Telerik team
 answered on 17 Jan 2012
2 answers
115 views
Hi,

I want to assign an id to each cell of scheduler, so that when the user do click in scheduler, a custom popup page be displayed and the querystring have the assigned id.

I have the code to open a popup page, but I don't know how to pass some id

    function OnClientAppointmentClick(sender, e)
    {
        var x = newWin('../Tasks/Task.aspx?tid=1', '700', '700', 'S');
        return false;
    }
 
    function OnClientTimeSlotClick(sender, args)
    {
        var x = newWin('../Tasks/Task.aspx', '700', '700', 'S');
        return false;
    }    
   </script>
 
--------------------------------------------------
 
    <telerik:RadScheduler runat="server" ID="RadScheduler1" Height="600px" DayStartTime="00:00:00"
        DayEndTime="23:00:00"
        DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
        DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
        AppointmentStyleMode="Default"
        ShowResourceHeaders="false"
        DataReminderField="Reminder"
        SelectedView="WeekView"
        ShowFooter="false"
        FirstDayOfWeek="Monday"
        LastDayOfWeek="Saturday"
        OnClientAppointmentClick="OnClientAppointmentClick"
        OnClientTimeSlotClick="OnClientTimeSlotClick"
        ShowHoursColumn="false"
        ShowAllDayRow="false"
        ShowFullTime="false"
        ShowViewTabs="false">
        <AdvancedForm Modal="true" Enabled="false" />
        <TimelineView UserSelectable="false" />
 
        <TimeSlotContextMenuSettings EnableDefault="false" />
        <AppointmentContextMenuSettings EnableDefault="false" />       
        <Reminders Enabled="false" />
    </telerik:RadScheduler>

Thanks for your help.

Segundo Serrano 
Plamen
Telerik team
 answered on 17 Jan 2012
0 answers
96 views
Hi,
I configured my RadListview to provide sorting and delete feature. I have set AllowMutlipleSorting attribute to "true". I divided radListView into 2 column, one column binded to string field and another column which contains Delete Icon. On Click of Delete Icon, We  need to delete record from database as well as RadListViewItem. Please provide me any support for sorting and deletion programatically.

-Mahens
Nannu
Top achievements
Rank 1
 asked on 17 Jan 2012
0 answers
85 views
Hi!

I have two user controls on page. When I click on Radtreeview in first control I want in another user control dynamically load controls


How can I do it with RadAjaxPanel or RadAjaxManager?


N
Top achievements
Rank 1
 asked on 17 Jan 2012
4 answers
492 views
Hello All,

I am using radAjaxManager with two buttons that are adjacent to each other, it seems that Ajax manager wraps the first button with a panel with display:block, this is causing the first button to display over the second button.

not sure why the display:block is used, but if it has to be used, is there a way to work around this?!!!

attached is the code and an image, and a snap of the generated code.

ASPX Code:
<div class="DialogButtons">
    <MyC:MyButton ID="btnDeleteYes" runat="server" Text="Yes"       CausesValidation="false" ></MyC:MyButton
    <MyC:MyButton ID="btnCancel" runat="server" Text="No"           CausesValidation="false" ></MyC:MyButton>                                                      
</div>
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnDeleteYes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="btnDeleteYes" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
MyButton is a custom control to wrap the button in a DIV for theming and for using a display:inline-block in order to enable divs to be adjacent. DialogButtons is a class to center the buttons in the middle of the dialog.

 

Generated HTML:
<DIV class=DialogButtons><DIV style="DISPLAY: block" id=ctl00_ContentCPH_ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1_ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1uDel_btnDeleteYesPanel>
<DIV class="MyDivButton MyDivButtonTheme">
<DIV class="MyDivButtonCorner MyDivButtonTL MyDivButtonTLTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonBL MyDivButtonBLTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonTR MyDivButtonTRTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonBR MyDivButtonBRTheme"></DIV><INPUT style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none" id=ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1_ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1uDel_btnDeleteYes class="YCIButtonSize0 YCIButton" onclick="javascript:HideToolTip('ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1_ttt');" value=Yes type=submit name=ctl00$ContentCPH$rgInbox$ctl00$ctl02$ctl00$InboxActions1$ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1uDel$btnDeleteYes> </DIV></DIV
<DIV class="MyDivButton MyDivButtonTheme">
<DIV class="MyDivButtonCorner MyDivButtonTL YCIDivButtonTLTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonBL MyDivButtonBLTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonTR MyDivButtonTRTheme"></DIV>
<DIV class="MyDivButtonCorner MyDivButtonBR MyDivButtonBRTheme"></DIV><INPUT style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none" id=ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1_ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1uDel_btnCancel class="MyButtonSize0 MyButton" onclick="javascript:HideToolTip('ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1_ttt');return false;" value=No type=submit name=ctl00$ContentCPH$rgInbox$ctl00$ctl02$ctl00$InboxActions1$ctl00_ContentCPH_rgInbox_ctl00_ctl02_ctl00_InboxActions1uDel$btnCancel> </DIV></DIV>
Adrian
Top achievements
Rank 1
 answered on 17 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?