Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
129 views
hi,
there is a way to set the slotduration in the weekview? i want 30 minutes slots. it's possible?
TT
Top achievements
Rank 1
 answered on 22 Jan 2013
5 answers
658 views
Hi,

I want to change the background color of Rad Button.I want to achieve this through code with out changing or creating any customized skins.

My requirement is to give button back ground as Green color.
Unfortunately Forest "skin" doesn't match with my design and when I applied "Hay" skin button is appearing in light green color.

I want to give solid green back ground to my Rad button.

Please help me its very urgent.

Thanks,
A2H
A2H
Top achievements
Rank 1
 answered on 22 Jan 2013
1 answer
125 views
Hi, I am currently doing a mock-up project and therefore, have no establish a database for it.  I am using this to currently bind data onto the RadGrid.

protected void LoadDataToGrid()
        {
            DataTable dt = new DataTable();
            //Set the datafield name
            DataColumn cl = new DataColumn("status");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Code");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Desc");
            dt.Columns.Add(cl);
            cl = new DataColumn("Vendor_Name");
            dt.Columns.Add(cl);
            cl = new DataColumn("Uom");
            dt.Columns.Add(cl);
            cl = new DataColumn("Moq");
            dt.Columns.Add(cl);
            cl = new DataColumn("Qty");
            dt.Columns.Add(cl);
            cl = new DataColumn("Cur");
            dt.Columns.Add(cl);
            cl = new DataColumn("Price");
            dt.Columns.Add(cl);
            cl = new DataColumn("Total");
            dt.Columns.Add(cl);
            cl = new DataColumn("Type");
            dt.Columns.Add(cl);
 
             
            //Set the static data for row 1
            DataRow dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-11-017"; 
            dr[2] = "PAPER PUNCHER (3 HOLES)";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "130.00";
            dr[9] = "130.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
 
            //Set the static data for row 2
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-09-069";
            dr[2] = "BINDING STRIPS A4 (MULTI-COLOUR) (LOT OF 100/50PC) ";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "60.00";
            dr[9] = "60.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
            //Set the static data for row 3
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "01-38-002";
            dr[2] = "LAMINATING MACHINE A4, LMA400";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "160.00";
            dr[9] = "160.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
            //Set the static data for row 4
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-09-901";
            dr[2] = "BOLTED CONNECTOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "10";
            dr[6] = "10";
            dr[7] = "SGD";
            dr[8] = "1.50";
            dr[9] = "15.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            //Set the static data for row 5
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-07-905";
            dr[2] = "GUY STRAIN INSULATOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "100";
            dr[6] = "100";
            dr[7] = "SGD";
            dr[8] = "1.00";
            dr[9] = "100.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            //Set the static data for row 6
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-01-505";
            dr[2] = "HOT LINE CLAMP";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "500";
            dr[6] = "500";
            dr[7] = "SGD";
            dr[8] = "2.00";
            dr[9] = "1000.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            RadGrid1.DataSource = dt;
            RadGrid1.DataBind();
            Session.Add("dtCart",  dt);
        }

However, I couldn't find any way to use the same way to bind this datasource for the <NestedViewSettings> DataSourceID.
Eyup
Telerik team
 answered on 22 Jan 2013
0 answers
132 views
I have two requirements like :-

I) I have a RadGrid and it is having a RadToorBar as its CommantTemplate which contains a particular command button.
The grid is being populated on client-side through WCF service. Now i need this command toolbar button to be visible or hidden as per the filterexpression. If no filter expression for the grid is set then make the command tool bar button to be hidden.

II) For the client-side bounded RadGrid the header style does not change for the sorted columns as it works for the server-side bounded grids.

Please help me out in these two scenarios.
How to achieve these requirements for the client-side bounded RadGrid.

Thanks in advance.
Smruti Ranjan
Top achievements
Rank 1
 asked on 22 Jan 2013
1 answer
70 views
Hello,

I'm attempting to click a link Button from within my asp.net application page which is part of a master page.  Upon clicking the link, I want a radWindow to pop-up, modal.  This all works.  But when I attempt to close the radWindow, it will refresh the parent page, which causes me to lose any changes made to the screen before I popped up the dialog.

I've followed the demo at: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

