Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
Hi!

I want to make an input that can take a string like this "56 9" and that should be interpreted as 1956-09-01, at the moment it's interpreting it as 1956-02-09 (February since that's the month of today). Can I force it to interpret the 9 as the month and not the day? My RadDateInput is configured like this:

DateFormat="yyyy-MM-dd"
DisplayDateFormat="yyyy-MM-dd"
Culture="sv-SE"

Side note: if I type in "56 9 3" it interprets it like 1956-09-03.
Dimo
Telerik team
 answered on 11 Feb 2010
1 answer
192 views

I found how to remove various filter option for all columns, which I'm doing below...

    Protected Sub RadGrid1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.Init  
        Dim menu As GridFilterMenu = RadGrid1.FilterMenu  
        For n As Integer = menu.Items.Count - 1 To 0 Step -1  
            Select Case menu.Items(n).Text  
                Case "Between", "NotBetween", "IsEmpty", "NotIsEmpty" 
                    menu.Items.RemoveAt(n)  
            End Select 
        Next 
    End Sub 

I also know I can custom filter each column. But is there a way to alter the base filters for a given DataType?

For instance, for all boolean columns, I'd like to remove "IsNull" and "NotIsNull", without removing those 2 options from the common string and integer filters. By doing it this way, rather than by column, I'll automatically take care of any boolean columns I add later. Is that possible?
Tsvetoslav
Telerik team
 answered on 11 Feb 2010
2 answers
172 views
Sir,

I am inheriting the RadControl Class and creating a composite Custom control, but it is showing consistent errors.

Please tell me the procedure on how to create RAD COMBOBOX CUSTOM CONTROL .
If possible, send me a sample code regarding that.

Is it possible to have one extra control along with the Custom Control in Telrik. (i.e) Is it possible to create Composite Telerik Custom Control where you will have Two controls in the same Custom Control?.

I am barely in need of it, I have to tell the feasibility to my Poject manager. please reply as soon as possible.

Thanks,
Dhandapani.R
dhandapani.r@3rd-wave.com
Kalina
Telerik team
 answered on 11 Feb 2010
1 answer
382 views

Hallo,

i have a problem vwith my iis / 2003 Server r2 and can't fix it.

The web application has work with the rights of the user. (user, secret) The user has an account @ the domain and the rights to write an txt file to an folder(other Server)

IIS:.

Integrated Windows authentication + Digest authentication for Windows domain server

.

web.config:

<authentication mode="Windows" />
        <authorization>
            <deny users="?"/>
        </authorization>


<identity impersonate="true"  />


The web application can't write the file, but the user has all the rights.


If I write the login in the identity it works fine:
<identity impersonate="true" userName="domainname\user" password="secret" />


I don't understand why it is not possible toe write the file with the 1st solution,
Hope to get an help.

Best From
Dieter
Fiko
Telerik team
 answered on 11 Feb 2010
8 answers
229 views

 

Please take look at the following code:

 

<telerik:RadTextBox runat="server" ID="txtAddress" Text="Test Text" TextMode="MultiLine"  Rows="2"  Skin="WebBlue"/>  
<asp:Button runat="server" ID="btnReset" OnClientClick="document.forms[0].reset();return false;"  Text="Reset" UseSubmitBehavior="false" /> 
 

Let's enter some new text in the input text box and then click on the Reset button.

In FireFox 3.5.6.
    -Text box will be cleared
In IE 8 
    -Text box is not changed

In both cases original text will be displayed only when you give focus to text box.

Dimo
Telerik team
 answered on 11 Feb 2010
3 answers
106 views
Hi

I am experiencing issues when setting an image to align left or right. Instead of applying inline styles e.g. float:right, it is applying an attribute align="right". In the ConfigFile.xml I have set

  <property name="ConvertToXhtml">True</property>

Is there anything I am missing?

I am using rad editor lite 4.5.6

Thanks

Natasha



Stanimir
Telerik team
 answered on 11 Feb 2010
1 answer
79 views
On your demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
You can not click an image to get the nodes or right click to get properties when using Safari 4.0.4.


Rumen
Telerik team
 answered on 11 Feb 2010
