Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
Hi all

so i have to Radmenus the diference between theme, the fisrt RADMENU1 has NavigateURL and the second RADMENU2 has only VAlue, the problem is that when i delete the first, or i turn it visible=false, its crashes like hell, on internet explorer, i have a huge maigrain from reading all the code tryuing to find a diference or a bug but nothing.

Error:
JavaScript critical error at line 5, column 1 in http://localhost:62127/Main.aspx?ReturnUrl=/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a8a277cf4-155d-4ba9-b3c0-d6f62646e5f2%3a16e4e7cd%3af7645509%3a22a6274a&_TSM_HiddenField_=ScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:8a277cf4-155d-4ba9-b3c0-d6f62646e5f2:16e4e7cd:f7645509:22a6274a

SCRIPT1002: Syntax error
Boyan Dimitrov
Telerik team
 answered on 26 Jun 2013
5 answers
396 views
Hello,
I have created an aspx page, the image was attached to this post. I put a table in html and I put the label radcombobox two and a radtextbox. The theme I use is the "silk". Now as you can see from the attached, the combobox not only aligned to radtextbox. I set the values ​​for padding and margin to zero but nothing. Also sending the html code.
How can I align everything correctly?

<table style="width: 662px;padding:0px;margin:0px">
           <tr>
               <td style="width: 102px;padding:0px;margin:0px;">
                   <asp:Label ID="Label3" runat="server" Text="Tipo alloggiato:" Width="102px"></asp:Label>
               </td>
               <td style="width: 150px;padding:0px;margin:0px;">
                   <telerik:RadComboBox ID="tipoalloggiato" Runat="server" Culture="it-IT" Skin="Silk" Width="130px">
                       <Items>
                           <telerik:RadComboBoxItem runat="server" Text="Ospite singolo" Value="16" />
                           <telerik:RadComboBoxItem runat="server" Text="Capo famiglia" Value="17" />
                           <telerik:RadComboBoxItem runat="server" Text="Capo gruppo" Value="18" />
                       </Items>
                   </telerik:RadComboBox>
               </td>
               <td style="width: 105px;padding:0px;margin:0px">
                   <asp:Label ID="Label4" runat="server" Text="nr. componenti:" Width="105px"></asp:Label>
               </td>
               <td style="width: 70px;padding:0px;margin:0px">
                   <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" Culture="it-IT" DbValueFactor="1" LabelWidth="0px" Skin="Silk" Value="1" Width="50px" DataType="System.Int32" MaxLength="4">
                       <NumberFormat ZeroPattern="n" DecimalDigits="0" DecimalSeparator="."></NumberFormat>
                       <DisabledStyle Font-Underline="False" HorizontalAlign="Right" />
                   </telerik:RadNumericTextBox>
               </td>
               <td style="width: 85px;padding:0px;margin:0px">
                   <asp:Label ID="Label5" runat="server" Text="Tipo gruppo:" Width="85px"></asp:Label>
               </td>
               <td style="width: 160px;padding:0px;margin:0px">
                   <telerik:RadComboBox ID="tipogruppo" Runat="server" Skin="Silk">
                   </telerik:RadComboBox>
               </td>
           </tr>
           </table>
Magdalena
Telerik team
 answered on 26 Jun 2013
3 answers
1.1K+ views
Okay, I've a List<String> object and RadCombobox.Items collection. I want to check all items whose values fall in that List.

Above all, this does not actually check those items, even if the condition in the "if statement" seems to be satisfied and it does execute the if block w/o any errors.

I'd love to get this doing by LINQ in a bit more efficient manner than that of below (100s of items folks, that's why I'm thinking of this as a reasonable thing to do)

I tried the Intersect but evidently, I can not compare RadComboBoxItem with a string even if I do so
 
IEnumerable<string> AdditionalCategoryTypes = LoadAdditionalCategoryTypes(thisObj.ProductID);
foreach (string val in AdditionalCategoryTypes)
{
    if (ddAdditionalCategoryTypes.Items.FindItemByValue(val) != null)
        ddAdditionalCategoryTypes.Items.FindItemByValue(val).Checked = true;
}



Thanks you much,
-Aarsh
Nencho
Telerik team
 answered on 26 Jun 2013
5 answers
235 views
hi community,

I have been looking for a solution to swap docks between two zones.

The moment I drop dock from zone 2 to zone 1 i need dock from zone 1 should come to dock 2 . (Similar  to radgrid column swapping)


Thanks Guys,
SJ



Slav
Telerik team
 answered on 26 Jun 2013
1 answer
510 views
hello friends,

  I want to get value of bound column in itemcommand event in rad grid how can i do this?
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2013
1 answer
60 views
Hello!

Ive come across a weird problem, Everytime I try to edit my form, the textboxes are in various width. Ive tried sorting this out by iterating thorugh Render.Columns and set the item.Width, with no result.

Eg something like this: 
 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
                {
                    foreach (GridEditFormItem EdItem in rgRadGrid1.Columns)
                    {
                        EdItem.Width = System.Web.UI.WebControls.Unit.Pixel(300);
                    }
}

Ofc this piece of code with yield errors due to the difference of GridEditFormItem and the columns from my rgRadGrid1.

Any idea how to solve this? I ve been stuck for the last hour:) Appreciate any help! (I've tried searching for a solution, but couldn't find anything.)
Princy
Top achievements
Rank 2
 answered on 26 Jun 2013
5 answers
120 views
I cannot find the API reference for the Telerik.Web.UI.RadAsyncUpload (I mean the one under RadControls/API Reference/Telerik.Web.UI Namespace).
Neither in online help, nor in the downloaded offline version.
Yesterday I updated to last version, but still can't find API documentation.
Is it missing?

For example I see in the online demo (Ajaxified grid) that there's a server side event ValidatingFile, but no documentation on it and the VS properties panel does not show it among available events.

Thanks
Kate
Telerik team
 answered on 26 Jun 2013
1 answer
130 views
Hi,

Attached screen is taken from Telerik demo site. Here I set StartTime and EndTime properties of TimePicker control to 8 to 17.

When I select time from popup and then use arrow keys to change time then I can see all time from 0 to 24.

I want to prevent that. Please reply fast.

Regards,
Nehal 
Vasil
Telerik team
 answered on 26 Jun 2013
1 answer
122 views
Hi everyone,

Please tell me how to hide paging control in the radgrid when the user opens either edit or insert form in the usercontrol.

Thank you,
Chi Ming
Princy
Top achievements
Rank 2
 answered on 26 Jun 2013
3 answers
160 views

Hi Telerik Team,

There is Feature available in Editor when we  click the "Paste from Word" the content is copied in to Editor but i want in Code behind.
Reason being that , our client want that when click any word document(.doc,.docx) that content is available in Editor with formatted data display.Once he Edits/Update the data that Content is save in to the Word file.

Please help
kamii47
Top achievements
Rank 1
 answered on 26 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?