I just can't seem to get this working.  I basically want to call the dialog, and upon exiting it, update a widget on the form that called the radWindow. 
Question:
1.  Should I pop up the radWindow from javascript or from code-behind? 

Any help would be appriciecated
Princy
Top achievements
Rank 2
 answered on 22 Jan 2013
10 answers
408 views
I've configured an ajax manager so that a button inside a radwindow would update the radwindow in which it resides. Instead of working properly the button caused a full pledged postback. Any help would be much appreciated. 
John
Top achievements
Rank 1
 answered on 21 Jan 2013
3 answers
1.1K+ views
I'm trying to get the last position of the cursor when the user clicks outside of the RadTextbox, but I'm not quite sure it's working how I was hoping. I added an OnBlur client event in the mark-up:

<telerik:RadTextBox ID="rtxtTemplateContent" Runat="server" Height="100px" TextMode="MultiLine" Width="250px">  
    <ClientEvents OnBlur="setCursorPosition" /> 
</telerik:RadTextBox> 

Next I have my JavaScript:

function setCursorPosition(sender) {  
    var cursorPosition = sender.get_caretPosition()  
    document.getElementById("hdnCursorPosition").value = cursorPosition;  
} 

My goal is to trap the last cursor position and save it in a hidden field on the page for use w/ drag'n'drop functionality from a RadListBox to the RadTextBox. It seems like it's working correctly except the numbers come out really random. For instance, I put 10 characters in the textbox and then put the cursor in the middle and clicked out of the textbox, but the number returned by get_caretPosition() was 80? Doesn't make sense to me... any ideas or suggestions? Is what I'm doing possible or has the cursor position been lost by the time the OnBlur event is fired?
Darwin
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
151 views
Hello,
I was using asp.net DataList to display image previously. Now I want to use RadListView control so that i can provide reorder the image. I was using following line of code in listview
  <div id="<%# Container.ItemIndex+1 %>" class='<%# Eval("CssStyle") %>'>
This line gives error in RadListView. Then what is substitute of "Container.ItemIndex" in RadListView. Please tell me if anything else we have to do when we migrate from asp.ner datalist to RadListView.
Kevin
Top achievements
Rank 2
 answered on 21 Jan 2013
2 answers
118 views
I have a page that loads dates into a hidden field.

I'm using Javascript to parse and hilight the dates.  Using an onClick function works perfectly, but I need this to load when the document is ready.  Every time I try this I get "Cannot call method 'selectDates' of null" - which implies that the calendar is not yet loaded.  I tried using the onLoad and onInit events - same error.

Here's the code:
<script type="text/javascript">
    //-------------------------------------------------------------------------------
    function renderDates() {
        //---------------------------------------
        var calendar = $find("<%= cal_Calendar.ClientID %>");
        var hf_Dates = document.getElementById("<%= hf_SelectedDates.ClientID %>");  //hidden field
        var DateStrings = hf_Dates.value.split('|');
        //---------------------------------------
        var Dates = new Array(DateStrings.length);
        for (var i = 0; i < DateStrings.length; i++) {
            var dt = convertToTriplet(DateStrings[i]);  //see function below...
            Dates[i] = dt;
        }
        //---------------------------------------
        calendar.selectDates(Dates);  //ERROR OCCURRS HERE!
    }
    //-------------------------------------------------------------------------------
    function convertToTriplet(dateString) {
        var dp = dateString.split('/');
        var array = new Array(dp[2], dp[0], dp[1]);
        return array;
    }
    //-------------------------------------------------------------------------------   
</script>


If I call this using jQuery, I still get the error - what the hell is going on?

Gimzani

 

 

Benjamin Hall
Top achievements
Rank 1
 answered on 21 Jan 2013
6 answers
393 views
Hi,

Sorry, the title should say "Cannot" instead of "Can" :)

I am using a custom combobox which inheritates from the RadComboBox. I have added some public properties which are

[PersistenceMode(PersistenceMode.Attribute)]


I need to access these custom properties from a javascript function called from the OnClientBlur client side event. Unfortunately they are not acessible. I must be missing something very obvious but I am stuck as some code in this function must only be performed depending on the values of these properties. How can I achieve that?

Thank you for your help!
Kevin
Top achievements
Rank 2
 answered on 21 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?