Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
134 views

Hi, I have a RadWindow which appears when the button is clicked. 

The code in aspx is:

<telerik:RadWindow ID="rwSubmitForReview" Title="Submit For Review" runat="server" Localization-PinOff="Pin off" Width="305px" Height="250px" InitialBehaviors="Pin" >

Code in aspx.cs is

string script = "function f(){$find(\"" + rwSubmitForReview.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);

When i start to scroll down in the main page, the window disappears and i notice the top attribute follows the scroll? Please refer to the red highlighted line. How can I make it stop scrolling?

The telerik version is 2022.1.119.40.

Eugene
Top achievements
Rank 1
 asked on 04 Mar 2022
1 answer
117 views

I'm new in java script code i can't understand in the following code what is 'demo' is it the page or browser or what

   demo.lightBox = $find("<%=RadLightBox1.ClientID %>");

Vessy
Telerik team
 answered on 03 Mar 2022
0 answers
321 views

hi sir,

I use the below code in server side to get the control id in child page while radcombox  control in master page.

  Dim radcmbx As RadComboBox = CType(Page.Master.FindControl("Database_List"), RadComboBox)

So how i get master page control id from separate JavaScript file using javascript or jquery,

M Kumar
Top achievements
Rank 1
Iron
Veteran
 asked on 02 Mar 2022
1 answer
472 views

 The configuration section 'telerik.web.ui' cannot be read because it is missing a section declaration" in Web.config

Vessy
Telerik team
 answered on 01 Mar 2022
0 answers
144 views

hi sir,

 

      I need to get the set the value for master page control like this

   Dim radcmbx As RadComboBox = CType(Page.Master.FindControl("Database_List"), RadComboBox)

But how we get the value in javascript.

Please give me a solution ASAP

 

M Kumar
Top achievements
Rank 1
Iron
Veteran
 asked on 01 Mar 2022
0 answers
67 views

Hello

Please Help me. ã… ã… 

I'm still in trouble because I haven't been able to solve this problem.

It is automatically displayed like a StatusBar of RadGridin the RadListBox?
If possible, please teach me how.

 

 

 

 

 

 

anna
Top achievements
Rank 1
Bronze
Iron
 updated question on 01 Mar 2022
1 answer
257 views

Hi,

     I have a combobox. Under most circumstances I want it set to the dropdown mode (checkbox=false). In a certain cases I would like the combobox to have its checkbox property set to true. This being the case switching between the dropdown mode and the checkbox mode would have to be done in the code behind (or perhaps javascript which is not one of my talents). I tried this code

 stringcurrControl = fld.ControlName;

RadComboBoxcmb = (RadComboBox)FindControl(currControl);

cmb.Enabled = true;

if(rule == 3 && fld.Field.Replace("\r\n","") == "PROBLEM_TYPE")

{

 cmb.CheckBoxes==true;

}

The last line: cmb.CheckBoxes==true; throws an error during compilation:

"only assignment call increment decrement and new object can be used as a statement"

Is it that the combobox can be set to checkbox=true in the declaration of the combobox. How can this be done? Any help would be appreciated.

Thanks,

Neil 

Doncho
Telerik team
 answered on 28 Feb 2022
2 answers
480 views
Hi, i'm having troubles using RadDatePicker; i tried to build a layout like bootstrap without success.

I would transform RDP like

<div class="input-group date">
  <input type="text" class="form-control"><span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
</div>

so how can i do it?
I obtained only a little success setting

CssClass="form-control" for DateInput part.

Thank you.
Attila Antal
Telerik team
 answered on 25 Feb 2022
23 answers
1.1K+ views
Hi,

I'm facing grid header alignment problem only when I'm manking "UseStaticHeaders = true" for Grid ClientSetting.Scrolling, I'm using the Office2007 skin.

I'm creating grid columns dynamicaaly through code seeting it's width as given below;

                    GridBoundColumn bfield = new GridBoundColumn();
                    bfield.DataField = "Col1";
                    bfield.HeaderText = "Col1";
                    bfield.HeaderStyle.Width = 70;
                    bfield.HtmlEncode = false;

                    grdEngagements.MasterTableView.Columns.Add(bfield);
I'm giving the coloum width only for other coloumns than the first coloumn (not given any coloumn width for first coloumn) and I'm not doing anything in MasterTableView.TableView in code or design.

Below is the attached pic where I'm getting coloumn reallignment issue, I have found the same issue mensioned in some telerik blogs but none of those solutions fixed my issue,

Please help me to resolve it as sooon as possible, Thanks in advance,

Anoop

Carlos
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Feb 2022
0 answers
146 views

Hi,

I'm trying to set the filter from code behind. When the code below runs to get the GridFilteringItem, I'm getting an  "Index was out of bounds" exception. Any ideas what's causing this? 

 

  protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            try
            {
                GridFilteringItem filterItem = RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;

                GridColumn col = RadGrid1.MasterTableView.GetColumn("AssignedTo");
                col.CurrentFilterValue = hfProgAssign.Value;

                filterItem.FireCommandEvent("Filter", new Pair("StartsWith", "AssignedTo"));

 

 

JC

james
Top achievements
Rank 1
 updated question on 22 Feb 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?