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

Hi ,

 I have a tab strip with five "li" tags.Two tabs contains grids in it.The last tab which is also having the grid is not loading as it is not hitting the "onTabSelect" function.

All other tabs are hitting this function but last one does not.This is happening only in Microsoft Edge Browser.

function onTabSelect(e) {
    $("#load").text("Loading ...");
    uncheckedSelectedTab();    
    if (e.item.innerText == "ABC") {
        Method1();
    }  //Added for 105423 - end
    else if (e.item.innerText == "DEF") {
        Method2();
    }
    else if (e.item.innerText == "PQR") {
        Method3();
    }
    .....
}

 

Please help.

 

Regards,

Sandhya.

 

Sandy
Top achievements
Rank 1
 answered on 22 Sep 2016
1 answer
180 views

I need to add an image icon in GridColumnGroup near the column text.

Is there a way to add it?

Eyup
Telerik team
 answered on 22 Sep 2016
1 answer
33 views

Hi Team,

I am facing a issue in RadGrid, when EditMode="Batch",BatchEditingSettings-EditType="Cell" BatchEditingSettings-OpenEditingEvent="Click".

If I have result of 10 rows, I click on a cell in a columns and I need to choose a value from dropdown, but I do not select any value and click on another cell in same column, then I receive a Error : Unable to get property 'replace' of undefined or null reference with below reference.

b.RadComboBox.htmlDecode=function(c){return b.RadComboBox.replace(c,{"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&"});
};
b.RadComboBox.htmlEncode=function(c){return b.RadComboBox.replace(c,{"&":"&amp;","<":"&lt;",">":"&gt;"});
};
b.RadComboBox.isIEDocumentMode8=function(){return document.documentMode&&document.documentMode==8;
};
b.RadComboBox.replace=function(e,d){for(var c in d){e=e.replace(new RegExp(c,"g"),d[c]);

Can you please help me on this.

~

Sandeep

 

Pavlina
Telerik team
 answered on 22 Sep 2016
2 answers
94 views

Hi All,

I'm using the selectedindexchanged of one of my Drop down lists to populate another ddl.

It's populating the ddl with with the data i want. However when i want to use the newly populated ddl value/text for a insert/update. It only updates/inserts as a blank value.

i know this has something to do with my Data Biding, but i can't seem to get the ddl to bind.

 

Code Used to populate the ddl:

    protected void RadDropDownList3_SelectedIndexChanged(object sender, DropDownListEventArgs e)
    {
        RadDropDownList DropDownList3 = ((RadDropDownList)((RadDropDownList)sender).Parent.FindControl("RadDropDownList3"));
        RadDropDownList DropDownList2 = ((RadDropDownList)((RadDropDownList)sender).Parent.FindControl("RadDropDownList2"));


        DropDownList2.DataSourceID = null;
        DropDownList2.DataSource = null;
        DropDownList2.Items.Clear();

        string prinparam = DropDownList3.SelectedText;
        string strqry = string.Format(@"select distinct locationfullname from D_Location where DivisionName = '" + prinparam + "'  ORDER BY 1 ;", prinparam);
        DataTable dt = new DataTable();
        using (strcon)
        {
            var command = new SqlCommand(strqry, strcon);

            SqlDataAdapter da = new SqlDataAdapter(strqry, strcon);
            strcon.Open();
            DataSet ds = new DataSet();

            da.Fill(dt);
            DropDownList2.Items.Clear();

            foreach (DataRow dr in dt.Rows)
            {
                DropDownList2.Items.Add(dr[0].ToString());

            }
        }
        DropDownList2.DataBind();
        DropDownList2.SelectedValue = DropDownList2.SelectedText;

    }

 

 

Eyup
Telerik team
 answered on 22 Sep 2016
1 answer
121 views

Hi,

 

the only way I found to show the fields window is the Context Menu.

I know how to do this - but it is not very easy for my clients. First they aren't used to right click on a web page (except for browser commands) and second they even have no idea what's possible.

So having a simple "Fields List" button would be great - a State-Button (Checkbox) would be the best.

Is this possible?

 

Manfred

Konstantin Dikov
Telerik team
 answered on 22 Sep 2016
1 answer
56 views
Please help to figure out the most appropriate solution for the following scenario: we need to display grid that is fed by the stored procedure that can return different number of columns. Ideally we would like to use the same code for all different output since Telerik Grid offers the option to display all the columns that are part of the datasource datatable. There is one column that is present in every output which has value one or zero and is needed to be a checkbox. By selecting/deseclecting checkbox and clicking "update" button the corresponding values should be fed into stored procedure to save them into the database. So if you could make a suggestion it would be greatly appreciated. Thank you.
Eyup
Telerik team
 answered on 22 Sep 2016
13 answers
136 views
We are currently using the calendar in our application and going to a 'responsive view'. Is there a way to base the "MultiViewColumns" and "MultiViewRows" on the size of the screen?
Konstantin Dikov
Telerik team
 answered on 22 Sep 2016
1 answer
51 views

Hi there;

I’m tryring to create a radGrid with data from database

What I want to do that I already convert some rows to columns in the database query:

SELECT  Z.id , WR. NAME,

 NVL(MAX(DECODE (Z.ZONE , 'A', Z.n )),0) A,

 NVL(MAX(DECODE ( Z.ZONE , 'B', Z.n )),0)B,

 NVL(MAX(DECODE ( Z.ZONE , 'M', Z.n )),0) M

 FROM  ………………

And I need to publish this data in a radgrid

What is the problem?

That this columns actually change over time, so I can’t keep them static

 

My idea is to loop through this values(A,B,M,….) in c# code-behind  and  convert them to columns in a command string ? Is it possible to do so?

Eyup
Telerik team
 answered on 22 Sep 2016
1 answer
187 views

From your documentation and also some posts here I noticed that "binding to IQueryable" can be use enhance performance.

Here for an example http://www.telerik.com/forums/enablecaching-=-true-causing-pivotgrid-to-remain-empty#lN8o0P-F3UKixSLep-_wbw you link

to this documentation entry

http://docs.telerik.com/devtools/aspnet-ajax/controls/pivotgrid/data-binding/advanced-via-needdatasource

What I see there is that it all ends up with a "select everything from a table" - "SELECT * FROM Transportation"

What I EXPECT is a select statement which "fits my needs".

I know sometimes there is a need to select all data.
But (for an example) if I filter for Transportation Items which happend in the year 2010 and have a value bigger than 10.000 I would expect a query like
"SELECT * FROM Transportation WHERE TPYear = 2010 AND TPValue>10.000"

Did I miss something?

By the way - I also tried to use an "EntityDatasource" (using EF6) - which does the same - SELECT * FROM....
No filtering on the query occures.

On last thing - in the first linked post the question contains: .... We are running on a decently large initial result set (about 3000 records) ....

This is not (in our case) what I'd call "large" - consider the query product of (only) 1000 sales per day with articels, regions,.. for (only) 3 years.
Which also makes the star in the select questionable - why select * if I only want to know ID and quantity (for an example).

Am I thinking totaly wrong - or is there something I've overseen?

Manfred

Konstantin Dikov
Telerik team
 answered on 22 Sep 2016
0 answers
210 views

When the RadGrid control does not have its Pager, Footer, etc. elements enabled, you can come across this issue using the following method:

resizeToFit

Uncaught TypeError: Cannot read property 'rows' of null

 
This issue should be fixed with the Latest Internal Build 2016.3.927. 

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?