Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views
Hi,

I have one issue with Datetime filter textbox not set to empty after clicking on NoFilter menu item. Is there any solution for that?

Thanks,
Sam
Samnang
Top achievements
Rank 1
 answered on 09 Sep 2009
3 answers
939 views
Hello, I am having a problem with the radtext editor....  I am inserting the text from the radeditor into a sql table.  When I insert it the record in the db contains everything including the html tags. 
<span style="text-decoration: underline">this is a test.</span><br /><br /><span style="text-decoration: underline">this is another test.</span><br /><br />

My problem is when I try to pull that data back into any kindof of gridview, data repeater, datalist, it pulls all the tags as well.  I need to some how pull all the data into my ContentPlaceHolder1 and have it formatted like it was in the editor.  I have seen this done in classic asp, where the data is pulled straight from the sql table into an html table and then all the formating does what its suppose to do.  I am using asp.net though.  I have an update page with my rad editor and a display page for the results.  Can anybody help me out here?

Thank you

 

ManniAT
Top achievements
Rank 2
 answered on 09 Sep 2009
5 answers
193 views
Hello.

I am converting a page using asp:GridView to a RadGrid control and am having trouble with the latter's server side event DataBound.  In the GridView, I have used the DataBound to alter the HeaderText of a particular column based on the value of a Session variable:


protected
void scheduleGridView_DataBound(object sender, EventArgs e)

{

 

 

// Set the correct label on the data grid using session variable

 

 

 

if (clinTypeID == 1) //MD

 

 

 

{

 

scheduleGridView.Columns[0].HeaderText = 

"MD";
}

 

 

 

else //CRNA

 

 

 

{

 

scheduleGridView.Columns[0].HeaderText = 

"CRNA";

 

 

}}

Exactly the same code is used with the RadGrid:

 


protected
void scheduleRadGrid_DataBound(object sender, EventArgs e)

{

 

// Set the correct label on the RadGrid using session variable

 

 

 

 

if (clinTypeID == 1) //MD

 

 

 

 

{

 

 

scheduleRadGrid.Columns[0].HeaderText = 

"MD";
}

 

 

 

else //CRNA

 

 

 

 

{

 

 

scheduleRadGrid.Columns[0].HeaderText = 

"CRNA";

 

 

 

}}

This does not work for the RadGrid.  I set a breakpoint in this code and confirmed that the HeaderText value IS being changed.  However, this is not reflected when the control is rendered.  What could I be missing?  Thanks!

Tom Stanley

 

T. Stanley
Top achievements
Rank 1
 answered on 09 Sep 2009
0 answers
90 views
I was creating my own appointments and binding them to the RadScheduler. I seem to be adding the appointments, but am having trouble getting the other occurences of the ReccurenceRule to show. I kept the appointment data to the minimum, but maybe i missed a key property?

IList<Appointment> AppointmentList = new List<Appointment>();
foreach (DataRow row in data.AsEnumerable())
        {
            Appointment app = new Appointment();
            app.ID = row["ID"].ToString();
            app.RecurrenceParentID = row["RecurrenceParentID"].ToString();
            app.Subject = row["Subject"].ToString();
            app.Start = (DateTime)row["StartTime"];
            app.End = (DateTime)row["EndTime"];
            app.RecurrenceRule = row["RecurrenceRule"].ToString();
            AppointmentList.Add(app);
        } 

   RadScheduler1.DataSource = AppointmentList;
   RadScheduler1.DataBind();


my RecurrenceRule is a string like below

DTSTART:20090310T210000Z\r\nDTEND:20090311T210000Z\r\nRRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU\r\n

I see the appointment, but its only for that one Tuesday?

other things i have attempted
  • modify the DTEND to a further date
  • set the appointment with all the different RecurrenceState values on the Enum
  • went ahead and put EnableRecurrenceSupport="true" on the scheduler itself
  • move the code from pageload to page_Init
  • tried the RecurrenceRule with and without the \r\n  (i read they are needed)

I feel theres something im missing as i am hoping to move from the XmlSchedulerProvider to my own custom implemented provider that has a database backend. I feel as if the provider is doing something that I'm missing, although i cant seem to find that something within reflector when i look at it.

cheers,
ryan




ryan grubbs
Top achievements
Rank 1
 asked on 09 Sep 2009
5 answers
337 views
Hello,

I'm trying to display a userControl in a tooltip for a treeview control which is displayed for few nodes based on a condition, The tooltip should display textboxes with some attributes of the Node, I'm Using RadToolTipManager following the demo

 <telerik:RadToolTipManager Width="215px" Skin="Sunset" Height="260px" 
                            RelativeTo="Element" AutoTooltipify="false" HideEvent="FromCode" ShowEvent="FromCode" ID="RadToolTipManager2" runat="server" OffsetX="15" Position="MiddleRight" 
                            OnAjaxUpdate="RadToolTipmanager1_AjaxUpdate"> 
                        </telerik:RadToolTipManager> 

I'm setting the value of the tooltip to the NodeID
function OnClientMouseOver(sender, args) { 
         
         var nodeElem = args.get_node(); 
         if (nodeElem.get_level() != 0) { 
             var node = nodeElem.get_textElement(); 
 
             var tooltipManager = $find("<%= RadToolTipManager2.ClientID%>"); 
 
             //If the user hovers the image before the page has loaded, there is no manager created 
             if (!tooltipManager) return; 
 
             //Find the tooltip for this element if it has been created  
             var tooltip = tooltipManager.getToolTipByElement(node); 
 
             //Create a tooltip if no tooltip exists for such element 
             if (!tooltip) { 
                  
                 if (nodeElem.get_attributes().getAttribute("userdefined") == "yes") { 
                     tooltip = tooltipManager.createToolTip(node); 
                      
                     tooltip.set_value(nodeElem.get_attributes().getAttribute("NodeID")); 
                     tooltip.show(); 
                 } 
             } 
         } 
     } 
