Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
198 views

I'm dynamically creating a RadDatePicker in the VB .NET code behind like so...

Dim oCalCell As New HtmlTableCell()
 
Dim oRadPicker As New Telerik.WebControls.RadDatePicker()
oRadPicker.ID = "cldrStageDate"
oRadPicker.Calendar.ID = "cldrStageDate_calendar"
oRadPicker.Calendar.ClientEvents.OnLoad = "cldrLoaded"
 
oCalCell.Controls.Add(oRadPicker)

Then on the client side I have the following javascript code:

function cldrLoaded(oCtl) {
   var sCtlId = null;
   if (typeof(oCtl.get_id) === "function") sCtlId = oCtl.get_id().split('_calendar')[0];
   else sCtlId = oCtl.ClientID; 
   var oCldr = $find(sCtlId);
}

The control is rendered on the page and appears to be working.  But inside "cldrLoaded",  oCtl doesn't have a function named "get_id" when this function is called, but it does have a "ClientID" set.  But the $find(sCtlID) won't find the RadDatePicker.

I have a DatePicker declared in the .aspx page that works as expected:

<telerik:RadDatePicker id="cldrStageDate" runat="server">
   <Calendar ID="cldrStageDate_calendar" runat="server">
      <ClientEvents OnLoad="cldrLoaded" />
   </Calendar>
</telerik:RadDatePicker>

How can I get the proper object get sent to the OnLoad function?

Thanks!

Daniel
Top achievements
Rank 1
 answered on 03 Mar 2014
1 answer
102 views
Hello,

I've a grid where in each column I've an item template with two time picker. 
That shows the start and end time.

I need to show the total duration in decimal at the footer.

i would also like to reflect the duration as the time is selected dynamically in each row. 






Eyup
Telerik team
 answered on 03 Mar 2014
1 answer
116 views
Hi, 

i've a grid with cells in a time interval of 15 mins. It's a 24 hours cycle.I'm trying to change the color of the cells based on the start and end time.

the cells should be coloured from start to end time.

Also I need to count the shaded cells per column and display it on a footer. 

please can someone suggest how can I achieve this functionality? 

Thanks
Eyup
Telerik team
 answered on 03 Mar 2014
3 answers
269 views
Below is my code for radgid edit form, It's working fine but i want to hide place holder control ID="plupload" on Insert/Edit mode of EditFormSettings on RadComboBox1 index chnaged event

<EditFormSettings EditFormType="Template">
<FormTemplate>
    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;">
        <tr>
            <td>
                <table id="Table4" cellspacing="1" cellpadding="1" width="50%" border="0" class="module">
                <tr>
                    <td>Name:</td>
                    <td><asp:TextBox ID="TextBox2" Text='<%# Bind( "Name") %>' runat="server" TabIndex="8"></asp:TextBox></td>
                </tr>
                <asp:PlaceHolder ID="plupload" runat="server" >
                <tr>
                    <td>File Upload :</td>
                    <td><telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded" MultipleFileSelection="Disabled"
                            AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" onvalidatingfile="RadAsyncUpload1_ValidatingFile"></telerik:RadAsyncUpload>
                    </td>
                </tr>
                </asp:PlaceHolder>
                </table>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="2">
                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                    </asp:Button
                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
            </td>
        </tr>
    </table>
</FormTemplate>
</EditFormSettings>

hear is my RadComboBox code

<telerik:RadComboBox ID="RadComboBox1" runat="server" onselectedindexchanged="RadComboBox1_SelectedIndexChanged" autopostback="True" >
<Items>
<telerik:RadComboBoxItem Value="1" Text="Show All" />
<telerik:RadComboBoxItem Value="2" Text="Hide File Upload" />
</Items>
</telerik:RadComboBox>
riddhish chaudhari
Top achievements
Rank 1
 answered on 03 Mar 2014
3 answers
255 views
Hi I have been having this issue in many development requests. Basically I use RadAjaxManager to update controls on a webform, but sometimes certain code is called on the server that should update a control and I need to cause that control to be upated on the screen from code behind. Is there a way to use the RadAjaxManager to achieve this task?

Thanks
Eyup
Telerik team
 answered on 03 Mar 2014
5 answers
170 views
Hi,

Im having major issues inserting web parts into content areas in a page using the RAD editor. I can insert a web part, but then any attempt to edit the web part properties or any other action inserts another web part benieth it and so on untill i leave the page. I can not delete them either as this causes a another one to be added !!!

Once I activate the web level feature

Use RadEditor to edit HTML fields

Replaces the default Rich Html editor with RadEditor (page content,wiki, etc.).

All html fields use the RAD editor and this is where I get the issue of inserting web parts into content areas.

This issue does not happen when the feature is not activated and i use the OOTB editor.

Also this is on a Vanila no customisations env.

RadEditorSharePoint DLL version in use from GAC is    6.1.7.0...  

Stanimir
Telerik team
 answered on 03 Mar 2014
