Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
115 views
(I'm fairly certain this applies to RadPrompt and RadConfirm too but I haven't tested it.)

Config - VS 2008 Express, Prometheus 3Q 2007.  RadWindowManager control sits on a master page, RadAlert is invoked from a content page.

Here are my questions/issues.

1. On IE7, the alert appears at 0,0 instead of centered.  On Firefox 2, it is centered correctly.  Is this a known problem?

2. If RadAlert/RadConfirm/RadPrompt are designed as replacements for their Javascript equivalents, why aren't they movable (on either browser)?  I set the Behavior property of the RadWindowManager to Move, but it didn't make a difference.

Thanks.
Marin Bratanov
Telerik team
 answered on 30 May 2011
5 answers
147 views
Hi,

Please advise on the following as this may influence the decision of my company to go along with telerik radscheduling.

I'm using the scheduler with "AppointmentTemplate" in the "TimelineView". Our application is a Time Attendance one, and hence we have a lot of info going into the template (Time In, Time Out, Shift Code, Scheduled In, Scheduled Out, Exceptions, Leaves, etc..). and hence the size of the template has been increased significantly (via use of CSS) to display all the information. We are grouping the appointment info by using  "Employees"  as "resources".

The problem is that when grouping, there's always a blank space equal to the size of the "AppointmentTemplate" below the later.

It is important that we remove this unnecessary big space as this affects the UI of the application.

Please provide a quick fix, if available.

Thanks in advance ...
Fabio
Top achievements
Rank 2
 answered on 30 May 2011
3 answers
99 views

Hi,

I'm kinda new with the radscheduler, but after working really hard at the calender I managed to make everything work.
Only the inlineEditTemplate is impossible to understand for me.

This is my problem : The subject can only have a few values, that's why I want to use a combobox.
But it doesn't matter how I name the field in the InlineEditTemplate, he always use the Text in the Textbox as Subject.
With the Combobox he doesn't do anything :(

Can someone explain me how I can make a very easy inlineedittemplate with 1 combox to change the subject field.

Thnx alot!

<

 

InlineEditTemplate>

 

 

<asp:TextBox runat="server" ID="SubjectTextBox2" Text='<%# Bind("Subject") %>' Width="99%"></asp:TextBox>

 

status :

<telerik:RadComboBox ID="SubjectTextBox" Runat="server" SelectedValue='<%# Bind("Subject") %>'>

 

 

<Items>

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, H00 %>" Value="H00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I00 %>" Value="I00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I30 %>" Value="I30" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P00 %>" Value="P00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P06 %>" Value="P06" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P07 %>" Value="P07" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P08 %>" Value="P08" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, H03 %>" Value="H03" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P02 %>" Value="P02" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, P46 %>" Value="P46" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, I70 %>" Value="I70" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, N00 %>" Value="N00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, U00 %>" Value="U00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, T00 %>" Value="T00" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O01 %>" Value="O01" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O03 %>" Value="O03" />

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:Statussen, O04 %>" Value="O04" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<asp:LinkButton runat="server" ID="UpdateLinkButton" CommandName="Update" Text="Update"></asp:LinkButton>&nbsp;

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

</div>

 

 

</InlineEditTemplate>

 

Plamen
Telerik team
 answered on 30 May 2011
6 answers
254 views
I'm using a RadGrid with an edit form template and I'm trying to replicate the Related ComboBoxes example within this template.  Implementing the example outside of the template was simple enough, but now I'm having difficulty working within the edit form template.  Specifically, I'm having trouble drilling down (via JQuery) and obtaining references to the pair of comboboxes for the item currently being editted.  Any insight on how to go about doing this?

