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

I am having an issue with the position of the bar labels. Even though i set the label orientation to "outside", the first of the below screen shot have the label within the label. How can i have the label right over the bar (first bar), and make it look like the label on the second bar? I don't want to set the autoscale=false. is there a way to do it without playing with the autoscale? I am currently using the Telerik Q1 2011 version.

Thank you.
Jacob
Top achievements
Rank 1
 answered on 12 Jul 2011
1 answer
74 views
Hi

I am testing MOSSRadEditor 5.X. Everything is working. But I don't know how to add emoticons in MOSSRadeditor Tool bar. I have to configure in ToolsFiles.xml. Can you guide me?

Thanks in advance.


Stanimir
Telerik team
 answered on 12 Jul 2011
1 answer
118 views
HI,
I RadGrid i have set
<EditFormSettings>
  <EditColumn ButtonType="PushButton">
  </EditColumn>
</EditFormSettings>

And RadGrid create asp:Button, but i have get telerik:RadButton.
I don't want to use RadFormDecorator, because it prevents the use of RadAjaxPanel

Thank



Mira
Telerik team
 answered on 12 Jul 2011
1 answer
56 views

Can you please provide me with a Grid Demo with features :

 

  1. Expanding the columns width  according to the width of the Content (with single word entered).
  2. Expanding the columns according to the width of the Content (with multiple words entered).

 

 

      As I have seen that when there is a single word entered  the columns expand as per as the Content, but when there are multiple words

      With spaces in between them I have encountered one problem that some columns expand according to the content and

      Some columns do not expand and get shrink.



Thanks in Advance.
Vasil
Telerik team
 answered on 12 Jul 2011
5 answers
194 views
Hi,

I have an ASync Upload on a web page and the only property manually added to it is to restrict the maximum number of files to 1. (  MaxFileInputsCount="1" )

I discovered some sort of issue  and here's how to replicate : (1) Open an Excel File and leave it open - don't close it (2) Select that same Excel file for upload via the Telerik ASync Upload control (3) Remove the file  from the Telerik ASync Upload Control using the Remove button---> The result is that the Telerik control seems to totally disappear from the page and this is very bad:-)

Any clue on what's going on ? I'm pretty sure this is a bug.


Seabus
P.S - I'm pretty sure I'm using the latest version
Peter Filipov
Telerik team
 answered on 12 Jul 2011
3 answers
46 views
Hy,

I want to use the RadEditor in Designmode only. However, if I use just a single Editmode, the Radeditor is not resizeable anymore (the icon on the lower right corner disappears). It is only available when using 2 or more Editmodes.

Is there a way to have the radeditor resizeable, with using just a single editmode?
Rumen
Telerik team
 answered on 12 Jul 2011
1 answer
76 views
I'm developing gridview parent and child hierarchy, here I have placed a button template column in child table and observed event is firing in Itemcommand but my question is how to get specific cell value in child table when I click on the button in the child window.

Suggest me how to overcome above one.

Advance Thanks,
Prasad.
Princy
Top achievements
Rank 2
 answered on 12 Jul 2011
1 answer
90 views
Can someone please provide me some sample code of a treeview with a formatted template such as the following example:http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultvb.aspx but using dynamically added nodes from the code behind? 

I've managed to get nodes dynamically created and somewhat formatted using this example http://www.telerik.com/community/forums/aspnet-ajax/treeview/unexpected-behaviour-w-radtreeview-and-node-templates.aspx
but I'd like to be able to put a line break between a couple of custom attributes or format the line as a table.

Thanks.
Nikolay Tsenkov
Telerik team
 answered on 12 Jul 2011
3 answers
300 views
Hi,

I am using a Telerik Rad grid in my application from where I need to filter data from an expression which creates with selected multiple columns. In my grid there is a DateTimeColumn and other several columns to filter data. When I select each column separately filter is working but for selected multiple columns the filter expression is not working  well.  So I need to filter data from multiple columns with the filter expression.
Here is the code listing i have done with the grid.

protected void grdUserType_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            string Datakey = item.GetDataKeyValue("RegBy") == null ? "-1" : item.GetDataKeyValue("RegBy").ToString();
            DataRowView DataItem = (DataRowView)e.Item.DataItem;
            item["ActionType"].Text = string.Format("{0} ({1})", DataItem["ActionType"], DataItem["Description"]);              
            HyperLink hy = new HyperLink();
            hy.Text = item.GetDataKeyValue("FullName").ToString();
            hy.Attributes.Add("onclick", "javascript:calluserpopup('" + Datakey + "');return false;");
            hy.NavigateUrl = "#";
            hy.CssClass = "pagelinks";
            item["RegBy"].Controls.Add(hy);

            Label lblDt = (Label)item["RegDateOnly"].FindControl("lblDt");
            lblDt.Text = string.Format("{0}", Convert.ToDateTime(DataItem["RegDate"]));
        }
       
        if (e.Item is GridFilteringItem)
        {
            Control ctl = (e.Item as GridFilteringItem)["RegDateOnly"].Controls[1];
            RadDatePicker tbPattern = ctl as RadDatePicker;
            if (Session["OldPattern"] != null )
            tbPattern.SelectedDate = Convert.ToDateTime(Session["OldPattern"]);

        }
    }

