Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
Hi everyone

I have a custom skin that Im applying to my ComboBoxes, its looking strange in IE, its almost as if the box is bigger than in needs to be so a pixel or two of the other backgrounds are leaking through.

I have attached an example. Any ideas how to get around this?
Jako
Top achievements
Rank 1
 answered on 03 Jul 2012
4 answers
143 views
Hi..
How could i Rad Filter id in Server Side.
I have Two RadFilter control used for my application.
How to find Which RadFilter id click AddExpression and RemoveItem.
I have attached my screen shot also...

Thanks
Newgene.
New
Top achievements
Rank 1
 answered on 03 Jul 2012
3 answers
149 views
I am trying to change the color -- foreground and background -- of the subject that appears in the cells of the scheduler when in MonthView or DayView.  The background color is set correctly, but the foreground color is not.  

In the web application, this is done in the code behind in one of the event handlers.  The values are read from the database (along with other data).  A code snippet follows.  Note: the format of the string 'style' has data such as this example: 'color:#FFFF00;background-color:#33CCFF;'

// service_request_scheduler_AppointmentDataBound
protected void service_request_scheduler_AppointmentDataBound(object sender, SchedulerEventArgs e) {
DbDataRecord currentAppointmentRecord = e.Appointment.DataItem as DbDataRecord;
if (currentAppointmentRecord != null){

string style = currentAppointmentRecord[(int)AppointmentReaderFields.Style];
if (style != null && style != string.Empty){
int foreColor = Convert.ToInt32(style.Substring(7,6),16);
e.Appointment.ForeColor = Color.FromArgb(foreColor);
int backColor = Convert.ToInt32(style.Substring(32, 6), 16);
e.Appointment.BackColor = Color.FromArgb(backColor);
}

}
}

I have run this in the debugger and the string is parsed out correctly so that what gets set in the int 'foreColor' is correct.  For debugging purposes, I have also replaced this code with a hard coded foreground color of red, and it still renders as the default (black).

Is there a known bug, am I not using  this feature as intended, or other explanation?
Peter
Telerik team
 answered on 03 Jul 2012
1 answer
131 views

Hello,

I have GridHTMLEditorColumn to display a notes_description.  I want to use Editform for update and insert, but for somereason I don't see the editform is not displaying the GridHtmlEditorColumnEditor defined in FormTemplate .  

Am I missing something in declaration  of this editor in FormTemplate

Thanks


<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">

<telerik:RadGrid ID="RadGridC" DataSourceID="SqlDataSourc1e" runat="server" skin="Windows7"

Height="500px" CellSpacing="0" GridLines="None" NoDetailRecordsText="No records to display"

AutoGenerateEditColumn="false">

<MasterTableView AllowAutomaticInserts="true" AllowAutomaticUpdates="true"AutoGenerateColumns="false"

CommandItemDisplay="Top" DataKeyNames="YEAR" EditMode="PopUp" ShowHeader="false" ShowFooter="false">
 
<CommandItemSettings AddNewRecordText="Add New record"></CommandItemSettings>
 
<Columns>
 
<telerik:GridEditCommandColumnUniqueName="EditCommandColumn" HeaderStyle-Width="20px" ButtonType="ImageButton" >
 
</telerik:GridEditCommandColumn>

<telerik:GridHTMLEditorColumn UniqueName="Notes" DataField="NOTE_DESC" SortExpression="NOTE_DESC"

HeaderStyle-Width="600px"  ItemStyle-Wrap="true" >

</telerik:GridHTMLEditorColumn>

</Columns>
<EditFormSettings PopUpSettings-Modal="true"
PopUpSettings-Height="400px"
PopUpSettings-Width="800px"
PopUpSettings-ShowCaptionInEditForm="false"
InsertCaption="Adding New record"
EditFormType="Template" >
<FormTemplate>
 <table id="Table2">
 <tr>
 <td>
 <telerik:GridHTMLEditorColumnEditor runat="server" ID="noteseditor" Editor-Content='<%# Bind("NOTE_DESC") %>'
 Editor-EditModes="Design" Editor-OnClientLoad="LimitCharacters" Editor-Height="300px" Editor-Width="200px" >
 </telerik:GridHTMLEditorColumnEditor>
 
</td>
 
</tr>
 
</table>
 
</FormTemplate>

</EditFormSettings>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true"/>
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>
</RadGrid>
</telerik:RadAjaxPanel>

 

Tsvetoslav
Telerik team
 answered on 03 Jul 2012
2 answers
135 views
Hello all,

I'm currently working with radgrid component.
Here is a sample of what i am doing :

First, Radgrid binded is done on server side :

