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

My requirement is something like this, I have to show 3 comments (or you can say headers) in one dropdown. I dont want user to select these headers. I am not able sure Telerik has such feature or not but would like to know if there is any way I could achieve this.

Dropdown look like this...

-----Master Options----
Master 1
Master 2
Master 3
----Child Options-----
Child 1
child 2
child 3
----Grand Child Options 2----
Grand Child 1
Grand Child 2

I dont want to allow user to select all 3 headings.

Please kindly guide me on this.

Thanks and Regards,
Pradip Rajput
Veselin Vasilev
Telerik team
 answered on 16 Jun 2009
4 answers
149 views
Hi

I am trying to access image buttons within my Hierarchical Grid. Although i dont seem to be able to get hold of anything in order to access them. I am trying to do this within the DetailTableDataBind event.

 

protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

 

{

 

GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;

 

 

 

 

 

string CID = parentItem.GetDataKeyValue("TblAVCID").ToString();

 

 

var avService = new AVService();

 

 

    
using
(TList<AV> avList = avService.GetByIntVisitCategory(Int32.Parse(CID.ToString())))

 

    {

        e.DetailTableView.DataSource = avList;

    }

((

ImageButton)parentItem["colDelete"].FindControl("imgDelete")).ImageUrl = txtImageDir + "16/data.gif";

 


 


I try binding to the imagebutton but this just errors out.

Any Help would be greatly appreciated.

Thanks

 

Andrew
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
105 views
Hello Folks,

I'm currently using a "shopping cart" type application we use to make purchases in-house via bank card and contract. The users pick from a parts-list that is populated via client-side loading with a webservice, so there isnt much speed hitch there.

I Store a List<SomeSimpleCustomClassWithBasicProperties> in the session variable to keep the user's "cart" during any Ajax operations.

Any partial postback takes a ~1-1.5 second lag total round trip for the post, waiting, and then re-render. This is OK for adding parts to the list as it doesn't really interfere with how the user is using the application.

For the "cart"-side of the application page, users can pick different manufacturers/vendors to order from, and also change quantity and ordering within the "cart" (this looks and works alot like the netflix my queue page for an example)

My problem is that when the user is quickly entering a set of quantities, the delays while the partial postback is happening can be prohibitive.

I'm searching for a way to keep the "cart" between actions but without having to rely on direct server re-renders. I don't mind if this takes extensive javascript to work. I've been using jquery where possible so if any solutions can be done with that, I'm definately interested.

Basically, is there a way I can update the "cart" on the client side while simultaniously passing a message back to the server to update the session variable, without having to wait for a partial postback?

Alternatively, can I only manipulate it on the client, and then "submit" the contents (via JSON data or some other way) when the user does a postback/ajax request?

Basically the user manipulates the grid untill he clicks "save", "print" , "submit" or similar actions, at which I need to pass the data back to the server and perform validation. I'm currently setting up visual studio and etc at home and will try and post a sample of essentially what I am doing.

But, I guess Im trying to manipulate and edit a grid that was curretnly bound to a List<> in my session, and I want to do all that client-side without partial postbacks.

I'm finishing a huge project that otherwise works great (with telerik) at a reasonable sized organization and this is really the one part that seems that it could use a bit of improvement.


Bruno
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
120 views
Hi All,

I have a RadEditor from the new 2009 Q1 release and i have dumped it on a page with a script manager and it forces the Page_Load to be called twice. 

However i have just noticed that this happens inthe Chrome Browser.

Anyone have an idea how to prevent this?

Cheers.




Rumen
Telerik team
 answered on 16 Jun 2009
1 answer
122 views
Sometimes when we collapse a group it adds text to the left side of the grid several rows above where we collapses.
It seems to happen on both IE6 and IE7. Do you know what would be causing this?
Here are a couple of screenshots:
Sebastian
Telerik team
 answered on 16 Jun 2009
1 answer
110 views
Hi all,

I am using the context menu feature of the Grid and binding the grid Controls from javascript using the webservice manually. the grid is Working Wonderful except the context menu Feature . As and when if i hide a column using the context menu feature of the grid after that if i do any other functionality like Sorting filtering and if i try to unhide the Column using the Context menu, the column shows up but as soon as if do any other operation ie. sorting, filtering.  the column gets hidden.

Can U please let me know the reason behind. and solution for this issue.

For more Clarity .  i am completely doing javascript based operations only using Webservices. i.e. binding , Sorting and filtering.

Please do the needful and attach a Sample for Better understanding.

Thanks & regards
balakrishna
Rosen
Telerik team
 answered on 16 Jun 2009
1 answer
80 views
i have a grid on a ascx control, i bring up the columns dialog and enter 6 columns, pressing ok shows the columns on the display, but looking at the page source the columns havent been added and dont show on the run page.

But if i go back to the dialog editor there they all are



any ideas ?


kevin
Sebastian
Telerik team
 answered on 16 Jun 2009
3 answers
215 views
Hello

I have recently upgraded the telerik controls to Q1 2009 in my project and my hierachical grid has started acting very very slowly.

When you press the "+" to expand a row it now takes 20 seconds to do so and before it was instant. I have debugged it and after pressing the + it appears to just sit and just wait for 20 seconds. It will then run my "detailTableDataBind" function.

The grid is within a few other controls and uses AJAX, here is the code, I have removed the other two grids that are in the last 2 pageviews so not to confuse things:
  <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0">  
        <telerik:RadPageView ID="Pageview1" runat="server">  
            <div> 
                <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">  
                    <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="radGridControls">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridControls" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                        <telerik:AjaxSetting AjaxControlID="radGridPages">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridPages" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                        <telerik:AjaxSetting AjaxControlID="radGridCustomPages">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridCustomPages" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                    </AjaxSettings> 
                </telerik:RadAjaxManager> 
                <telerik:RadGrid ID="radGridControls" runat="server" GridLines="None" OnDetailTableDataBind="radGridControls_DetailTableDataBind" 
                    AutoGenerateColumns="False" OnUpdateCommand="radGridControls_UpdateCommand" OnItemDataBound="radGridControls_ItemDataBound" 
                    OnItemCommand="radGridControls_ItemCommand" OnColumnCreated="radGridControls_ColumnCreated" 
                    EnableAJAX="True">  
                    <MasterTableView> 
                        <Columns> 
                            <telerik:GridBoundColumn Visible="False" DataField="ID" UniqueName="ID" /> 
                            <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name" /> 
                        </Columns> 
                        <DetailTables> 
                            <telerik:GridTableView runat="server" Name="ControlFields" EditMode="InPlace" Width="100%">  
                                <ExpandCollapseColumn Visible="False">  
                                    <HeaderStyle Width="19px" /> 
                                </ExpandCollapseColumn> 
                                <RowIndicatorColumn Visible="False">  
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <Columns> 
                                    <telerik:GridEditCommandColumn EditImageUrl="~/images/edit.gif" UpdateImageUrl="~/images/Save.gif" 
                                        CancelImageUrl="~/images/Delete.gif" ButtonType="ImageButton">  
                                    </telerik:GridEditCommandColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="LocalizationId" Visible="False" 
                                        UniqueName="column">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Key" UniqueName="Name" HeaderText="Name">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Type" UniqueName="Control" HeaderText="Control">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Value" UniqueName="DefaultValue" 
                                        HeaderText="Value">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn UniqueName="TranslateValue" HeaderText="Selected Value">  
                                        <ItemStyle VerticalAlign="Top" /> 
                                        <ItemTemplate> 
                                            <asp:Label ID="lblValue" runat="server" Text=""></asp:Label> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <asp:TextBox ID="txtValue" runat="server" Text="" Width="95%"></asp:TextBox> 
                                        </EditItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                        </DetailTables> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="19px" /> 
                        </ExpandCollapseColumn> 
                        <RowIndicatorColumn Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                    </MasterTableView> 
                </telerik:RadGrid> 
            </div> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="Pageview2" runat="server">  
            <div> 
                
            </div> 
        </telerik:RadPageView> 
        <telerik:RadPageView runat="server" ID="PageView3">  
      
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 

Have you any ideas what's going on here?
Thanks
Veli
Telerik team
 answered on 16 Jun 2009
4 answers
81 views
My grid has a Master table and one Detail Table.

If I let the columns display in their default order, everything works as it should.

However, if I do anything thin the PreRender event to reorder the columns of the Master table, even something as trivial as ...
        protected void RadGrid1_PreRender(object sender, EventArgs e) 
        { 
            RadGrid1.MasterTableView.SwapColumns(2, 2); 
        } 
Then the detail table refuses to expand.

Why's that?

And what can I do to be able to both expand my Detail tables and reorder my columns.

--
Stuart


Stuart Hemming
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
83 views
Hello Telerik,

Sometimes I think I'm blind. Can you give me the link to Q1 2009 SP2?
I'm using Telerik ASP.Net Ajax UI Controls Q1 2009 1.311 and dealing with a lot of Jscript Errors in IE 8.0.

Thanks,
Beat
Sebastian
Telerik team
 answered on 16 Jun 2009
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?