Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
141 views
Hi,

I'm using RadTabStrip & generating the two level tabs with the help of XML file. I want to apply diffrent styles to Parent & Child tabs.
Is there any workaround for that. Please have a look on attched image for more understanding.

Please help me out.

Regards,
Parimal Modi
Peter
Telerik team
 answered on 26 Feb 2010
3 answers
140 views
I am using the Hyperlink Properties to enter the following url:

webpage.aspx?id=30

After the editor contents are posted back to the database, the code gets converted to:

%7E/webpage.aspx?id=30

This also happens if I use the tilde as follows:

~/webpage.aspx?id=30

Is there any solution to this? Is there a secret to entering a relative URL in the editor?
Dobromir
Telerik team
 answered on 26 Feb 2010
1 answer
84 views
I have seen earlier post here where the developer wanted such function but your reply was that is not possible. Why can't we have this?

Take this scenario:

> I have two trees, both Load On Demand, using Web Service - so when expanded, the nodes are loaded.
> Based on selection in one tree, I need to check nodes in another tree via javascript only (not server side)
> Now, the node that I want to check may not exist in the another tree, because its parent is not expanded and its not loaded
> I can expand parent node first, but then I have to wait till the response is back, and then only I can find the node to check it;
> If I can turn the parent node to Intermediate state then I don't have to load all children via javascript and don't have to wait. This can be done via set_checkedState if it was available
> If not possible, then how do I know when the child nodes are loaded via web-service? is there some event that gets generated?

Let me know if you have some approach in mind for this scenario.
Dimitar Milushev
Telerik team
 answered on 26 Feb 2010
7 answers
694 views
Hello,

I want to allow moving of items from one listbox to another by double clicking an item.
I have a javascript function that checks if the move is allowed and I use it with the OnClientTransferring event.
I want to use this function also with the OnClientItemDoubleClicking event but I don't have the same event arguments supplied.

does anyone knows why isn't the OnClientTransferring invoked when transferring an item using double click?

Thanks,
Oded
Genady Sergeev
Telerik team
 answered on 26 Feb 2010
1 answer
98 views
Hi,

we have the following structure of class definition for the datasource:

  public interface IActivityInstanceBase : IDataLayerBase
    {
        string Id { get; set; }
        DateTime ExecutionDate { get; set; }
        DateTime PlannedDate { get; set; }
.....
        string ActivityInstanceName { get; set; }
        string ParentId { get; set; } 
    }

    public interface IActivityInstance : IActivityInstanceBase, IExportable, IFileAddable
    {
        IMaintenanceGroup MaintenanceGroup { get; set; }
        IActivity Activity { get; set; }
        IActivityStatus Status { get; set; }
.....
        string MaintenanceGroupName { get; set; }
        string ParentGroupName { get; set; }
    }

Datasource is of type IActivityInstance which inherits IActivityInstanceBase (connected over needdatasource event)

I have to group by a field from the base class (ParentId) which is not possible (Exception field not found in datasource).

In the definition of grid columns i can also use fields from the base class, only in the group by expression it isn´t possible.

Any ideas how to solve that?

regards,
Stefan

Veli
Telerik team
 answered on 26 Feb 2010
1 answer
109 views
I am using declarative client side binding (my DataBinding declaration looks like the following)

<DataBinding Location="Services/StoryService.svc" FilterParameterType="Linq" SelectMethod="MethodName" SortParameterType="Linq" ></DataBinding>

But, I need to pass along some custom parameters (start and end date). I've seen past posts about this, but it seems that this wasn't possible previously. As this is probably necessary in 99% of business scenarios, I'm hoping that this functionality has been added. I have tried setting values within the grids client side DataBinding event, but it doesn't seem to recognize any custom parameters there (i.e. FilterExpression, MaximumRows, SortExpression, StartRowIndex)

What is the best way for me to specify custom parameters to be passed along to my WCF service call?

Yavor
Telerik team
 answered on 26 Feb 2010
6 answers
182 views
Hello,

I am faily new to Java script. I have tried following code to add 3 elements in the combobox. But it was not successful. Can you please correct me ? Its urgent.

 

 

 

var combo = $find('<%=RadComboType.ClientID%>');     
var comboItem = new Telerik.Web.UI.RadComboBoxItem();   
var inputtext = new Array("A", "B", "C");  
for(i=0; i<inputtext.length(); i++)  
{  
   comboItem.set_text(inputtext[i]);  
   combo.trackChanges();   
   combo.get_items().add(comboItem);   
   combo.commitChanges();  
}  

 

