Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views
I ma using 2 level hierarchical radgrid. In that i want at a time only one data can be inserted or updated. Like if we click on add link and then on edit link then add link should be closed . In the same way no two edit rows can be opened at a time.


Below is the demo which i am referring:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx
Eyup
Telerik team
 answered on 05 Jun 2012
1 answer
131 views
Hi guys,

I working with a radgrid that contains in a column a rad Combobox with multiples columns where the user can search items. I wish when the user select an item found in the rad combobox, it must fill out the others cells in the same row. But all events fired after insert or edit command.

Thanks in advance..

Carlos


This is my code:


<telerik
:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowMultiRowEdit="True" CellSpacing="0" Width="100%" Height="250px"

OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"

OnNeedDataSource="RadGrid1_NeedDataSource" OnRowDrop="RadGrid1_RowDrop" OnItemDataBound="RadGrid1_ItemDataBound"

AllowPaging="True" GridLines="None" PageSize="20">

<ClientSettings AllowRowsDragDrop="true">

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

<ClientEvents

OnGridCreated="GridCreated"

OnRowDropping="RadGrid1_OnRowDropping"

OnRowClick="RadGrid1_RowDblClick"

OnRowDblClick="RadGrid1_RowDblClick"

OnCommand="RadGrid1_GridCommand" />

<Scrolling AllowScroll="true" />

</ClientSettings>

<MasterTableView Width="100%" HorizontalAlign="NotSet" DataKeyNames="ItemCode"

 

ShowFooter="false" EditMode="InPlace" CommandItemDisplay="Top" PageSize="20">

 

<CommandItemTemplate>

 

<telerik:RadToolBar ID="rtbarGrid" OnButtonClick="rtbarGrid_ButtonClick" runat="server" Width="100%" CausesValidation="false" Visible="false"

 

OnClientButtonClicking="rtbarGrid_ClientButtonClicking">

 

<Items>

 

<telerik:RadToolBarButton Text="Search Item" CommandName="SearchItem" Visible="true" CausesValidation="false"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" Visible="<%# !RadGrid1.MasterTableView.IsItemInserted %>" CausesValidation="false"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Edit Item" CommandName="EditSelected" Visible="<%# RadGrid1.EditIndexes.Count == 0 %>" CausesValidation="false"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" CausesValidation="false" Visible="<%# RadGrid1.EditIndexes.Count > 0 %>"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Cancel editing" CommandName="CancelAll" Visible="<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>" CausesValidation="false"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Add this Item" CommandName="PerformInsert" Visible="<%# RadGrid1.MasterTableView.IsItemInserted %>" CausesValidation="false"></telerik:RadToolBarButton>

 

<telerik:RadToolBarButton Text="Delete Item" CommandName="DeleteSelected" Visible="true"></telerik:RadToolBarButton>

 

</Items>

 

</telerik:RadToolBar>

 

</CommandItemTemplate>

 

<RowIndicatorColumn Visible="True"></RowIndicatorColumn>

 

<ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>

 

<Columns>

 

<telerik:GridBoundColumn DataField="ItemCode" Visible="true" HeaderText="Item No" UniqueName="colItemCode"></telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn HeaderText="Manuf Part No." UniqueName="colU_MCGRP_PN" HeaderStyle-Width="200px" ItemStyle-Width="200px">

 

<FooterStyle VerticalAlign="Middle" />

 

<ItemTemplate><%#DataBinder.Eval(Container.DataItem, "U_MCGRP_PN")%></ItemTemplate>

 

<EditItemTemplate>

 

<telerik:RadComboBox ID="rcbItem" runat="server" Height="200px" Width="100%" DataTextField="U_MCGRP_PN"

 

EmptyMessage="Choose a Item" HighlightTemplatedItems="true" DataValueField="ItemCode" DropDownWidth="900px" OffsetX="0"

 

EnableLoadOnDemand="true" Filter="Contains" CloseDropDownOnBlur="true" AutoPostBack="true"

 

OnSelectedIndexChanged="rcbItem_SelectedIndexChange" OnItemsRequested="rcbItem_ItemsRequested">

 

<HeaderTemplate>

 

<ul>

 

<li class="cbLItemName">Manuf Part No.</li>

 

