Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
54 views
I want to take fromDate, toDate and working days from user and display it. I am new to telerik controls so i couldnt figure out how.

ex: fromDate: 3/10/2013
     toDate: 5/15/2013
     working days: monday, tuesday (in check box)

Now i want the others users to be able to select year(combobox autopostback) and then select months(combobox autopostback) and days (combobox, but only mondays and tuesdays)..

thank you...
SKM
Top achievements
Rank 1
 asked on 11 Mar 2013
1 answer
85 views
Hi there.

I'm using a Rotator set in CoverFlowButtons mode and on the whole it works fine. However, I have a situation whereby the current index of the rotator gets changed by some javascript code based on an external condition. When the index changes from the first item to any other item in the collection the previous button doesn't get enabled. If my code changes the index to the last item in the list I also find that the next button doesn't get disabled. However, if I interact directly with the rotator by clicking on one of the items or by clicking the next button while there is a next item to go to the enabling and disabling of the buttons then happens correctly. It's just the initial entry to the form and manipulation of the rotator via the javascript prior to actually doing something manual with it where the issue manifests itself. Is there something I can or should do to ensure that the buttons disable and enable correctly or is this a fault that you can fix?

The actual code I use to change the relevant item is as follows:
if (itemIndex != -1) {
    var coverFlow = $find('<%= CoverFlow.ClientID %>');
    $(coverFlow.set_currentItemIndex(itemIndex, false));
}
The "itemIndex" is a value that is calculated initially based on certain conditions.


Thanks and regards
Slav
Telerik team
 answered on 11 Mar 2013
1 answer
217 views
Hi,

The situation is as follows - in my RadGrid, in GridTemplateColumn, I've got a RadButton that is supposed to fire OnClick button. I also have SelectedIndexChanged assigned for the same RadGrid. When the button type was set to StandardButton, everything worked just fine - onClick event was triggered every time I clicked the button. I had to change button type to LinkButton, though (for styling reasons), and from that moment on, clicking the button fires SelectedIndexChanged event, instead (in 90% of cases). How can I force it to raise (or prioritise) OnClick event again?

Regards,
Radek
Danail Vasilev
Telerik team
 answered on 11 Mar 2013
3 answers
154 views
Hi,

Probably a strange request this one, but..
How do i get a radwindow to have the same appearance as a radtooltip ?
ie; no border and background colour etc,

Many Thanks
Mark
Marin Bratanov
Telerik team
 answered on 11 Mar 2013
1 answer
118 views
Hi,

I am using RadAsyncUpload in our application.  I want to allow user to type full file path in textbox of RadAsyncUpload control.

Note : it allows me to paste any data but not allow to type in textbox.

 How to achieve this?

Thanks,
Dipal
Hristo Valyavicharski
Telerik team
 answered on 11 Mar 2013
1 answer
139 views

If you are using the window as a 3 page wizard is it possible to set the window arguments on a button click on page 2 that will be used in the OnClientClose event when the window is closed using the x or another close button on page 3?

Here is how I am trying to set the arguments on page 2

function GetRadWindow() {
         var oWindow = null;
            if (window.radWindow)
            {
            oWindow = window.radWindow;
            }
            else if (window.frameElement != null && window.frameElement.radWindow)
            {
            oWindow = window.frameElement.radWindow;
            }
            return oWindow;
      }
 
function OnClientClose(oWnd, args) {
          var arg = args.get_argument();
          if (arg) {
              if (arg.functionName) {
                  if (arg.functionName == "ajaxRequest") {
                      var eventArg = arg.functionArg;
                      ajaxMngrRequest(eventArg);
                  }
              }
          }
          else {
              alert('No Arg');
          }
          oWnd.remove_close(OnClientClose);     
      }
 
function SetReturnArgs(varFunction, varArg) {
    var oWnd = GetRadWindow();
    var oArg = new Object();
 
        oArg.functionName = varFunction;
        oArg.functionArg = varArg;
        oWnd.argument = oArg;
}
 
 protected void btnSetArgs_Click(object sender, System.EventArgs e)
        {
            ScriptManager.RegisterClientScriptBlock(
                  this.Page,
                  this.GetType(),
                  "WebUserControlScript",
                  "SetReturnArgs('ajaxRequest', 'eventArg')",
                  true);
        }


