Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
Is there an easy way to get the entire collection of items after a user goes to another page of the gird? Or, do I have to iterate through the Databound items and make my own collection? Thanks

Daniel
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2009
1 answer
180 views

You Can Disable Node Click On Parent Node On Server Side By Setting the Value of  PostBack to false then handle the level for node on node click event

 Example :

RadTreeNode Node = new RadTreeNode(Node Name Here, Node Value Here)  
Node.PostBack = false;  
tree.Nodes.Add(Node );  
 
//And on NodeClick Event We Do The Following : 
protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e)  
{  
    if (e.Node.Level != 0) 
 
    {  
       //Your Event For Click Here  
    }      
}  
 
   
 
Karthik
Top achievements
Rank 1
 answered on 05 Jun 2009
2 answers
174 views
Hi,
I want to use RadControls to maintain some of my data. First, I am testing its fuctionality to see if it can do all I need to. I created a Web Application with a RadGrid as the major element. Everything works fine in the RadGrid except for column resizing. I am able to import my data from SQL Server and reorder the columns and filter/sort and all that good stuff. However, as hard as I try, I cannot seem to make the columns resizable. I tried copying the code in html as well as C# into their appropriate files, but it just isn't working. I don't know why. If someone could help me with this problem, it would be much appreciated. Thank you.
Dimo
Telerik team
 answered on 05 Jun 2009
1 answer
68 views
Hi,
I am using AjaxLoadingPanel with a farpoint control. Since, it was not showing the loading image, I tried to put the farpoint control inside a panel or div. Code below shows how I have implemented the loading panel.

<

telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

Width="75px">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

 

 

style="border: 0px;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="ButtonViewColumnHeader">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="divSpread" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

After loading the control, I get the clientID of the updated control written on my aspx page (just above the control) as shown below.

 
175782|updatePanel|ctl00_MasterContentPlaceHolder_ctl00_MasterContentPlaceHolder_divSpreadPanel|

Has anyone come across such a strange issue? Is there any way to get rid of this display?

many thanks,

Anu

 





Veli
Telerik team
 answered on 05 Jun 2009
1 answer
104 views
Hi,
When i use radgrid with a headertemplate with scrolling, then i get empty spcae above the scrollbar (so not in sync with the styles). It happens only with firefox and its due to style "margin-right: 13px" in the header <div>.

Can you tell me is there any property that i can set, or any fix for it?

My radgrid structure (if its of any help to you)

<radgrid>
  <ClientSettings>
     <MasterTableView>
        <CommandItemTemplate>
            <Columns>
                 <GridClientSelectColumn>
                     <HeaderTemplate>
                     <ItemTemplate>

regards,
Naresh
Dimo
Telerik team
 answered on 05 Jun 2009
