Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
2.0K+ views
Hello,

I am do have data extending the column width. But I want to row without data wrap and truncated row should displayed with "..." extension. I do have a dataset as a datasource for the grid. Is it possible with some string format to achieve this ? Or can you suggest some better method to do this ?
Princy
Top achievements
Rank 2
 answered on 02 Jul 2014
1 answer
265 views
In a grid am having an image button ; on click o to open a file that is there in database.

My code is like this

protected void imgBtnPersonalView_Click(object sender, ImageClickEventArgs e)
{
        
            ImageButton imgBtnPersonalView = (ImageButton)sender;
GridDataItem dataItem = (GridDataItem)imgBtnPersonalView.NamingContainer;

string documentId = dataItem["Document_Id"].Text;
DataTable dt = objNewJoineeFormBL.GetDocumentUploadByDocumentId(documentId);
byte[] objData = (byte[]) dt.Rows[0]["Data"];
string strFileName = dt.Rows[0]["Document_Name"].ToString();
string fileExtension = dt.Rows[0]["File_Format"].ToString();

Response.Clear();
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = fileExtension;
Response.AppendHeader("Content-Disposition", "attachment; filename=" + strFileName);
Response.BinaryWrite(objData);
Response.Flush();
Response.End();
}

I can see the data while debugging..
But when it comes to the last line, it shows an error like
0xc00ce514 - JavaScript runtime error: Could not complete the operation due to error c00ce514
i am attaching screen shot of it.
What i need is, a file window to open/ save button.
i got files in picture format, doc and pdf.


Thanks in advance


Angel Petrov
Telerik team
 answered on 02 Jul 2014
15 answers
162 views
Hello,

My RadGrid was working fine when loading a datasource before I set AllowFilterByColumn="true" on it. Now I get a pop-up with a page error "Expected ')'". I try to debug the page but it doesn't break on the error, so I'm assuming it's being raised in one of the Telerik js files. Any idea what's going on here?

Thanks.
Princy
Top achievements
Rank 2
 answered on 02 Jul 2014
4 answers
339 views
I am trying to replace a textbox in a grid edit form with an autocomplete. The autocomplete is correctly suggesting the possible entries but does not bind the selected value to the db on insert.
So far this is the markup I am using where you see the old text box and the autocomplete.

<%-- <telerik:RadTextBox ID="ProjManag" TabIndex="2" runat="server" Width="200px" onkeypress="return this.value.length<=25" Text='<%# Bind( "ProjManag" ) %>'>
</telerik:RadTextBox>--%>
   
<telerik:RadAutoCompleteBox ID="ProjManag" runat="server" AllowCustomEntry="True" Culture="it-IT" DataSourceID="SqlDataSource1"  DataTextField="ProjManag" DataValueField="ProjManag" Filter="StartsWith" InputType="Text" Skin="Outlook">
</telerik:RadAutoCompleteBox>

How can I bind the selected value to the db? 
Shinu
Top achievements
Rank 2
 answered on 02 Jul 2014
9 answers
1.2K+ views
I am using a GrdTemplateColumn in order to display a CheckBox (Instead of a CheckBoxColumn) because I need the user to be able to check and uncheck the checkbox without first having to click EDIT.

The checkbox needs to be able to do an Asynchronus postback to the database (bit value).

I can get the checkbox to display, but I don't know how to get it to fire in the CodeBehind in order to update the appropriate row in the database.

                <telerik:GridTemplateColumn Reorderable="true" DataField="isSold" HeaderText="Sold" UniqueName="Sold">  
                    <HeaderStyle ForeColor="Blue" Font-Underline="true" /> 
                    <ItemTemplate> 
                        <asp:CheckBox AutoPostBack="true" OnCheckedChanged="CheckBox1_Changed" ID="CheckBox1" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "isSold") %>' /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
Shinu
Top achievements
Rank 2
 answered on 02 Jul 2014
12 answers
391 views
Any chance to have that barcode type in the Q2 release ?

SR
lucysome
Top achievements
Rank 1
 answered on 02 Jul 2014
4 answers
151 views
I have created a RadDropDownTree inside a Popup WebUserControl for editing a row in the grid.
In the grid's UpdateCommand event, I grab a handle to the RadDropDownTree like this:

RadDropDownTree ddtMount = userControl.FindControl("ddtMount") as RadDropDownTree;

Even if the user check-marks some of the items in the tree, they all come back as "checked = false".

Anyone have an idea what I could be doing wrong? I can post more code details if needed.

TIA,

Jeffrey Taylor
Jeffrey
Top achievements
Rank 1
 answered on 01 Jul 2014
4 answers
131 views
Hi,

Would you have the SQL for the two tables used in the Datasource provider demo please?
Or even a sample?

Cheers,
jon
Jon
Top achievements
Rank 1
 answered on 01 Jul 2014
5 answers
535 views
I have a RADGrid named 'RadGrid1' in my ASPX page.
RadGrid1 has Form Template Edit form and this edit form contains RADEditor named 'RadEditor1'.

If I want to get the content of the RADEditor 'RadEditor1' in the code behind file of this ASPX page, what is the correct way of referencing the contents in the RadEditor1?

I tried the code shown below:
RadEditor radEditor = ((RadEditor)e.Item.FindControl("RadEditor1"));
string content = radEditor.Content;

But I get the error 'System.EventArgs' does not contain a definition for 'Item' and no extension method 'Item' accepting...'

I have also tried the code shown below to get the content stored in the RadEditor1 but it still didn't work.
string content = RadGrid1.RadEditor1.Content;

Thank you.
Soismel
Top achievements
Rank 1
 answered on 01 Jul 2014
1 answer
105 views
Hi,

Is there a 100% stacked chart available?

Regards,

Sanj
Danail Vasilev
Telerik team
 answered on 01 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?