Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
36 views
I am facing an issue with RadTabStrip control. When i browse my page its height automatically increasing and background image also repeats.
I have also attach an image for better understand.

I check my page code there is not any additional css styles define.

Regards, Saif
Kate
Telerik team
 answered on 11 Jan 2013
3 answers
88 views
this is a radFilter (not on a grid) that i would like to save & or load settings and have the filter expand and show them.
i get a method error when trying to use the :
            Session["RadFilterExpressions"] = RadFilter1.SaveSettings();
            LoadSettings.Enabled =
true;
tells me there's no method for this. is this something that's reserved for the radGridFilters only? i've done this before on grid filters, but not the STAND ALONE RADFILTER.
and i've looked a literally every tutorial out there, so, if not doable - just lemme know and i'll walk away from this one.
thanks
rik

 

 

 

<telerik:RadFilter ID="WorkOrdersRadFilter" runat="server" Skin="WebBlue" ShowApplyButton="true"

 

 

 

 

 

 

 

OnApplyExpressions="WorkOrdersRadFilter_Apply" ApplyButtonText="Filter Work Orders"

 

 

 

 

 

 

 

OnPreRender="WorkOrdersRadFilter_PreRender" OnFieldEditorCreating="RadFilter_FieldEditorCreating" OnItemCommand="WorkOrdersRadFilter_ItemCommand">

 

 

 

 

 

 

 

 

<FieldEditors>

 

 

 

 

 

 

 

<telerik:RadFilterTextFieldEditor FieldName="WORKORDERNUMBER" DisplayName="Work Order#"

 

 

 

 

 

 

 

DataType="System.String" />

 

 

 

 

 

 

 

<goldcustom:RadFilterComboBoxEditor FieldName="WOTYPENAME" DisplayName="WO Type"

 

 

 

 

 

 

 

DataTextField="WOTYPENAME" DataSourceID="WorkOrderTypeFilterODS" DataType="System.String"

 

 

 

 

 

 

 

ComboBoxSkin="WebBlue" />

 

 

 

 

 

 

 

</FieldEditors>

 

 

 

 

 

 

 

 

 

</telerik:RadFilter>

 

 

 

 

                                  

                            
                    </telerik:RadFilter>

Kostadin
Telerik team
 answered on 11 Jan 2013
1 answer
201 views
Hi!!
Am calling the webmethod from the javascript and in the webmethod am trying to find the radgrid. But i can't able to find the rad grid,please any one tell me any solutions for this problem.


thanks in advance!!! 
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Jan 2013
1 answer
74 views
Hi,

Is it possible to drag & drop items from a radgrid into a RadDockZone and then turn them into RadDocks?

Cheers,
CJ
Slav
Telerik team
 answered on 11 Jan 2013
1 answer
72 views
I've created a Dynamic RadGrid on a Web User Control (ascx), and it displays correctly. However when I click on the Edit button the grid simply disappears. In order to determine what is going on I've tried to connect the OnItemCommand Event, but it does not fire? Listed below is a scaled version of the Dynamic Grid Creation, which is being executed by the PageInit Method.

My goal is to have the Edit Popup Modal show up when the User Clicks Edit, and be able to then catch the Update Click in order to manage the update back to the Data Source.

 

protected void BuildGrid(DataRow curRow)
{
    var curGrid = new RadGrid
          {
              ID = curRow.Field<string>("tst_desc"),
              Skin = "Hay",
              GridLines = GridLines.Both,
              AutoGenerateColumns = false,
              AllowAutomaticUpdates = true
          };
    curGrid.MasterTableView.Name = curRow.Field<string>("tst_desc");
    curGrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Bottom;
    curGrid.MasterTableView.TableLayout = GridTableLayout.Fixed;
    curGrid.MasterTableView.EditMode = GridEditMode.PopUp;
    curGrid.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.AutoGenerated;
    curGrid.MasterTableView.CommandItemSettings.ShowRefreshButton = false;
    curGrid.MasterTableView.CommandItemSettings.AddNewRecordText = "Add More " + curRow.Field<string>("tst_desc") + " Test Results";
    curGrid.NeedDataSource += new GridNeedDataSourceEventHandler(Grid_OnNeedDataSource);
    curGrid.ItemCommand += new GridCommandEventHandler(Grid_OnItemCommand);
    curGrid.ClientSettings.AllowKeyboardNavigation = true;
    var btnCol = new GridButtonColumn
         {
             ButtonType = GridButtonColumnType.ImageButton,
             HeaderText = "Edit",
             CommandArgument = "btnEdit",
             UniqueName = "btnEdit",
             CommandName = "Edit"
         };
    curGrid.MasterTableView.Columns.Add(btnCol);
    var gbcUpdBy = new GridBoundColumn
       {
           UniqueName = "UPDT_BY",
           HeaderText = "Last Updated By",
           DataField = "updt_by",
           ReadOnly = true
       };
    curGrid.MasterTableView.Columns.Add(gbcUpdBy);
    var gbcUpdDt = new GridBoundColumn
       {
           UniqueName = "UPDT_DT",
           HeaderText = "Last Updated",
           DataField = "updt_dt",
           DataFormatString = "{0:MM/dd/yy}",
           ReadOnly = true
       };
    curGrid.MasterTableView.Columns.Add(gbcUpdDt);
    PlaceHolder1.Controls.Add(curGrid);
    Session[curRow.Field<string>("tst_desc") + "ID"] = curRow.Field<int>("lab_tst_id").ToString(CultureInfo.InvariantCulture);
    PlaceHolder1.Controls.Add(new LiteralControl("<br />"));
    PlaceHolder1.Controls.Add(new LiteralControl("<br />"));
}
 