<li class="cbLItemDesc">Description</li>

 

<li class="cbL2">Brand Name</li>

 

<li class="cbLShortNumber">Stock</li>

 

</ul>

 

</HeaderTemplate>

 

<ItemTemplate>

 

<ul>

 

<li class="cbLItemName"><%# DataBinder.Eval(Container.DataItem, "U_MCGRP_PN")%></li>

 

<li class="cbLItemDesc">&nbsp;<%# DataBinder.Eval(Container.DataItem, "FrgnName")%></li>

 

<li class="cbL2">&nbsp;<%# DataBinder.Eval(Container.DataItem, "U_ItmBrndN")%></li>

 

<li class="cbLShortNumber">&nbsp;<%# (DataBinder.Eval(Container.DataItem, "OnHand").ToString())%></li>

 

</ul>

 

</ItemTemplate>

 

</telerik:RadComboBox>

 

</EditItemTemplate>

 

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="FrgnName" HeaderText="Description" UniqueName="colDescription"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Brand" HeaderText="Brand Name" UniqueName="colU_ItmBrndN" HeaderStyle-Width="120px" ItemStyle-Width="120px"></telerik:GridBoundColumn>

<telerik:GridNumericColumn DataField="Quantity" HeaderText="Quantity" UniqueName="colQty" DefaultInsertValue="0" DecimalDigits="0"

HeaderStyle-Width="50px" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Right">

</telerik:GridNumericColumn>

</Columns>

<EditFormSettings>

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

</EditColumn> </EditFormSettings> <PagerStyle Mode="NumericPages" PageButtonCount="4" />

 

</MasterTableView><FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

Eyup
Telerik team
 answered on 05 Jun 2012
1 answer
185 views

Hi,

I have a PageBase class that inherits from System.Web.UI.Page. I also use web user controls extensively. The RadSkinManager skins all the RadControls consistently if the RadFormDecorator is commented out. But as soon as I uncomment the RadFormDecorator sections, all the RadControls on the page acquire the "Default" skin and all ASP controls acquire the desired skin. (i.e. "Forest"). The behavior I want is for all controls to be skinned consistently. How should I modify it so that it works correctly?

Additional Information:
Using Q3 2011
I am also not allowed to use a master page but web user control solutions are ok.
The PageBase class also contains a RadAjaxManager and ScriptManagerProxy if that is of any relevance??

public abstract class PageBaseControl : Page
    {
           public RadSkinManager DefaultSkinManager;
        //public RadFormDecorator DefaultFormDecorator;
 
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            DefaultSkinManager = new RadSkinManager();
            DefaultSkinManager.ID = "DefaultSkinManager";
            //DefaultFormDecorator = new RadFormDecorator();
            //DefaultFormDecorator.ID = "DefaultFormDecorator";
 
            DefaultSkinManager.Skin = "Forest";
                //DefaultFormDecorator.Skin = "Forest";
            DefaultSkinManager.ShowChooser = false;
            DefaultSkinManager.PersistenceKey = "Skin";
            DefaultSkinManager.PersistenceMode = RadSkinManagerPersistenceMode.Session;
            //DefaultFormDecorator.DecoratedControls = FormDecoratorDecoratedControls.All;
 
               Form.Controls.Add(DefaultSkinManager);
            //Form.Controls.Add(DefaultFormDecorator);
        }
}
Niko
Telerik team
 answered on 05 Jun 2012
1 answer
78 views
Hi,
I'm create an application with the trial version 2011.3.1115.35.
Now I have a licence and I upgrade assembly with the lastest version "Telerik.Web.UI_2012_1_411_Dev_hotfix".
This application has now fonctionnal regression with this version and I want to download DEV version of trial version 2011.3.1115.35
Where I can find it ?

Thanks,
Antoine L.
Rumen
Telerik team
 answered on 05 Jun 2012
0 answers
82 views
Hello,

Were working with Q1 2011 ASP.NET AJAX Controls and we have an issue with DatePicker when we try to select Sept 2nd 2012 we cantt select it, this date is the only one we cant pick in september this year... 

Is there any implicit validation we cannot set (we think is the labor day in US, but It supposed to be the first septembers monday!!) ? I tried to set all the properties of the DatePicker control without success

