Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
My slider icon is left aligned inside my radpane (horizontal, and it opens to the bottom).

How can I right align the icon that opens that when clicked expands the slider?
Niko
Telerik team
 answered on 16 Aug 2011
10 answers
123 views
Hi Telerik Team,

I am facing this problem. I always want to keep exactly pagesize value which user has entered before but i can't find any solution. RadGrid always set the total number of rows for page size textbox if the pagesize user has entered is larger than the total number of rows.

Please help me any solution to resolve it.

Thanks!
Pavlina
Telerik team
 answered on 16 Aug 2011
1 answer
88 views
Hi,

I modified the code from ComboInGridExample to use onneeddatassource for my project. after clicking insert, my project inserts fine. It fails to close the edit form and refresh the grid to show the new inserted row though. The following contains my C# code:

 

 

protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)  

try  

//Get the GridEditFormInsertItem of the RadGrid 

 

GridDataInsertItem insertedItem = (GridDataInsertItem)e.Item;  

RadComboBox RadComboboxUnloadType = insertedItem.FindControl("RadComboBoxUnloadType") as RadComboBox;  

RadDatePicker EventStartDateTime = (RadDatePicker)insertedItem["EventStartDateTime"].Controls[0];  

RadDatePicker EventEndDateTime = (RadDatePicker)insertedItem["EventEndDateTime"].Controls[0];  

WellVentData WellVent = new WellVentData();  

WellVent.UpdateInsertEvent(CAI,

RadComboboxUnloadType.SelectedValue.ToString(),

EventStartDateTime.SelectedDate.ToString(),

EventEndDateTime.SelectedDate.ToString(),

(insertedItem["CountofEvents"].Controls[0] as RadNumericTextBox).Text,  

(insertedItem["SalesLinePressure"].Controls[0] as RadNumericTextBox).Text, 
(insertedItem["ShutInPressure"].Controls[0] as RadNumericTextBox).Text,  

(insertedItem["FOpHierarchy_ID"].Controls[0] as TextBox).Text); 

catch (Exception ex)  

{

RadGrid1.Controls.Add(new LiteralControl("Unable to insert Event. Reason: " + ex.Message));

 e.Canceled = true;

 

}

}

********The following contains the aspx code******************

 

<

 

 

telerik:RadGrid ID="RadGrid1" GridLines="None" AutoGenerateColumns="False"

 

 

 

runat="server" AllowPaging="True" AllowSorting="True"

 

 

 

OnItemDataBound="OnItemDataBoundHandler"

 

 

 

AllowAutomaticUpdates="True" AllowAutomaticInserts="True"

 

 

 

ShowStatusBar="True" AllowFilteringByColumn="True"

 

 

 

CellSpacing="0" EnableAJAX="True" onneeddatasource="RadGrid1_NeedDataSource"

 

 

 

oninsertcommand="RadGrid1_InsertCommand"

 

 

 

onupdatecommand="RadGrid1_UpdateCommand"

 

 

 

ondeletecommand="Rad" AllowAutomaticDeletes="True" >

 

 

 

 

 

 

 

<MasterTableView ShowFooter="false" DataKeyNames="ResultsID" EditMode="InPlace" CommandItemDisplay="TopAndBottom">

 

Shinu
Top achievements
Rank 2
 answered on 16 Aug 2011
1 answer
115 views

I'm adding a custom tooltip to "Special" events on the RadCalendar.  My code is below.

cell.Attributes.Add(

 

"id", "Calendar1_" + i.ToString());

 

RadToolTipManager1.TargetControls.Add(e.Cell.Attributes[

 

"id"], i.ToString(), true);

This works on the current month view.  So I'll hover and tooltip shows.....But when I add a future Event, I'll click on the next month link and it will show..ex. 9/9/2011....but when I hover all I get is a regular tooltip.
         Things I want to do:
                  1.  I want to load all my events info as the Page/Calendar loads.  I do not want to make an Ajax call.
                  2.  Tooltip doesnt seem to work on Weekends either, even on the current month....ex. 08/20/2011.....Any ideas?

Full Code:

 

 

 

protected void RadCalendar1_Load(object sender, EventArgs e)

 