On the ToolTipManager AjaxUpdate event I'm trying to get the node from the treeview based on the attribute NodeID.But the treeview always shows just one node (root node) on the tree when it actually has 4 nodes totally.
 protected void RadToolTipmanager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e) 
        { 
            ColumnDetails details = (ColumnDetails)this.LoadControl("ColumnDetails.ascx"); 
            details.NodeID = e.Value; 
            RadTreeNode oNode = rtvAssignSelectedTree.Nodes[0].Nodes.FindNodeByAttribute("NodeID", e.Value); 
            details.rtvSelectedTree = rtvAssignSelectedTree; 
            details.rttNodeToolTip = RadToolTipManager2; 
            string Text = oNode.Text.Substring(0, oNode.Text.IndexOf('(')); 
            string Length = oNode.Text.Substring(oNode.Text.IndexOf(','), oNode.Text.IndexOf(')') - oNode.Text.IndexOf(',')); 
            ((TextBox)details.FindControl("txtColumnName")).Text = Text; 
            ((TextBox)details.FindControl("txtLength")).Text = Length; 
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(details); 
        } 

Can someone please help me figure what i'm doing wrong. oNode in the above event is always null, rtvAssignSelectedTree.Nodes[0].Nodes.Count is always 0.

Thank you,
Phani
Phani Alla
Top achievements
Rank 1
 answered on 09 Sep 2009
6 answers
174 views
Hi,

We are using a formview with multiple usercontrols.
In each usercontrol are one or more comboboxes.

The comboboxes in a usercontrol are inside an asp:updatepanel.
When i select an item in a combobox the other comboboxes on the page are getting messed up.

You can see this in the following link:
http://bart.nimio.info/images/fora/popup.jpg

Is there a solution for this problem?
Datamex
Top achievements
Rank 2
 answered on 09 Sep 2009
3 answers
138 views
Hi,

When I enable the combination of AllowScrolling and UseStaticHeaders with a set ScrollHeight, if there are enough items to cause the vertical scrolling to occur, it also causes the horizontal scrolling.  My best guess is that it trys to use part of the grid for the scroll bar and doesnt re-size the columns to fit inside of it.  Instead its funny looking in that the headers stay static even when horizontally scrolling.  Is there a way to fix this so that if a vertical scroll bar is needed, the columns will resize to not think they need that extra 20 pixels or so?
Michael Arocho
Top achievements
Rank 2
 answered on 09 Sep 2009
1 answer
114 views
Hello, here is my problem.
I define an initial SqlDataSource sqlDataSource 1 statically and, according to some input parameters, at runtime I update it dinamically when clicking a button (say btnUpdate), binding it to the RadGrid1 control.
The grid shows the correct results but,  when sliding to a second page of results, the items found are not the ones filtered by the updated query but by the initial of the sqlDataSouce1 statically defined.
All this is done with Ajax without postbacking the page.
Where is my error?
Thanks.
  
Martin
Telerik team
 answered on 09 Sep 2009
1 answer
145 views


i have to specify total number of nested GridTableView and create a detail table to each GridTableView created
depends on the input #of time nested


example input 5 nested GridTableView

output should be like this:
GridTableView 0
     GridTableView1
            GridTableView2
                GridTableView 3
                         GridTableView 4    

 public GridTableView CreateDetailTable(int i) 
    { 
 
            GridTableView table = new GridTableView(); 
            table.Name=string.Format("GridTableView{0}", i); 
         
         
        return table;  
    } 
 
    public GridTableView AddDetailTable(GridTableView view,int i) 
    { 
 
        view.DetailTables.Add(CreateDetailTable(i)); 
         
        foreach (GridTableView vw in view.DetailTables) 
        { 
            tableview = vw; 
        } 
        return tableview; 
    } 
 
    private void GenerateDetailTable(int count) 
    { 
 
        gtv = new GridTableView(); 
        GridTableView tempView = CreateDetailTable(0); 
        gtv.DetailTables.Add(tempView); 
        GridTableView Loop = gtv; 
        for (int i = 1; i < count; i++) 
        { 
            tempView=AddDetailTable(tempView, i); 
 
            foreach (GridTableView item in Loop.DetailTables) 
            { 
                item.DetailTables.Add(tempView); 
                Loop = item; 
            } 
        } 
    } 

example input 3 nested GridTableView

output should be like this:
GridTableView0
     GridTableView1
            GridTableView2
Martin
Telerik team
 answered on 09 Sep 2009
1 answer
206 views
hi
i tested ur Persian calendar but it isn't Persian calendar!!!there are many differences between standard calendar and Persian calendar
1-months of Persian calendar are:
Farvardin = فرودين
Ordibehesht = ارديبهشت
Khordad = خرداد
Tir = تير
Mordad = مرداد
Shahrivar = شهريور
Mehr = مهر
Aban = آبان
Azar = آذر
Dey = دي
Bahman = بهمن
Esfand = اسفند
2-number of current year in Persian is 1388
3-style of date in persian date is like this : YYYY/MM/DD ( for example  "1388/06/16" is today  )

can u change it?
Martin
Telerik team
 answered on 09 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?