Please Help!!!

Víctor 
Victor
Top achievements
Rank 1
 asked on 05 Jun 2012
2 answers
77 views
I have an app with a RadScheduler that I am displaying in an Iframe in Sharepoint. For some reason, through the IFrame, the dialogs that open when I insert/update/delete appts are very low on the screen, so that the user has to scroll down to interact with them. This doesn't happen when I use my app directly, only through the IFrame, so I am guessing it is a CSS issue. Any ideas on which Css classes I would need to modify to fix this? Or, perhaps the problem is something else?

Thanks!
acola
Top achievements
Rank 1
 answered on 05 Jun 2012
3 answers
89 views

Hi Everyone,

I am using RadEditor, and I am trying to create an insert/upload image dialog. It works great in FF, Chrome, IE7/8 and before, but in IE9 it throws JavaScript error

“Line: 792

Error: DOM Exception: INVALID_CHARACTER_ERR (5)”  

Built in debugger is throwing error at

}}else{var o=($telerik.isIE)?document.createElement("<iframe name='"+c+"'>"):document.createElement("iframe");

o.name=c;

 

And console is showing:

SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5)
ScriptResource.axd?d=rJkSr8ttpP52D876ZF1WeNxnHE6aTSXEyuHB1Xl6uJ1zBgTteHkHuv7Y2iAt9aZv9uah5nKxT6ylXPwwQHwgyljpNIHN3Q0-kSVosKQoQ2uPIfQme2LiD3_reNMfI8mZGncmOhVbL4j51EIh2kStPmT25r81&t=ffffffff987f999b, line 792 character 8

This is JavaScript used

<script type="text/javascript">

                Telerik.Web.UI.Editor.CommandList["InsertCustomImage"] = function(commandName, editor, args) {

                    var myCallbackFunction = function(sender, args) {

                        editor.pasteHtml(String.format("<img src='{0}' border='0' align='middle' alt='Custom Image' /> ", args.image));

                    }

                    editor.showExternalDialog(

                                        "UploadEmailImage.aspx",

                                        {},

                                        400,

                                        310,

                                        myCallbackFunction,

                                        null,

                                        "Insert Image",

                                        true,

                                        Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,

                                        false,

                                        true);

                };

           </script>

And aspx is:

<telerik:RadEditor ID="txtEmailMessage" runat="server" Width="99%" Height="300px">

                                    <Tools>

                                        <telerik:EditorToolGroup>

                                            <telerik:EditorTool Name="InsertCustomImage" Text="Insert Image" />

                                        </telerik:EditorToolGroup>

                                    </Tools>

                                </telerik:RadEditor>

Any help welcome

If you need anything else, please ask. 

Cheers

S

Rumen
Telerik team
 answered on 05 Jun 2012
7 answers
242 views
Hi,

 I am using  Rad Scheduler and rad calender to display Appointment .I want to restrict the user for particular time slot.please let me know how can i restrict to add appointment  at that time.
for example today at 12 am i don't want to access the user to add appointment how can i do this let me know how can resolve this issue

regards,
venkateswararao
Plamen
Telerik team
 answered on 05 Jun 2012
1 answer
139 views
Hello,

I want the Grid to be collapsed when it is initialized the first time. So I set 
MasterTableView.GroupsDefaultExpanded = false;
But if the user expands one group and sorts or reorders a column, all groups are collapsed, even the node the user just expanded.
Do I have to keep track myself which nodes were expanded by the user?

Shinu
Top achievements
Rank 2
 answered on 05 Jun 2012
1 answer
108 views
For reasons not worth going into, I'm stuck on ASP.Net 2.0 with Ajax Extensions v1.0.61025, so I'm also stuck using RadControls 2010 Q3.  And I've also only been using Telerik for a couple months, so I'm still pretty green.

I'd like to get some kind of support working for browser history with Ajax.  I've been banging my head against it for a few days now and not making much progress.  The only moderate success I've had is using Nikhil's old UpdateHistory control, although it has some issues with RadGrid.

So as just a sanity check, given my ASP.Net 2.0 constraint, what's the best way to get history working?
Maria Ilieva
Telerik team
 answered on 05 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?