Here are my scripts:
<script type="text/javascript">
  
    // This part needs to change
    function pageLoad() {
        unitsCombo = $find("<%= Unit_ComboBox.ClientID %>");
        groupsCombo = $find("<%= Group_ComboBox.ClientID %>");
    }
  
    function PopulateGroups(combo, eventArgs) {
        var item = eventArgs.get_item();
        groupsCombo.set_text("Loading...");        
  
        if (item.get_index() > 0) {
            groupsCombo.requestItems(item.get_value(), false);
        }
        else {
            groupsCombo.set_text(" ");
            groupsCombo.clearItems();            
        }
    }
  
    function ItemsPopulated(combo, eventArgs) {
        if (combo.get_items().get_count() > 0) {
            combo.set_text(combo.get_items().getItem(0).get_text());
            combo.get_items().getItem(0).highlight();
        }
        combo.showDropDown();
    }
</script>

Here is the RadGrid:
<telerik:RadGrid ID="OrganizerItemDisplay_Grid" 
        runat="server"
        BorderStyle="None" 
        Skin="Black" 
        OnNeedDataSource="OrganizerItemDisplay_Grid_NeedDataSource"
        OnItemDataBound="OrganizerItemDisplay_Grid_ItemDataBound">
        <MasterTableView 
            AllowPaging="false" 
            AllowSorting="false" 
            AutoGenerateColumns="false"
            EditFormSettings-EditFormType="Template" 
            PagerStyle-Visible="true"
            CommandItemDisplay="Top"
            CommandItemSettings-AddNewRecordText="Add New Organizer"
            CommandItemSettings-ShowAddNewRecordButton="true">            
            <NoRecordsTemplate>
                <div style="margin:0 auto; padding: 5px; width:100%">
                    <asp:Label ID="NoRecords_Label" runat="server" Text="There are no organizers on record." />
                </div>
            </NoRecordsTemplate>
            <EditFormSettings>
                <FormTemplate>
                    <ul>
                        <li>
                            <asp:Label runat="server" ID="Name_Label" AssociatedControlID="Name_TextBox" Text="Name" />
                            <telerik:RadTextBox runat="server" ID="Name_TextBox" Width="200px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="NetId_Label" AssociatedControlID="NetId_TextBox" Text="NetID" />
                            <telerik:RadTextBox runat="server" ID="NetId_TextBox" Width="200px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="Phone_Label" AssociatedControlID="Phone_TextBox" Text="Phone" />
                            <telerik:RadTextBox runat="server" ID="Phone_TextBox" Width="200px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="Role_Label" AssociatedControlID="Role_ComboBox" Text="Role" />
                            <telerik:RadComboBox ID="Role_ComboBox"
                                runat="server" 
                                OnItemDataBound="Role_ComboBox_ItemDataBound"
                                Width="204px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="Unit_Label" AssociatedControlID="Unit_ComboBox" Text="Unit" />
                            <telerik:RadComboBox ID="Unit_ComboBox"
                                runat="server"
                                OnClientSelectedIndexChanging="PopulateGroups"
                                OnItemsRequested="Unit_ComboBox_ItemsRequested"
                                OnItemDataBound="Unit_ComboBox_ItemDataBound"                             
                                Width="204px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="Group_Label" AssociatedControlID="Group_ComboBox" Text="Group" />
                            <telerik:RadComboBox ID="Group_ComboBox" 
                                runat="server"                    
                                OnClientItemsRequested="ItemsPopulated"
                                OnItemsRequested="Group_ComboBox_ItemsRequested"
                                OnItemDataBound="Group_ComboBox_ItemDataBound"
                                Width="204px" />
                        </li>
                        <li>
                            <asp:Label runat="server" ID="Email_Label" AssociatedControlID="Email_TextBox" Text="Email" />
                            <telerik:RadTextBox runat="server" ID="Email_TextBox" Width="200px" />
                        </li>
                    </ul>
                    <asp:Button ID="ViewProgram_UpdateAudience_Button" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />
                    <asp:Button ID="CancelEdit_Button" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
                </FormTemplate>
            </EditFormSettings>
            <Columns>
                <telerik:GridBoundColumn DataField="NAME" HeaderText="Name" UniqueName="Name" />
                <telerik:GridBoundColumn DataField="ORGANIZERROLE" HeaderText="Role" UniqueName="Role" />
                <telerik:GridBoundColumn DataField="ORGANIZERGROUP" HeaderText="Group" UniqueName="Group" />
                <telerik:GridButtonColumn
                    ConfirmTitle="Remove Organizer" 
                    ConfirmText="Are you sure you want to remove this organizer?"
                    ConfirmDialogType="RadWindow"
                    ButtonType="ImageButton" 
                    ImageUrl="~/Common/Images/Toolbar/toolbar_delete_small.gif"
                    Text="Remove Organizer"
                    CommandName="DELETE"
                    UniqueName="DeleteCommandColumn" />
                <telerik:GridEditCommandColumn
                    ButtonType="ImageButton"
                    UniqueName="EditCommandColumn" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