Thanks in advance!!!

Regards,
Dave

Marin Bratanov
Telerik team
 answered on 11 Mar 2013
4 answers
265 views
I created a project using RagGrid with advanced databinding and custom paging (like the top example here: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx) except I have viewstate for the grid disabled. My issue is when I change my page size the grid doesn't really update like it should (I'm using the default page sizes).

By default it's on 10, if I select 20 my grid rebinds but page size is still 10 in the NeedDataSource event. From there if I select page size 50, my grid rebinds but page size is 20 in NeedDataSource. The wierd part is if I select page size 10 from either of those I always get the correct page size / number of records.

I traced the events and in my scenario it looks like PageSizeChanged is being fired but the grid isn't rebinding afterwards, although it clearly rebinds correctly after PageIndexChanged.

Any help would be greatly appreciated. Thanks.
Andrey
Telerik team
 answered on 11 Mar 2013
3 answers
96 views
Current I made a grid with 2 combobox, I wanna to refresh the b combobox when the a combobox is onchange.

as my issue, I cannot refresh the combobox of "Enabled", when I set in code behind.

Eyup
Telerik team
 answered on 11 Mar 2013
1 answer
135 views
After upgraded the Telerik ASP.Net AJAX controls to the latest release, ie, 2013.1.220.40,  I've noticed the following issues so far, which were not there in the previous version.

      1. RadComboBox         
              The items in the drop down part showing within a container with horizontal and vertical scroll.
 
      2. Radconfirm
             At present we are using the following function for rad confirm, It was working perfectly in the previous versions.
             The confirm window shows but when click on "Ok" button, the click event not firing.
                                  //RadConfirm                              
			function OnClientClicking(sender, args) {
				var callBackFunction = Function.createDelegate(sender, function (argument) {
					if (argument) {
						this.click();
					}
				});
				var text = "Are you sure you want to submit?";
				radconfirm(text, callBackFunction, 350, 100, null"RadConfirm");
				args.set_cancel(true);
			}
   
      3. Radbutton
             Ajax loading panel not showing if the button is associated with a asp validation group. Otherwise loading panel working
             perfectly.


   Please look on this issue and the fix would be very appreciate.
 
Thanks.       





 

Marin Bratanov
Telerik team
 answered on 11 Mar 2013
1 answer
173 views
Hi,
I am having a problem with GridTemplateColumn aligning to the center on altRows and to the left on Rows. This is not what I want and I can't see any way to change it.
I am using Telerik.Web.UI.dll and skins.dll versions 2012.3.1016.40; 

aspx file:
<telerik:RadGrid Skin="Office2010Silver" CSSClass="GreenCustom">

.css file:
/* GreenCustom style for grid Office2010Silver = Happened */
.GreenCustom .rgRow a
{
    text-align: left;
    vertical-align: text-top;
    color: #F00;
}

.GreenCustom .rgAltRow a
{
    text-align: left;
    vertical-align: text-top;
    color: #FFF;
}

.GreenCustom .rgSelectedRow td
{
    text-align: left;
    vertical-align: text-top;
    background:  #FFF;
    border: solid 1px #e5e5e5;
    border-top: solid 1px #e9e9e9;
    border-bottom: solid 4px white;
    padding-left: 4px;
    color:#0F0;
}

.GreenCustom .rgHoveredRow td
{
    text-align: left;
    vertical-align: text-top;
    background:none;
    background-image:none;
    background-color:#CC2064;
    color:#0F0;
}

some of the GridTemplateColumn ItemTemplate columns have labels, some have hyperlinks,

The rows are aligned as I want to the top left and the alt rows are all aligned to the centre centre which I don't want.
Checking with view source the html I am finding:
<tr class="rgRow" valign="top" id="gridSearchResults_ctl00__2" style="text-align:left;">
<tr class="rgAltRow" id="gridSearchResults_ctl00__3">

I am wasting a lot of time on a product that I have never enjoyed using.
Any help gratefully received.
Patrick
Top achievements
Rank 1
 answered on 11 Mar 2013
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?