Yana
Telerik team
 answered on 26 Feb 2010
4 answers
227 views
I want to implement custom filtering on some of the columns in the grid.

I want to display filtering options based on a databse field like Status = {active,Inactive,Pending,All}
and display records from the database accordingly.

How can I implement this functionality?

Is it also possible to display a small button in the header column and on click of that button I pop-up a list with all the options?
Mark Galbreath
Top achievements
Rank 2
 answered on 26 Feb 2010
3 answers
214 views
Hi,
  I have rad grid with an edit template.
  The edit temlate has a table.
  The second row of this table had a RadComboBox.
  Based on the value in this combobox, I need to show or hide the next row. (e.g. If its a mobile chosen in the first dropdown, I want to show a dropdown for various mobile companies, however if the user choses houses, the company drop down should go away).
  It would be preferable to show or hide this row using javascript rather than an ajax postback.
Sabyasachi Dechaudhari
Top achievements
Rank 1
 answered on 26 Feb 2010
2 answers
299 views

I would like to programmatically create a RadPanelBar using data binding from an object that implements the IEnumerable interface.

 

Furthermore, I would like to dynamically add a RadGrid to each created RadPanelItem.

 

The following program code does what I want, but unfortunately I am not able to get the SelectedIndexChanged event working for the Grids, which are included within the RadPanelBar.

 

I suppose, the problem is that the Grids for the RadPanelBar are created to late within the Page Live Cycle, because they should be created OnInit and not on the ItemDataBound event of the RadPanelBar.

 

I don’t know how to dynamically add Grids to the RadPanelBar, which have been created early enough within the page life cycle in order to maintain their view state. Does anybody know a solution for this issue?

 

public class EOBDCode

    {

        public string Code { get; set; }               

        public EOBDCode() {}

    }

               

    public partial class _Default : System.Web.UI.Page

    {              

        private List<EOBDCode> GetEOBDCodesList()

        {

            List<EOBDCode> list = new List<EOBDCode>();

            EOBDCode code;

            for (int i = 0; i < 3; i++)

            {

                code = new EOBDCode();

                code.Code = "P00" + i;               

                list.Add(code);

            }

            return list;

        }

       

        protected void Page_Init(object sender, EventArgs e)

        {           

            placeHolder.Controls.Add(CreateGrid("RadGrid1"));

        }

 

        protected void Page_PreRender(object sender, EventArgs e)

        {

            RadPanel1.DataTextField = "Code";

            RadPanel1.DataSource = GetEOBDCodesList();

            RadPanel1.DataBind();           

        }

 

        private RadGrid CreateGrid(string id)

        {

            RadGrid grid = new RadGrid();

            grid.ID = id;

            grid.ClientSettings.Selecting.AllowRowSelect = true;

            grid.SelectedIndexChanged += Grid_SelectedIndexChanged;

            grid.NeedDataSource += Grid_NeedDataSource;

            grid.ClientSettings.EnablePostBackOnRowClick = true;

            return grid;

        }

 

        protected void RadPanel_ItemDataBound(object sender, RadPanelBarEventArgs e)

        {

            EOBDCode row = (EOBDCode)e.Item.DataItem;

            RadPanelItem item = new RadPanelItem();

            item.Controls.Add(CreateGrid(row.Code));

            e.Item.Items.Add(item);

        }

 

        protected void Grid_NeedDataSource(object sender, EventArgs ea)

        {

            RadGrid grid = (sender as RadGrid);

            grid.DataSource = GetEOBDCodesList();

        }

 

        protected void Grid_SelectedIndexChanged(object sender, EventArgs e)

        {

            //not called for Grids included within the RadPanelBar,

            //but called for the Grid within the placeholder.

        }

 

<body>

    <form id="form1" runat="server">           

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager> 

    <div>

        <telerik:RadPanelBar ID="RadPanel1" runat="server" OnItemDataBound="RadPanel_ItemDataBound">      

        </telerik:RadPanelBar>

    </div>   

    <asp:PlaceHolder ID="placeHolder" runat="server"></asp:PlaceHolder>          

    </form>

</body>

Frank Lemmen
Top achievements
Rank 1
 answered on 26 Feb 2010
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?