All of this is placed within an .ascx file.
Martin
Telerik team
 answered on 30 May 2011
1 answer
39 views
Hi,

i developed one discussion board application in sharepoint 2010 in that i want to use rad editor in my custom list...

so it can possible that create custom column field type which inherit rad editor properties and methods  and i just can use this custom column in my all custom list and also use in webpart.
Stanimir
Telerik team
 answered on 30 May 2011
1 answer
70 views
Not show proper and also give js error

Message: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: width
Actual value was NaN.



Stanimir
Telerik team
 answered on 30 May 2011
1 answer
89 views
HI, 

i m using SPEDITR telerik control in my custom webpart and after deplyit gives error



Compiler Error Message: CS0012: The type 'Telerik.Web.UI.RadEditor' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.Web.UI, Version=2011.1.315.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'.

Source Error:

Line 1005:        
Line 1006:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 1007:        private global::Telerik.SharePoint.SPRadEditor @__BuildControlSPRadEditor1() {
Line 1008:            global::Telerik.SharePoint.SPRadEditor @__ctrl;
Line 1009:            



Please help me to solve this error.
Stanimir
Telerik team
 answered on 30 May 2011
1 answer
119 views
I'm using a radgrid to calculate invoice columns and I would like to know if theres an event that occurs on the next click after text change in a text box column. For instance there's a row in edit mode with a text box for the price column and a text box for the quantity column. Let's say I enter the price in the text box then the quantity in the text box and on the next click on want the amount column to calcalute on the client. I attached a screen shot to you give you an idea.

Thanks,
Ron.
Shinu
Top achievements
Rank 2
 answered on 30 May 2011
9 answers
344 views
I am using the RadNumericTextBox (RNTB) for integer quantity input in an "add to basket" function several places on my website.

Lately however, I am being targeted by malicious post/injection attacks targeting the RNTB control, causing it to throw the following exception: "Text property cannot be set. Input string was not in a correct format."

The only data retrieval I am doing from RNTB, are using the DbValue property as follows:

short qty; 
if (numQuantity.DbValue != null && Int16.TryParse(numQuantity.DbValue.ToString(), out qty)) 
    EET.Web.UserContext.Basket.Add(ItemId, qty); 

At no point am I assigning values to the RNTB fields from dynamic code. Only an initial value of 1 is set programmatically on the control: Value="1" MinValue="1" MaxValue="65535"

Attached (at end of post, since .txt attachments are not allowed) is a dump from my exception handler, detailing the malicious form data which are sent to my pages.

I am very interested in handling this exception and ignoring it, as I suspect the current exception my pages are throwing, are only encouraging the perpetrators to continue trying.

Server IP: 10.10.20.112 
 
Client IP: 200.96.49.4 
Client UA: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) 
Customer:  : INTERNET 
User Id:   :  
Database:  : WebshopFR 
 
Page: /product.aspx?id=MBLY%2f2GB&path=Kingston-2GB-Mobility-Multi-Kit 
 
1: Message: Text property cannot be set. Input string was not in a correct format. 
 
1: Source: Telerik.Web.UI 
 
1: Stack Trace: 
1:    at Telerik.Web.UI.RadNumericTextBox.RangeTextProperty(String value) 
1:    at Telerik.Web.UI.RadNumericTextBox.set_Text(String value) 
1:    at Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection) 
1:    at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) 
1:    at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) 
1:    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
 