{

 

 

RadCalendarDay calendarDay1 = new RadCalendarDay();

 

 

 

// calendarDay1.TemplateID = "EventTemplate";

 

 

 

 

 

calendarDay1.Date =

 

new DateTime(2011, 8, 19);

 

calendarDay1.ItemStyle.BorderColor = System.Drawing.

 

Color.Green;

 

calendarDay1.ItemStyle.BackColor = System.Drawing.

 

Color.Yellow;

 

 

 

 

 

 

RadCalendar1.SpecialDays.Add(calendarDay1);

 

 

 

 

 

 

 

 

RadCalendarDay calendarDay2 = new RadCalendarDay();

 

calendarDay2.Date =

 

new DateTime(2011, 9, 9);

 

 

 

 

 

 

calendarDay2.ItemStyle.CssClass =

 

"rcEvent";

 

 

 

 

 

 

calendarDay2.ToolTip =

 

"This is a test2<br/>Hello2";

 

RadCalendar1.SpecialDays.Add(calendarDay2);

 

 

RadCalendarDay calendarDay3 = new RadCalendarDay();

 

calendarDay3.Date =

 

new DateTime(2011, 8, 30);

 

calendarDay3.ItemStyle.BorderColor = System.Drawing.

 

Color.Green;

 

calendarDay3.ItemStyle.BackColor = System.Drawing.

 

Color.Yellow;

 

 

 

// calendarDay3.TemplateID = "EventTemplate";

 

 

 

 

 

RadCalendar1.SpecialDays.Add(calendarDay3);

 

 

RadCalendarDay calendarDay4 = new RadCalendarDay();

 

calendarDay4.Date =

 

new DateTime(2011, 3, 6);

 

calendarDay4.ItemStyle.BorderColor = System.Drawing.

 

Color.Green;

 

calendarDay4.ItemStyle.BackColor = System.Drawing.

 

Color.Yellow;

 

 

 

// calendarDay3.TemplateID = "EventTemplate";

 

 

 

 

 

RadCalendar1.SpecialDays.Add(calendarDay4);

 

 

RadCalendarDay calendarDay5 = new RadCalendarDay();

 

calendarDay5.Date =

 

new DateTime(2011, 12, 11);

 

calendarDay5.ItemStyle.BorderColor = System.Drawing.

 

Color.Green;

 

calendarDay5.ItemStyle.BackColor = System.Drawing.

 

Color.Yellow;

 

 

 

// calendarDay3.TemplateID = "EventTemplate";

 

 

 

 

 

RadCalendar1.SpecialDays.Add(calendarDay5);

}

 

 

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)

 

{

 

 

Control ctrl = Page.LoadControl("ToolTip.ascx");

 

args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);

 

 

ToolTip details = (ToolTip)ctrl;

 

details.TestText = args.Value;

}

 

 

 

protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)

 

{

 

 

//string test = "Hello";

 

 

 

 

 

 

 

if (IsDayRegisteredForTooltip((e.Day.Date)))

 

{

 

 

TableCell cell = e.Cell;

 

 

 

// cell.CssClass = "Appointment";

 

 

 

 

 

 

 

string localTime = DateTime.Now.ToLocalTime().ToString();

 

 

 

//cell.Attributes.Add("id", "Calendar1_" + localTime);

 

 

 

 

 

 

 

//RadToolTipManager1.TargetControls.Add(e.Cell.Attributes["id"], localTime, true);

 

 

 

 

 

cell.Attributes.Add(

 

"id", "Calendar1_" + i.ToString());

 

RadToolTipManager1.TargetControls.Add(e.Cell.Attributes[

 

"id"], i.ToString(), true);

 

 

 

// RadToolTip1.Controls.Add(cell);

 

 

 

 

 

i++;

}

 

}

 

 

private bool IsDayRegisteredForTooltip(DateTime date)

 

{

 

 

if (date.ToShortDateString().Equals("8/30/2011") || date.ToShortDateString().Equals("9/9/2011"))

 

 

 

// if ( date.ToShortDateString().Equals("9/10/2011"))

 

 

 

 

 

{

 

 

return true;

 

}

 

 

else

 

 

 

 

 

{

 

 

return false;

 

}

}

Mira
Telerik team
 answered on 16 Aug 2011
3 answers
77 views
Currently the RadFilter is designed to create expression as AND expr1 expr2 etc. I am trying to design a filter (see the image).

In case it is not possible to morph RadFilter to do this, can anybody give me a pointer on how to approach this problem?

Thanks
SK
Radoslav
Telerik team
 answered on 16 Aug 2011
3 answers
121 views
Hi,

We have moved asp.net web app to new server, where we are getting problems like

Respose.Redirect is not working.
dropdownlist auto post back is not working.
left items in grid are not working..

We are Radajax controls in website.

Please let me know how to solve these issues.....

Thank you for you help....
Pavlina
Telerik team
 answered on 16 Aug 2011
3 answers
108 views
Hi,

Can a hierarchical radgrid be binded on clientside to JSON objects?
I want to bind a master detail table with HierarchyLoadMode="Client" and HierarchyDefaultExpanded="true" and grouping enabled.

Regards,
Kalyan
Tsvetina
Telerik team
 answered on 16 Aug 2011
1 answer
77 views
Hi

I have created a custom configfile to work with a specific pagelayout. I have copied it manually to the /_wpresources folder on my development server and confirmed that the customization works as intended. However, when it comes to deploying the custom config file, I cannot deploy to the /_wpresources folder since it requires a repackaging of the wsp, which I believe is a bit drastic, I would rather deploy the custom config file along with page layout and refer to the other location in the pagelayout using the Configfile attribute of the RadHtmlField. I have tried to figure out exactly how the relative reference of the ConfigFile attribute should look but have had no luck. 

Could you please advice.

Thanks,
Lars Kohsel 
Stanimir
Telerik team
 answered on 16 Aug 2011
1 answer
82 views
Hi

I have 2 radtrees where i want to drag nodes from 1 tree to another. but while dropping node from one tree to another tree i want to stop drag and drop  within in tree. i mean how to stop drag and drop within a tree.

Thank you

Usman 
Princy
Top achievements
Rank 2
 answered on 16 Aug 2011
5 answers
93 views
After upgrading to Q2 2011, IE9 isn't showing Flash Movies in my web pages.
In Firefox and Chrome it's fine.
Can you please check it...
Bozhidar
Telerik team
 answered on 16 Aug 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?