1 answer
209 views
I using drop down tree  with check box checked is true values are input to the rad grid  ,when single click the rad grid visible false { When i click  child  check box  rad grid visible  false this functionality working,when i click parent check box in this case functionality not working }
          
          I want initially the[ CheckBoxes="CheckChildNodes" ] the parent node check box checked true  all child nodes are checked ,when i  single click the parent check box checked is true functionality not working  sample code  in server side code
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2014
1 answer
130 views
Hi,
I have one Radgrid with multiple dynamic text box columns and some fileds, that multiple columns are creating in server side only.

<telerik:RadGrid ID="RGManualSolver" runat="server" AutoGenerateColumns="false" Skin="Vista"
                                           OnNeedDataSource="RGManualSolver_NeedDataSource" OnUpdateCommand="RGManualSolver_UpdateCommand"
                                           OnItemCommand="RGManualSolver_ItemCommand" OnPreRender="RGManualSolver_PreRender"
                                           Width="1040px" Height="300px">
                                           <MasterTableView EditMode="InPlace" EnableColumnsViewState="false" Width="97%" ClientDataKeyNames="MarketName"
                                               DataKeyNames="MKTID,SCID">
                                               <Columns>
                                                   <telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"
                                                       ItemStyle-Width="60px" HeaderStyle-Width="60px">
                                                   </telerik:GridEditCommandColumn>
                                                   <telerik:GridTemplateColumn DataField="SHOWCOST" HeaderText="VIEW COST ALLOCATION">
                                                       <ItemTemplate>
                                                           <asp:LinkButton ID="LnkShowCostClick" runat="server" Text='<%#Eval("SHOWCOST") %>'
                                                               CommandName="SHOWCOSTALLOCATIONClick"></asp:LinkButton>
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                               </Columns>
                                           </MasterTableView>
                                           <ClientSettings>
                                               <Scrolling AllowScroll="true" />
                                           </ClientSettings>
                                       </telerik:RadGrid>

While updating the Grid items, I need validations on that text boxes ..

Can anyone help me regarding this..

Thanks
-Rk.Moorthy
Princy
Top achievements
Rank 2
 answered on 03 Mar 2014
15 answers
780 views
I have an issue with my radComboBoxes rendering the drop-down data randomly on the screen.

Attached is an illustration of the problem with one of the fields.

The code for the combobox is as follows:

<telerik:RadComboBox ID="RadComboBox_Age_UOM_GUID" Runat="server" DataSourceID="SqlDataSource_AgeUOM" DataTextField="Description" DataValueField="sysComboBoxValues_GUID" Width="200px" />



Also, the problem only occurs once the user has to scroll down... so, the comboboxes which are present on the initial, visible portion of the page work correctly... but the moment the user has to scroll down the web page (either by clicking the down-arrow or scrolling), the combobox drop-down rendering is FUBAR.

The problem is not related to the specific control... if I change my video resolution to a lessor screen size, then a combobox higher-up on the screen which is initially visible at the higher resolution (and renders the drop-down correctly) will become FUBAR when I change to a lower resolution and then have to scroll down to get to the control. (Hopefully that makes sense... In other words, if ComboBoxA is normally visible on the web page at 1024x768 and renders correctly, if I use a machine with 800x600 resolution where ComboBoxA is only accessible after scrolling down, it will render correctly on the 1024x768 system, but render incorrectly on the 800x600 system.)

Also... the problem seems to compound itself the more you scroll down... such that, comboboxes at the way bottom of the screen, if you expand them, won't even show the expanded data (because it actually expands much 'higher up' on the non-visible portion of the web page. This confuses users as they think clicking the down-arrow on the combobox is having no effect.

I do not have this issue in development. It only occurs on the production system.

Can anyone tell me how to correct this? I have irate users.
Vishnu
Top achievements
Rank 1
 answered on 03 Mar 2014
3 answers
177 views
I have a simple grid and I'm trying to set the header text on the back end. However, whenever I try to set it, the header just doesn't show up. I'm simply doing this

<telerik:RadGrid ID="rptExams" runat="server" AutoGenerateColumns="false" Skin="MetroTouch" AllowSorting="true" OnInit="rptExams_Init"
   AllowFilteringByColumn="true" OnPreRender="rptExams_PreRender">
       <AlternatingItemStyle CssClass="trAlt" />
       <MasterTableView>
           <Columns>
               <telerik:GridBoundColumn UniqueName="excat_code" SortExpression="excat_code" DataField="excat_code">
               </telerik:GridBoundColumn>
           </Columns>
       </MasterTableView>
   </telerik:RadGrid>


protected void rptExams_PreRender(object sender, EventArgs e)
{
    GridColumn col = rptExams.Columns[0];
    col.HeaderText = "asdfasdf";
}//rptExams PreRender


But there is no column header at all. Any ideas why?
Eyup
Telerik team
 answered on 03 Mar 2014
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?