1 answer
111 views
Hi I have a RadGrid with ObjectDataSource who binds to DataSet Table. It works...my Grid populates correctly. The I have FormTemplate for Updating/Insert new record. There I have 4 different RadComboBox controls.....with i populate with following DataBinding:

    protected void gwTeam_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (!(e.Item is GridEditFormItem) || !e.Item.IsInEditMode) return
 
        var child = e.Item as GridEditFormItem; 
        GridDataItem parent = child.ParentItem; 
        GridColumn col; 
 
        var season = child.FindControl("cbSeason"as RadComboBox; 
        var teamName = child.FindControl("tbName"as RadTextBox; 
        var playfield = child.FindControl("cbPlayfield"as RadComboBox; 
        var teamleader = child.FindControl("cbTeamLeader"as RadComboBox; 
        var category = child.FindControl("cbCategory"as RadComboBox; 
        if(season == null || teamName == null ||  playfield == null || teamleader == null || category == null
        { 
            Response.Write("Unable to find control"); 
        } 
        else 
        { 
            season.DataSource = dsAsk.Season; 
            season.DataValueField = "SeasonID"
            season.DataTextField = "SeasonYear"
            season.DataBind(); 
            col = gwTeam.MasterTableView.GetColumnSafe("Säsong"); 
            season.SelectedValue = col.ToString();// parent["Säsong"].Text; 
 
            teamName.Text = parent["TeamName"].Text; 
 
            playfield.DataSource = dsAsk.Playfield; 
            playfield.DataValueField = "PlayfieldID"
            playfield.DataTextField = "PlayfieldName"
            playfield.DataBind(); 
            col = gwTeam.MasterTableView.GetColumnSafe("Spelplan"); 
            playfield.SelectedValue = col.ToString();// parent["Spelplan"].Text; 
 
            teamleader.DataSource = dsAsk.TeamLeader; 
            teamleader.DataValueField = "TeamLeaderID"
            teamleader.DataTextField = "TeamLeaderName"
            teamleader.DataBind(); 
            col = gwTeam.MasterTableView.GetColumnSafe("Lagledare"); 
            teamleader.SelectedValue = col.ToString();// parent["Lagledare"].Text; 
            //teamleader.Text = parent["TeamLeaderID"].Text; 
 
            category.DataSource = dsAsk.TeamCategory; 
            category.DataValueField = "TeamCategoryID"
            category.DataTextField = "TeamCategory"
            category.DataBind(); 
            col = gwTeam.MasterTableView.GetColumnSafe("Serie"); 
            category.SelectedValue = col.ToString();// parent.DataSetIndex; 
            //category.Text = parent["TeamCategoryID"].Text; 
        } 
    } 

what i need is to get/set SelectedIndex or Value on the ComboBox controls based on value in the comparing column in the Grid??

I have read and tried different methods in Telerik Help library but nothing works.....yet.
Any suggestions??

Regards

//Ingimar Andresson
Yana
Telerik team
 answered on 05 Jun 2009
4 answers
150 views
Hi,

Can we use the RadText box to overlap in the same position?If it can,how can I make it?
Dimo
Telerik team
 answered on 05 Jun 2009
1 answer
844 views
I have a radgrid and i want to know the following

1. number of rows
2. number of columns
3. row of the item selected in grid
4. column of the item selected in grid

I have tried grid.column.count but it does not have that property?

Additional question:

I have a checkbox in the grid and i want the user to select only one checkbox...

i need to deselect the previous selected checkbox if the user will check another checkbox.

Is it possible to just find the column of the checkbox then uncheck all in the checkbox in the event "onmousedown"

since if its not possible im thinking to make a "for loop" and locate each cell for the checkbox.
Princy
Top achievements
Rank 2
 answered on 05 Jun 2009
2 answers
168 views


Hi,

I have radGrid with the following markup:

 

<

 

telerik:RadGrid ID="RadGridMapFilter" runat="server" AllowPaging="True" ClientSettings-EnablePostBackOnRowClick="true"

 

 

 

 

 

PagerStyle-Mode="Slider"

 

 

GridLines="None" Width="377px" AutoGenerateColumns="False" Height="320px" >

 

 

 

 

 

 

<MasterTableView>

 

 

 

 

 

<columns>

 

 

<telerik:GridBoundColumn DataField="FilterAbb" HeaderText="Filters"

 

 

SortExpression="Filters" Visible="false" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="FilterName" HeaderText="Filters"

 

 

SortExpression="Filters" Visible="true" />

 

 

 

 

 

</columns>

 

 

 

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

<ExpandCollapseColumn Resizable="False" Visible="False">

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

<PopUpSettings ScrollBars="None" />

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<ClientSettings>

 

 

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

</telerik:RadGrid>

 

 

 

The issue is that When I select a row in this grid, randomly it will spit out Dynamic javascript errors. After debugging the Dynamic javascript error it breaks on the first line(var _33 =_31.parentNode;)

var _33=_31.parentNode;
var _34=_31.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(_31);
Telerik.Web.UI.RadAjaxControl.InsertAtLocation(_32,_33,_34);
_31.parentNode.removeChild(_31);
}

The error just says "Microsoft JScript runtime error: Object required"

Any idea why this happens randomly.The version of the telerik.web.UI dll we are using is v2008.2.1001.35.

Please let me know if you need more information from me.

Thank you,
Anshul.

Pavlina
Telerik team
 answered on 05 Jun 2009
5 answers
413 views
Hi,

Is it possible to customize the button labels for radalert, radconfirm and radprompt? Specifically, I would like to know whether we can localise the label text?

Thanks
Georgi Tunev
Telerik team
 answered on 05 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?