Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views

hi

when i use radajax in my login panel, sometimes i get this error message:

System.Web.HttpException (0x80004005): The length of the query string for this request exceeds the configured maxQueryStringLength value. 
 at System.Web.HttpRequest.ValidateInputIfRequiredByConfig() 
 at System.Web.HttpApplication.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at http://elix.ir:80/WebResource.axd?d=QKIdEQgXIJhOS6nEbL0GA26gwLz8CyDbQ0NK4tfT_ytfAlSrNGAKsRkbQ4C-u8a8Y6_H-6xgUpTGI4yt7wCD7YBt,%20'ctl00_btnLogin')">خلاصه%20وضعیت
ارسال%20آگهیدریافت%20آگهیواریز%20به%20حساببرداشت%20از%20حسابپیام%20های%20دریافت%20شدهارسال%20پیام%20به%20سایتویرایش%20مشخصاتخروجاطلاعاتامروز:%20یکشنبه%201390.2.4تبلیغات%20امروز:تبلیغات%20دیروز:45,982%20نمایش799%20کلیک35,875%20نمایش910%20کلیکواریز%20به%20حساب
تمامی%20حقوق%20این%20سایت%20محفوظ%20و%20متعلق%20به%20شرکت%20چکاوک%20ایده%20پرداز%20می%20باشد.

my code is:

<tlk:RadScriptManager ID="radScriptManager" runat="server" />
<tlk:RadAjaxManager ID="radAjaxManager" runat="server"
    DefaultLoadingPanelID="radAjaxLoadingPanel">
    <AjaxSettings>
        <tlk:AjaxSetting AjaxControlID="pnlLogin">
            <UpdatedControls>
                <tlk:AjaxUpdatedControl ControlID="pnlLogin" />
            </UpdatedControls>
        </tlk:AjaxSetting>
    </AjaxSettings>
</tlk:RadAjaxManager>
<tlk:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server"
    InitialDelayTime="500"
    Skin="Default">
</tlk:RadAjaxLoadingPanel>
<asp:Panel ID="pnlLogin" runat="server"
    DefaultButton="btnLogin">
    <div>
        <asp:Label ID="lblUsername" runat="server"
            AssociatedControlID="txtUsername"
            Text="username " />
    </div>
    <div>
        <asp:TextBox ID="txtUsername" runat="server"
            MaxLength="50"
            style="width:175px;" />
    </div>
    <div>
        <asp:Label ID="lblPassword" runat="server"
            AssociatedControlID="txtPassword"
            Text="password " />
    </div>
    <div>
        <asp:TextBox ID="txtPassword" runat="server"
            MaxLength="50"
            style="width:175px;"
            TextMode="Password" />
    </div>
    <div>
        <asp:Button ID="btnLogin" runat="server"
            CssClass="btn"
            OnClick="btnLogin_Click"
            Text="login"
            ValidationGroup="login" />
    </div>
</asp:Panel>

i use Telerik.Web.UI v2011.1.322.40

What is the reason for this error and how i can fix it?

Daniel
Telerik team
 answered on 26 Apr 2011
19 answers
405 views
Hi,
     Is it possible to add a remainder flag in scheduler like one we add in Microsoft Office Outlook..
any idea
Shan Sundar
Top achievements
Rank 1
 answered on 26 Apr 2011
1 answer
41 views
Hi ,

 im using ie 9 , and offen occurs an error binded with ajaxmanager , the code looks like this
var Ajarg ="sizechange"; 
var ajm =  $find("<%=RadAjaxManager1.ClientID %>");
 ajm.ajaxRequest(Ajarg);
and then I get a parameter count exepction in ie8 it's ok .

what can i do to fix this errror?
Maria Ilieva
Telerik team
 answered on 26 Apr 2011
5 answers
226 views
hi community,

the fileexplorer does not work within my ajaxified multipage. i have provided a demo.

without ajax:
http://brosenfelder.redirectme.net/testfileexplorerwithinmultipage/default.aspx

with ajax:
http://brosenfelder.redirectme.net/testfileexplorerwithinmultipage/defaultajaxon.aspx

the fileexplorer is on the second tab. cklick on refresh and then you can see that the refresh does not work.
is here somthing wrong with the code?

regards,
bernahrd

i have used this code to ajaxifie :
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
 
        <asp:Panel ID="Panel1" runat="server">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="true" MultiPageID="RadMultiPage1">
                <Tabs>
                    <telerik:RadTab Text="Tab1" Selected="true" PageViewID="RadPageView1"></telerik:RadTab>
                    <telerik:RadTab Text="Tab2" PageViewID="RadPageView2"></telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
        </asp:Panel>
 
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" RenderSelectedPageOnly="true">
            <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">
                RadPageView1</telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
                <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"
                    Width="960px"
                    Height="540px"
                    DisplayUpFolderItem="True" EnableCopy="True">
                    <Configuration
                        ViewPaths ="~/fileexplorer" UploadPaths ="~/fileexplorer" DeletePaths="~/fileexplorer/delete" />
                </telerik:RadFileExplorer>
            </telerik:RadPageView>
             
        </telerik:RadMultiPage>
Dobromir
Telerik team
 answered on 26 Apr 2011
1 answer
132 views
hi, I am facing a difficulty in understanding the retrieval of multiple images in this demo (here)
based on the code provided:

