Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
Hi!
How can I enabled/disabled drag and drop on each Node ?
Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Sep 2008
1 answer
164 views
I have a RadCombobox Ajax recently migrated from the classic RadCombobox

<

telerik:RadComboBox ID="si_calculation_combobox" runat="server" AutoPostBack="True" OnSelectedIndexChanged="calculation_combobox" Width="170px" Height="300px"></telerik:RadComboBox>

The OnSelectedIndexChanged event is not triggered for some reason. I am really clueless why this is happening (in this case, not happening). Does anyone experience this before?

Shinu
Top achievements
Rank 2
 answered on 18 Sep 2008
2 answers
139 views
Hi
This is my scenario
Rad grid in a usercontrol, the grid uses a edit form type webuser control. when i click on the edit column the grid show the edit form with the data well binded. but when i click on a link button this one do not fire any event, and the grid do not raise the Updatecommand event, however the row of grid collapsed.
i looked the sample ( http://demos.telerik.com/ASPNET/prometheus/Grid/Examples/DataEditing/UserControlEditForm/DefaultVB.aspx) but do not show the code behinf the ascx to see the code of the button Update
thanks
Princy
Top achievements
Rank 2
 answered on 18 Sep 2008
2 answers
119 views
Hi,

I am working on a requirement wherein i need to implement Rad Grid inside Tabstrip.I was successful in this but the problem I am facing is as follows.

1. I need to implement OnRowDblClick of RadGrid Row for this I have added following piece of code into my RadGrid

<

ClientSettings>

<ClientEvents OnRowDblClick="RowSelectedBatchAssoc" />

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

</ClientSettings>

But now Tabstrip is not working

Can anybody please help me on this?

Thanks in advance,
Medac

Medac
Top achievements
Rank 1
 answered on 18 Sep 2008
1 answer
324 views
Not sure why this is happening but the Paging footer is not showing up in he grid.

Here is the source (note I did not include the Column part):

 <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007"
                        AllowPaging="True" PageSize="20" AutoGenerateColumns="False"
                        GridLines="None" Allowsorting="False" AllowFilteringByColumn="True"
                        AlternatingItemStyle-BackColor="#eeeeee" ShowGroupPanel="True"
                    ShowStatusBar="True"
                    onneeddatasource="RadGrid1_NeedDataSource">
                        <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
                        <MasterTableView  DataKeyNames="MarketingID"
                            PagerStyle-Mode="NextPrevNumericAndAdvanced">
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="True">
                        </ClientSettings>
                        <FilterMenu Skin="Office2007" EnableTheming="True">
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                        </FilterMenu>
                    </telerik:RadGrid>           


        protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            ClientDataContext db = new ClientDataContext();
            var query = from m in db.Marketings.OrderBy(m => m.Client.ClientName).OrderBy(m => m.MarketingFormattedID)
                select new {
                    m.MarketingID,
                    m.MarketingFormattedID,
                    m.ClientID,
                    m.Client.ClientName,
                    m.Description,
                    m.MarketingType.MarketingTypeName,
                    m.SubmitDate,
                    m.ReportDate
                };
            RadGrid1.VirtualItemCount = query.Count();
            RadGrid1.DataSource = query.Skip(RadGrid1.CurrentPageIndex * RadGrid1.PageSize).Take(RadGrid1.PageSize);

        }

I stepped through the code and sure enough VirtualItemCount is set to 106, but the pager footer does not show up.

Any help would be appreciated.
Shinu
Top achievements
Rank 2
 answered on 18 Sep 2008
5 answers
216 views

Hi, 
    I am using ExpandMode.WebService option to load child nodes dynamically.

Following is the code:
UI -

<telerik:RadTreeView ID="uxRadTreeView" 
                        Runat="server"
   <Nodes>
        <telerik:RadTreeNode runat="server"
                             ExpandMode="WebService"
                             Text="Category1" Value="Category1">
        </telerik:RadTreeNode>
  </Nodes>
<webservicesettings method="GetChildNodes"
           path="SampleService.asmx" />
</telerik:RadTreeView>


WebService Method -

public static RadTreeNodeData[] GetChildNodes(RadTreeNodeData node, object context)
        {
            List<RadTreeNodeData> result = new List<RadTreeNodeData>();

            // add data for child nodes
            for (int i = 0; i < 5; i++)
            {
                RadTreeNodeData nodeData = new RadTreeNodeData();
                nodeData.Text = "child" + node.Value.ToString() + i;
                nodeData.Value = "child" + node.Value.ToString() + i;
                nodeData.Attributes.Add("onclick", "func();");
                
                if (i == 0)
                {
                    //temporarily make first node always expandable
                    nodeData.ExpandMode = TreeNodeExpandMode.WebService;
                }

                result.Add(nodeData);
            }
           
            return result.ToArray();
        }

I am attaching onclick handler to each child node, please refer the green line above.

When i click on the node, onclick handler does not execute. Am i missing something?

I also tried iterating all the child node on onclientnodepopulated handler and attaching the onclick handler there.
still no luck.

I would really appreciate any kind of help.

Thanks
Sonal

sonal
Top achievements
Rank 1
 answered on 18 Sep 2008
7 answers
241 views
Hi Telerik,

Think the new editor looks good and loads very fast - nice! But i have a few questions:

Is the 'Properties Inspector' not a implemented in the Prometheus version?

I a former editor (not last version either) i also believe, that it was possible to add style (not predefined) to a single cell (like 'padding-top:10px') from within the cell properties editor. Why has this been removed?