IList<VT.LibNHSILdb.EntityFAB> myList = SILDB.FabsList();
 
GRD_messages.DataSource = myList[0].LST_MESSAGE;
GRD_messages.DataBind();

I get 5500 records from my list and i'm using paging.
But when i clicked on the paging system on my webpage, Radgrid disapeared.

I solved it by handling the postback action on server side :

if(IsPostBack)
           {
               GRD_messages.DataSource = myList[0].LST_MESSAGE;
               GRD_messages.DataBind();
           }

Of course, each time i try to page data inside my grid, the binding is done again for EVERY data (I guess, it take a lot of time to do it)

I would like to bind all data in one request on the server (keep the one i'm using), and allow paging on the client side. Is it possible ?
Am i doing correctly my binding ? Is there any improvement i could do to make this faster ? (We're using Nhibernate to acces data)

Many thanks !
Maxime
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
56 views
Hello,

i' m developing a web application with multiple resources (Employees) using radscheduler. I have 4 tables in my database (one for creatiing employees work schedule, one for connecting employees with their work schedule, one for creating vacations schedule and one for connecting employees with their vacations schedule). So i have 2 radschedulers with multiple resources (one for creating work schedule and one for creating vacations schedule) and 2 database providers (one for each radscheduler). How could i implement when an employee has a vacation for a period of time, this employee will not be available as a resource to work radscheduler for this specific period of time (please note that i' m using recurrence rules)? 

Thank you very much. 
Plamen
Telerik team
 answered on 03 Jul 2012
3 answers
384 views
Hi

I have a radWindowManager i am using in a UserControl that opens another UserControl in the radWindowManager.

I am using the VisibleOnPageLoad property to set the window to visible on a button click. Now when i close the window it just becomes invisble. When i open it again using the button click the old values inside the window are preserved. However on each click the window should load fresh.

I tried to use the window.radWindow via javascript but it doesnt work and get an error about property not found.

How can i achieve the above?

Thanks in advance.

Rajesh
Marin Bratanov
Telerik team
 answered on 03 Jul 2012
2 answers
423 views
Hi

I have been reading this thread:http://www.telerik.com/community/forums/aspnet-ajax/combobox/combo-box-color-picker.aspx 

As I want to change the background colour of the selected item when an item in my dropdown is selected. 
It gives this bit of javascript to do the job, but it's obviously very old as no longer works in the same way.

function onClientSelectedIndexChanged(item) 
    var combo = item.ComboBox; 
    var comboInput = document.getElementById(combo.InputID); 
    //here ItemColor is a custom attribute that you can assign in ItemDatabound event 
    comboInput.style.backgroundColor = item.Attributes.ItemColor; 
</script> 


I have changed it to:
function onClientSelectedIndexChanged(sender, eventArgs) { 
       var combo = eventArgs.get_item();
       var comboInput = document.getElementById(combo.InputID);
       //here ItemColor is a custom attribute that you can assign in ItemDatabound event
       comboInput.style.backgroundColor = item.Attributes.ItemColor;
   }

but the  "document.getElementById(combo.InputID); " does not work, as i expected it wouldn't but I don't know what the replacement if it is?

Can anyone help?

Bex
Bex
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
65 views
Hello, I have RadGrid uses NoRecordsTemplate, but this template contains server tags as the following:
<NoRecordsTemplate>
   <center>                          
   <iframe src='<%= GetTrainingVideo("RiskManagement.Options") %>' class="EmbededVimeo"
             width="400" height="300" frameborder="0">
   </iframe>
   </center>
</NoRecordsTemplate>

if there is no data at page load the template works fine, but when delete the last record the grid rebind itself and generate the following JS error:

Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'hidden" />
    </div>
|0|updatePanel|ctl0'.

This issue just appear when host the application under secure protocol (HTTPS),

I've tried to create the content of NoRecordsTemplate server side at the following event handlers: OnItemCreated and OnPreRender, but the issue still exist.

Do you have resolution for this issue?
Chafik
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
167 views
Is it possible to edit unbound checkbox in a radgrid? my experience is telling me no, but perhaps there is trick i could use to do so.

i have a grid bound to a sqldatasource. the data source includes a dummy column cast as a bit to default true. the check box displays checked (as expected) but whenever i enter edit mode, uncheck the box, then click update, the check box reverts to checked because - i surmise - that it is rebinding to the dummy bit column which is set to 1/true.

it is this surmised behavior which i wish to override. is it possibe? if not, would you consider adding a feature to allow for a free standing unbound check box so that developers can present a toggle for subsequent processing of grid items? i do not care to save this information to a data store - i only need it to process selected grid items.
Marin
Telerik team
 answered on 03 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?