void Grid_OnItemCommand(object sender, GridCommandEventArgs e)
{
    var a = 123;
}
 
void Grid_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    var curGrid = sender as RadGrid;
    var gridName = curGrid.MasterTableView.Name;
    var hidTestId = Session[gridName + "ID"];
    curGrid.DataSource = ExecSQL.SQLData(_sqlStmt + " AND lt.lab_tst_id = " + hidTestId);
 
}
Andrey
Telerik team
 answered on 11 Jan 2013
1 answer
62 views
Hi,

I am currently working on RadChart, and we use StackColumns a lot.  It's been great for the most part, however, there are times when in our data, one of the values is very small relative to others.  This results in it's number label colliding with another one.  

Has anyone out there encountered this same problem and what was your approach?  My initial solution was to programmatically move tiny-value-items to another location, say the right of the data item.  But this still isn't good enough when you have several consecutive tiny values stacked up together.  They would all collide to the right this time.

Any thoughts/inputs?  Thanks in advance!

-Dino
Petar Kirov
Telerik team
 answered on 11 Jan 2013
1 answer
59 views
Good afternoon, everyone.

I'm developing a web app that utilizes the RadDocks, zones and layouts like in the "MyPortal" demo.  I've got the layouts working, and all the docks are loading whichever controls they're assigned.

One of these controls is a RadGrid, currently holding less than 420 rows of data.  When each row is databound, I'm doing a check on the server to figure out which CSS class to apply, along with the text and command argument of a button in the row.  We aren't using a pager since the dock itself will only show 4 or 5 rows of data at a time.

So here's the hitch.  In Firefox, Chrome and Safari, everything is smooth and quick.  In IE 8 (on a 32-bit Win7 machine, also what the vast majority of users will be using the application on), the page hangs and is very unresponsive; it takes about a minute to render the page even though loading the data is very quick.  There isn't much Javascript on the page (that control doesn't have any at the moment) and if I put a pager in there, it will load, yet still be slow.  I've isolated the other controls, and it's definitely the one with the RadGrid (we have one control with a RadScheduler and others have charts).  I've looked into optimizing it (we're already binding with a web service), yet I can't seem to figure out what else may be causing the grid's processor/memory hogging when loading in IE.  Is there anything else I can do to get the grid to behave properly in IE?
Vasil
Telerik team
 answered on 11 Jan 2013
9 answers
405 views
Hi,

I am also using a radeditor. And facing a problem coz of the <br>.
When I am removing whole text from radeditor and making it blank, still it shows presence of html text as <br>, <p>&nbsp;</p> and

sometimes <p><br></p>.

I have a required field validator for this radeditor. When I enter any text in radeditor, the error message for this required radeditor is

disappearing only after a post back. But it should disappear as soon as we type any text in radeditor.
So I wrote a javascript for firing onblur event and explicitly hiding the error message if radeditor's content is not null.

I am calling the function using "OnClienLoad" :
<telerik:RadEditor ID="ContractExpirationAlertEditor" runat="server" Skin="Gray" OnClientLoad="DisableRequiredMessage"
                                        ToolsFile="~/Contracting/ToolsFile.xml" Width="100%" ContentFilters="None" OnTextChanged="ContractExpirationAlertEditor_TextChanged">
                                        <CssFiles>
                                            <telerik:EditorCssFile Value="~/EditorContent.css" />
                                        </CssFiles>
</telerik:RadEditor>


Then in Javascript, function is like :
function DisableRequiredMessage(editor, args) {
var element = document.all ? editor.get_document().body : editor.get_document();
                $telerik.addExternalHandler(element, "blur", function(e) {
                    var editor1 = $find("ctl00_ContentPlaceHolder1_ContractExpirationAlertEditor");
                    var message1 = editor1.get_html();
if (message1 == '<br>' || message1 == '<p> </p>') {
                        alert(message1);
                        document.getElementById('ctl00_ContentPlaceHolder1_spnEmailBody').style.display = 'block';
                    }
                    else {
                        alert(message1);
                        document.getElementById('ctl00_ContentPlaceHolder1_spnEmailBody').style.display = 'none';
                    }
});
            }

I also tried to compare the length of the text in radeditor and hide and unhide the required error message :
var editor2 = $find("ctl00_ContentPlaceHolder1_ContractPendingEContractEditor");
                    var message2 = editor2.get_text();
if (message2.length > 1) {
                        //alert("Mozozozo" + message2.length);
                        document.getElementById('<%=spnContrPendngEmail.ClientID %>').style.display = 'none';
                    }
                    if (message2.length == 0 || message2.length == 1) {
                        //alert("Mozozozo");
                        document.getElementById('<%=spnContrPendngEmail.ClientID %>').style.display = 'block';
                    }
But it is not working in IE. When we type any text in radeditor ,I am able to hide the error message. But if we remove the text, we are
not getting the error message back. Thus required validation is not happening.

Please help me.

Thank You in advance.
Rumen
Telerik team
 answered on 11 Jan 2013
1 answer
61 views
Hi,
     How can I change the headertext of the boundcolumn in the code behind. Got any idea?? Pls help

thanks
Ryan
Shinu
Top achievements
Rank 2
 answered on 11 Jan 2013
9 answers
960 views

Hi all,

I wanna learn if it's possible to bind 2 database fields into 1 bound column ?

forexample I wanna bind QUANTITY,SELECTED_UNIT fields to 1 column..

<telerik:GridBoundColumn DataField='QUANTITY + SELECTED_UNIT' >

thanx in advance for solutions
Shivanshu
Top achievements
Rank 2
 answered on 11 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?