1: Target Site: System.String RangeTextProperty(System.String) 
 
Form Data: 
ctl00_ctl00_ScriptManager_HiddenField:                                                        
__EVENTTARGET:                                                                                
__EVENTARGUMENT:                                                                              
__LASTFOCUS:                                                                                  
__SCROLLPOSITIONX:                                                                           0 
__SCROLLPOSITIONY:                                                                           0 
ctl00$ctl00$loginBox$txtUsername:                                                            rglzfkej 
ctl00$ctl00$loginBox$txtPassword:                                                            hivxcw 
ctl00$ctl00$loginBox$chkRemember:                                                            on 
ctl00$ctl00$txtSearch:                                                                       ref/PN ou mots clés ici 
ctl00$ctl00$listLanguages:                                                                   fr-fr 
ctl00_ctl00_PageContents_PageContents_itemDetails_repItem_ctl00_atb_numQuantity_text:        2rand[0,1,1] 
ctl00$ctl00$PageContents$PageContents$itemDetails$repItem$ctl00$atb$numQuantity:             2rand[0,1,1] 
ctl00_ctl00_PageContents_PageContents_itemDetails_repItem_ctl00_atb_numQuantity_ClientState:  
ctl00_ctl00_PageContents_PageContents_tabsDetails_ClientState:                                
ctl00_ctl00_PageContents_PageContents_itemList_tblProducts_ClientState:                       
ctl00_ctl00_PageContents_PageContents_mpDetails_ClientState:                                  
ctl00_ctl00_Menus_tree_ClientState:                                                           
ctl00_ctl00_Menus_Right_repMostSold_ctl01_atb_numQuantity_text:                              61 
ctl00$ctl00$Menus$Right$repMostSold$ctl01$atb$numQuantity:                                   1 
ctl00_ctl00_Menus_Right_repMostSold_ctl01_atb_numQuantity_ClientState:                        
ctl00$ctl00$Menus$Right$repMostSold$ctl01$atb$btnAddToBasket:                                 
ctl00_ctl00_Menus_Right_repMostSold_ctl02_atb_numQuantity_text:                              4 
ctl00$ctl00$Menus$Right$repMostSold$ctl02$atb$numQuantity:                                   6 
ctl00_ctl00_Menus_Right_repMostSold_ctl02_atb_numQuantity_ClientState:                        
ctl00_ctl00_Menus_Right_repMostSold_ctl03_atb_numQuantity_text:                              1 
ctl00$ctl00$Menus$Right$repMostSold$ctl03$atb$numQuantity:                                   8 
ctl00_ctl00_Menus_Right_repMostSold_ctl03_atb_numQuantity_ClientState:                        
ctl00_ctl00_Menus_Right_repMostSold_ctl04_atb_numQuantity_text:                              13 
ctl00$ctl00$Menus$Right$repMostSold$ctl04$atb$numQuantity:                                   85 
ctl00_ctl00_Menus_Right_repMostSold_ctl04_atb_numQuantity_ClientState:                        

gert
Top achievements
Rank 1
 answered on 30 May 2011
5 answers
334 views
Hello Telerik,

I'm using a RadDatePicker inside a RadGrid in my project. My problem is that when I select a date the DateInput gets filled with the correct date, but when i access the property SelectedDate or DbSelectedDate of that DateInput(DatePicker), they're null. If I add another row (I get the current items(in a List) from which i bound the RadGrid, I add another one, add the list as a DataSource and call DataBind() again), the first DatePicker still has the issue described above, but the new one(on the new row) is fine, working perfectly right. The DatePicker is in a GridTemplateColumn of the RadGrid. Any help would be greatly appreciated. 

Also I have a DatePicker ouside of a RadGrid in the same project. I have the same issue with it, but with a slight difference. When it's first shown on the page it has the issue, but after one postback(asynchronous, I'm using AJAX, don't know if matters), everything's okay again, it works fine.

Thanks,
Apostol Apostolov
Inception
Top achievements
Rank 1
Veteran
 answered on 29 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?