protected void grdUserType_ItemCommand(object source, GridCommandEventArgs e)
     {
        switch (e.CommandName)
        {
            case RadGrid.FilterCommandName:
                System.Web.UI.Pair pair = (System.Web.UI.Pair)e.CommandArgument;
                if (pair.First.ToString() == "EqualTo" | pair.First.ToString() == "GreaterThan" | pair.First.ToString() == "LessThan" )
                {
                    if (pair.Second.ToString() == "RegDateOnly" )
                    {
                        DatePatternfunction = pair.First.ToString();
                        Control ctl = (e.Item as GridFilteringItem)["RegDateOnly"].Controls[1];
                       RadDatePicker tbPattern = ctl as RadDatePicker;

                        DateTime dt2 = tbPattern.SelectedDate.Value;

                        // Convert the date to date type of the database
                        string dt = dt2.ToString("d", new System.Globalization.CultureInfo("en-Gb"));
                        GridFilteringItem filterItem = (GridFilteringItem)e.Item;

                        string filterPattern = string.Empty;
                       
                        filterPattern = dt;
                        Session["filterPattern"] = filterPattern;
                        Session["OldPattern"] = string.Format("{0:d}", dt2.Date);
                               
                    }
                }
                if (pair.First.ToString() == "NoFilter")
                {
                    Session["filterPattern"] = null ;
                   Session["OldPattern"] = null;

               }
              break ;
        }
    } 

protected void grdUserType_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        if (Session["filterPattern"] != null)
        {
               string Expression = grdUserType.MasterTableView.FilterExpression;
           
               // To convert the date format which accepts the data base
               Expression = Expression.Replace(Session["OldPattern"].ToString(), Session["filterPattern"].ToString());

               grdUserType.MasterTableView.FilterExpression = Expression;
               DatePatternfunction = string.Empty; 
                Session["filterPattern"] = null;
        }
       // To get the data source to the grid
        grdUserType.DataSource = this.GetDataTable(1);
    }
Veli
Telerik team
 answered on 12 Jul 2011
10 answers
745 views
I am using the automatic inline edit/insert on a radgrid that is bound to an ObjectDataSource based on a business object.  Edits and deletes work great, but I am having problems getting the insert to work correctly.

Here are the columns in the radgrid:
<Columns> 
    <telerik:GridBoundColumn DataField="NoteID" DataType="System.Int32" HeaderText="NoteID" SortExpression="NoteID" UniqueName="NoteID" Visible="false" ReadOnly="true" /> 
    <telerik:GridDateTimeColumn DataField="NoteDate" DataType="System.DateTime" UniqueName="NoteDate" HeaderText="Date" HeaderStyle-Width="1" AllowSorting="true" DataFormatString="{0:M/d/yyyy}" />                                                 
    <telerik:GridBoundColumn DataField="Note" HeaderText="Note" SortExpression="Note" UniqueName="Note" /> 
    <telerik:GridBoundColumn DataField="UserID" DataType="System.Int32" HeaderText="UserID" SortExpression="UserID" UniqueName="UserID1" Visible="false" ReadOnly="true"   />            
    <telerik:GridBoundColumn DataField="StudentID" DataType="System.Int32" HeaderText="StudentID" SortExpression="StudentID" UniqueName="StudentID1" Visible="false" ReadOnly="true" />          
</Columns> 
 

Here is the ObjectDataSource:
<asp:ObjectDataSource ID="dsNotes" runat="server" DataObjectTypeName="StudentNote" TypeName="StudentNoteManager" DeleteMethod="Delete" InsertMethod="Save" SelectMethod="GetNotes" UpdateMethod="Save"
    <InsertParameters> 
        <asp:QueryStringParameter Name="StudentID" QueryStringField="sid" Type="Int32" /> 
        <asp:SessionParameter SessionField="UserID" Name="UserID" Type="Int32" /> 
    </InsertParameters> 
</asp:ObjectDataSource> 
 

When I do an insert, a new note is created, however, the 2 fields that should be set by the insert parameters are set to 0.

Am I missing something?
Veli
Telerik team
 answered on 12 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?