I really hope, that the Image Editing control will be a released in Q3, s it's the most requested feature by all my clients! Will it?

Thanks in advance!
Horsted

localman
Top achievements
Rank 1
 answered on 18 Sep 2008
2 answers
238 views

I am using a RadGrid that is bound to an objectdatasource. There is no special databinding.  I have a GridClientSelectColumn and turend on AllowRowSelect = true, and AllowMultirowSelect = true

I have a button on the page that attempts to loop thru the selectedItems of the gird, but the SelecteItems.Count is always ZERO.  Why?

<telerik:RadGrid Visible="true" runat="Server" ID="gridTest" 
                AllowSorting="True" Skin="Web20"   
 
                DataSourceID="odsAcceptedOpenItems" GridLines="None" Width="98%" AutoGenerateColumns="false" 
 
                AllowMultiRowSelection="true" EnableViewState="true">  
 
                 
 
                <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="true">  
 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
 
                    <Selecting AllowRowSelect="True" /> 
 
                </ClientSettings> 
 
                <MasterTableView TableLayout="Fixed" DataKeyNames="Id" Name="Items" GridLines="Horizontal" 
 
                    DataSourceID="odsAcceptedOpenItems">  
 
                    <Columns> 
 
                        <telerik:GridClientSelectColumn HeaderStyle-Width="25px" UniqueName="colSelect" Visible="false" /> 
 
                        <telerik:GridBoundColumn DataField="ProductName" HeaderText="Product" SortExpression="ProductName" /> 
 
                    </Columns> 
 
                </MasterTableView> 
 
            </telerik:RadGrid> 
 

Thanks!
Debbie

Debbie
Top achievements
Rank 1
 answered on 18 Sep 2008
1 answer
124 views
Is it possible to do a group by grid with a stored proc? The telerik training video shows a select statement and I am unsure how to go about grouping by columns when there is no select statement - I have added the bound columns using the open property builder and that works - but after i set the group by i would have to remove the column to hide it from repeating in the grid no? please advise. thanks. Jeff
Jeff
Top achievements
Rank 1
 answered on 17 Sep 2008
2 answers
175 views
I'm trying to build a Multi-View with some "Next" and "Previous" buttons in the CreateChildControls for a page (to later put into a SharePoint webpart) and while everything loads and seems to work ok, I get a javascript error:

"Sys.ArgumentException: Value must not be null for Controls and Behaviors"

I found some posts for ASP.NET AJAX in general that pointed at problems with the visibility of controls, but no matter what I did, I can't get rid of that JavaScript Error.  Has anybody run into this and know a way I can get rid of that error?

Code is below the sig...

Thanks in advanced,
Greg Andora
Littler Mendelson
Enterprise Applications & Development Team
Lead Applications Developer
http://www.linkedin.com/in/gregandora

        RadMultiPage mpage;  
        RadPageView pv;  
        Button btnPrevious;  
        Button btnNext;  
 
        protected override void CreateChildControls()  
        {  
            base.CreateChildControls();  
 
            RadAjaxPanel ajaxPanel = new RadAjaxPanel();  
 
            mpage = new RadMultiPage();  
 
            HtmlGenericControl topDiv = new HtmlGenericControl("div");  
            topDiv.ID = "topdiv";  
 
            btnPrevious = new Button();  
            btnPrevious.ID = "btnPrevious";  
            btnPrevious.Text = "Previous ";  
            btnPrevious.Click += new EventHandler(btnPrevious_Click);  
            btnPrevious.Enabled = false;  
            topDiv.Controls.Add(btnPrevious);  
 
            btnNext = new Button();  
            btnNext.ID = "btnNext";  
            btnNext.Text = "Next ";  
            btnNext.Click += new EventHandler(btnNext_Click);  
            topDiv.Controls.Add(btnNext);  
 
            for (int i = 0; i < 3; i++)  
            {  
                HtmlGenericControl bottomDiv = new HtmlGenericControl("div");  
                bottomDiv.ID = "bottomDiv" + i.ToString();  
                pv = new RadPageView();  
                Literal Lit = new Literal();  
                Lit.Text = "Page" + i.ToString();  
 
                bottomDiv.Controls.Add(Lit);  
                pv.Controls.Add(bottomDiv);  
                mpage.PageViews.Add(pv);  
 
            }  
 
            mpage.SelectedIndex = 0;  
            ajaxPanel.Controls.Add(topDiv);  
            ajaxPanel.Controls.Add(mpage);  
            form1.Controls.Add(ajaxPanel);  
        }  
 
        void btnNext_Click(object sender, EventArgs e)  
        {  
            mpage.SelectedIndex++;  
 
            if (mpage.SelectedIndex == mpage.PageViews.Count - 1)  
            { btnNext.Enabled = false; }  
            else   
            { btnNext.Enabled = true; }  
 
            if (mpage.SelectedIndex == 0)   
            { btnPrevious.Enabled = false; }  
            else   
            {btnPrevious.Enabled = true;}  
        }  
 
        void btnPrevious_Click(object sender, EventArgs e)  
        {  
            mpage.SelectedIndex--;  
 
            if (mpage.SelectedIndex == mpage.PageViews.Count - 1)  
            { btnNext.Enabled = false; }  
            else { btnNext.Enabled = true; }  
            if (mpage.SelectedIndex == 0)   
            { btnPrevious.Enabled = false; }  
            else   
            { btnPrevious.Enabled = true; }  
 
        }  
 
    }  
 

 

Greg
Top achievements
Rank 2
 answered on 17 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?