1 answer
83 views
it doesn't call check() function within RadAjaxManager1_AjaxRequest() while timer is controlled within radajaxmanager.
anyone help me. plz.
thx.


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Timer1">
        <UpdatedControls >
        <telerik:AjaxUpdatedControl ControlID="HiddenField1"/>
        </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:HiddenField ID="HiddenField1" runat="server" />
        <asp:HiddenField ID="HiddenField2" runat="server" />
        <br />
        <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
        </asp:Timer>
 <telerik:RadScriptBlock runat="server" ID="sctblk">
        <script type="text/javascript">
 function checkval() {
 
  if (document.getElementById("HiddenField1").value == "ajax") {
        var result = confirm("Are you sure accept the users?");
        if (result) {
        var ajaxManager = $find("<%=RadAjaxManager1.ClientID %>");
        ajaxManager.ajaxRequest('yes');
            return ;
            
        }
        else {
            var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
             ajaxManager.ajaxRequest('no');
            return;
        }
        }
    }

function check()
{
alert("check_request");
}
</script>


 function checkval() {
 alert("check");
  if (document.getElementById("HiddenField1").value == "ajax") {
        var result = confirm("Are you sure accept the users?");
        if (result) {
       // alert("if");
       //var ajaxManager="<%=RadAjaxManager1.ClientID %>";
          var ajaxManager = $find("<%=RadAjaxManager1.ClientID %>");

          //  alert(ajaxManager);
            //document.getElementById("HiddenField2").value="if";
            document.getElementById("HiddenField1").value ="kkk";
            ajaxManager.ajaxRequest('yes');
            return ;
            
        }
        else {
     //   alert("else");
        
            var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
           // alert(ajaxManager);
          //  document.getElementById("HiddenField2").value="else";
                      document.getElementById("HiddenField1").value ="kkk";

            ajaxManager.ajaxRequest('no');
            return;
        }
        }
    }
</script>
protected void Timer1_Tick(object sender, EventArgs e)
    {
        
        HiddenField1.Value = "ajax";
        string loadscript2 = "function f(){checkval()} Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(this, this.GetType(), "loadscript2", loadscript2, true);
}
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        Timer1.Enabled = false;
        if (e.Argument == "yes")
        {          
         MessageBox.Show("yes");
        string loadscript3 = "check();";
        ScriptManager.RegisterStartupScript(this, this.GetType(), "loadscript3", loadscript3, true);
        }
 else
        {
            MessageBox.Show("no");
         }

} 


Iana Tsolova
Telerik team
 answered on 11 Feb 2010
3 answers
74 views
Hi

I have a simple grid connected to an nhibernate collection. All works fine bar the sorting.
When a user clicks on a header column to sort, if the word in the header is click it will sort asc. More clicks on the header on the word have no effect - column remains sorted asc. However if the sort icon is clicked the next column is sorted and marked as sorted?? and so on..

Anyone seen this behaviour before?

Regards
Kieran
Pavlina
Telerik team
 answered on 11 Feb 2010
1 answer
123 views
Dear Sir,
    As you noticed in the thread title i am writing RadWindowManagers, i will descripe the following scenario:
one aspx page that contains one RadTabStrip and one RadMultiPage, inside each RadPageView we have one UserControl, inside each UserControl we have RadWindowManager and at least two RadWindow. i was having a problem with a script:

var manager = GetRadWindowManager();  
// txtShowWindow is the id of a textarea on the page  
var window1 = manager.getWindowByName('rwMap');  
var MapInput =  $find('<%=txt_Location.ClientID%>');  
var MapInputValue = MapInput.get_value();  
var Latval = 0;  
var Longval = 0;  
if (MapInputValue.length > 0)  
{  
Latval = MapInputValue.split(',')[0];  
Longval = MapInputValue.split(',')[1];  
}  
window1.setUrl('Map.aspx?Lat=' + Latval + '&Long=' + Longval);  
window1.show();  
window1.maximize(); 

which is in the UserControl, i thought the problem was the [manager.getWindowByName('rwMap')] part but i investigat the problem, and found that the RadWindowManager in the first RadPageView is the only accessable even if i am in the second Tab, the second RadWindowManager is not accessable, that's why the function was returning null when i was trying to get the RadWindow.
Georgi Tunev
Telerik team
 answered on 11 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?