<asp:Repeater runat="server" ID="Repeater1" DataSourceID="SqlDataSource1" OnItemDataBound="repeater1_ItemDataBound">
<ItemTemplate>
       <div style="border: 1px solid #999999; float: left; margin: 3px; width: 125px; height: 125px;
         background-image: url('<%# Eval("ProductID", "../../../Img/Northwind/Products/{0}.jpg") %>');">
                    <div runat="server" id="smallImage" style="width: 125px; height: 125px; background-position: center;
                        background-repeat: no-repeat;">
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>


1) From where the background-image is taking the images, and what is this path?
2) How can I store Images in the database and assign them to each product accordingly?

Best Regards,
humam.
Marin Bratanov
Telerik team
 answered on 26 Apr 2011
3 answers
81 views
OK, I have a portal page that contains seven to ten user controls.  Each user control has a timer and is wrapped in an Ajax Panel.  When the portal pages loads it loads each user control in some kind of order.  What I am hoping for is that each user control will start loading independently of each other. 

So, I tried using the Ajax Manager on the master page with proxies on the user controls and still no luck.  I can only get a single ajax request to take place at a time.  How can I get two or three requests running at the same time?  Is this possible with Telerik controls?

Any adivce or suggestions?
Pavlina
Telerik team
 answered on 26 Apr 2011
4 answers
187 views
Hi,

I could successfully install the RAD Editor for my application and got it working for all the browsers.However, it is not woking for mozilla over web vpn connection. I cant type anything although the RAD rich text editor is visible.
Please let me know a fix for this.
Stanimir
Telerik team
 answered on 26 Apr 2011
5 answers
190 views
Hello,

I have a TreeView where clicking on a node should trigger a PostBack, but checking a CheckBox on a node should not trigger a PostBack.  Is this possible?  Currently checking the node fires the OnNodeClick event.

I believe it was working as I wanted prior to upgrading to version 2010.2.826.35.

<rad:RadTreeView ID="tree" OnNodeClick="NodeClick" AutoPostBack="true">

Thanks,
Jason
Jason
Top achievements
Rank 1
 answered on 26 Apr 2011
4 answers
360 views
I have my ItemsRequested handler working where on start of the page, this method gets hit and it loads the first set of items.  Scrolling through the list works well and each new page is requested and starts loading.

However, if I go into the combo box and right away I starting typing something which does not appear in the first page of results, the item is listed but I am no longer able to change the results and see the new matches appear in the list of the combo box.

The list is approx. 3,000 records, here are the relevant snips:

 

protected void RadComboBoxMedicationName_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

 

Database db = DatabaseFactory.CreateDatabase();

 

 

RadComboBox r = sender as RadComboBox;

 

 

DbCommand cmd = db.GetSqlStringCommand("SELECT Id, Description FROM refMedType WHERE Description LIKE '" + e.Context["Text"].ToString() + "%'");

 

 

DataTable data = (DataTable)(db.ExecuteDataSet(cmd)).Tables[0]; ;

 

 

try

 

{

 

int itemsPerRequest = 25;

 

 

int itemOffset = e.NumberOfItems;

 

 

int endOffset = itemOffset + itemsPerRequest;

 

 

if (endOffset > data.Rows.Count)

 

{

endOffset = data.Rows.Count;

}

 

if (endOffset == data.Rows.Count)

 

{

e.EndOfItems =

true;

 

}

 

else

 

{

e.EndOfItems =

false;

 

}

 

for (cint i = itemOffset; i < endOffset; i++)

 

{

r.Items.Add(

new RadComboBoxItem(data.Rows[i]["Description"].ToString(), data.Rows[i]["Description"].ToString()));

 

}

 

if (data.Rows.Count > 0)

 

{

e.Message =

String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString());

 

}

 

else

 

{

e.Message =

"No matches";

 

}

}

 

catch (Exception ex)

 

{

e.Message =

"No matches";

 

}

}


 

 

<telerik:RadComboBox ID="RadComboBoxMedicationName" ShowWhileLoading="true" EmptyMessage="Enter medication name" Text='<%# Bind( "MedicationName" ) %>' LoadingMessage="Loading..." runat="server" Width="250px" Height="200px" AllowCustomText="True" ShowMoreResultsBox="true" EnableLoadOnDemand="True" MarkFirstMatch="True" OnItemsRequested="RadComboBoxMedicationName_ItemsRequested" EnableVirtualScrolling="true" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidatorMedicationName" runat="server" ControlToValidate="RadComboBoxMedicationName" Display="Dynamic" ErrorMessage="RequiredFieldValidator" ToolTip="Medication required."><br />* Medication required.</asp:RequiredFieldValidator>

 

 

 

Dimitar Terziev
Telerik team
 answered on 26 Apr 2011
1 answer
78 views

I'm using RadGrid with drag and drop to a RadScheduler

The system I'm designing is for a TV Show, where each screenplay have several scripts

The user can schedule each script to be shot/recorded at a time, or to get a entire screenplay and schedule it at once.

In my grid, both screenplay and scripts are rows, so user can drag any.

Question 1 - Is it possible to have indented display for this?

Question 2 - Is it possible that when a user drag a row that is a screenplay, all child scripts go with?

Thanks,

Andre

Marin
Telerik team
 answered on 26 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?