Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
i want changing fonts all telerik control (Grid Items, Grid Header, Combobox Item, ....) in my project  to "Tahoma".
i can?
Shinu
Top achievements
Rank 2
 answered on 19 Jul 2010
3 answers
160 views
Is it possible to set the image manager of the radEditor to give acces to all the computer files? I'm only able to acces a folder of the project like this :

<ImageManager ViewPaths="~/img" /> 

Thanks
Dobromir
Telerik team
 answered on 19 Jul 2010
1 answer
122 views
I post another problem. I would like to retrieve the key value of the row when i click on a control (imageButton) situated in a template column of the row or in the editformtemplate. In the classic aspnet GridView  i used this code:

protected

 

void ImageButtonTest_Click(object sender, ImageClickEventArgs e)

 

{

 

ImageButton imageButton = (ImageButton)sender;

 

 

TableCell tableCell = (TableCell)imageButton.Parent;

 

 

GridViewRow row = (GridViewRow)tableCell.Parent;

 

 

string id = GridViewTest.DataKeys[row.RowIndex].Values[0].ToString();

 

...
}

Any idea? Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 19 Jul 2010
2 answers
263 views
hi again my friends
I have new question about radgrid, I have two columns one for Edit & the other for Delete & I want to merge the two actions under one column, can we do something like this in the radgrid? how?

kind regards...
hamda
Top achievements
Rank 1
 answered on 19 Jul 2010
3 answers
85 views
I'm creating a custom skin that started from the Default skin that comes with the controls.

It's going fine except no matter what I try to do to increase the padding of the cells nothing seems to work.  I even tried putting "padding: 15px" in EVERY class definition but the table is still tight with little padding.

What am I missing to get more white space in my table when starting from the Default skin definition?

Thanks!
Kevin
Kevin Warnke
Top achievements
Rank 1
 answered on 18 Jul 2010
2 answers
104 views
I have a radcombobox control bound to XML list of listitems with customEdit=True. When custom text is entered to control it is persisted to database but does not show in control when page is reloaded. Control works fine if I pick an item in the xml list but not when custom text is entered. Checked out control properties but did not see anything that looked likely. Greatly appreciate your time and consideration.

David
David Gray
Top achievements
Rank 1
 answered on 18 Jul 2010
1 answer
162 views
I have use a filter template for one column that uses several controls. I thought the right way to get values out of a custom filter template would be to derive from GridBoundColumn and override the methods SetCurrentFilterValueToControl and GetCurrentFilterValueFromControl. Unfortunately when setting a filter with the UI and initiate a postback with the JavaScript function tableView.filter the first thing that gets called is SetCurrentFilterValueToControl. I expected a Get call but not a Set one. In the set method I set the filter controls to values that are saved in the session. This way I lose the settings made by the user. After having lost the user's filter wish the ItemCommand of RadGrid fires and after that the GetCurrentFilterValueFromControl of the column.

I tried to find out what the right way is by removing the filter template and watch the event calling order with RadGrids default text filter. When filtering now the first method called is also SetCurrentFilterValueToControl. But when looking at the CurrentFilterValue property of the column I could see that some magic already set it to the correct value. This has happened without a call to GetCurrentFilterValueFromControl.

My understanding was to override GetCurrentFilterValueFromControl to read values of the controls inside a custom filter template and to override SetCurrentFilterValueToControl to set values of the controls. What is the right way to interact between CurrentFilterValue and a custom filter template?
Michael Maluck
Top achievements
Rank 1
 answered on 18 Jul 2010
2 answers
113 views

This is the column order in my grid.
SP Full Name, Email, Job Title, Location, Resume, Organization

I'm reordering the column "SP Full Name" to come after "Job Title". (As shown in attachment)

But the columns gets reordered as below,
Email, Job Title, Location, SP Full Name, Resume, Organization

The "Location" column should stay after the "SP Full Name" column. Right?

What i am doing wrong?

Please somebody help me with this issue.

This is my ClientSettings Code Block

 
 
<ClientSettings ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="true" AllowColumnsReorder="true"  
 
                EnableRowHoverStyle="false" AllowDragToGroup="true">  
 
                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />  
 
            </ClientSettings>  

 


Aswin S
Top achievements
Rank 1
 answered on 17 Jul 2010
0 answers
86 views
when get selected value of radcombobox its shows always empty
ARUN RAJA
Top achievements
Rank 1
 asked on 17 Jul 2010
4 answers
169 views
Hello,

I have an autogenerated edit form, I'm trying to get the data from the controls on the edit form as follows, but the data in the controls is the un-editted value. This is how all the examples show this working. Any ideas?

Thanks!

#region gvLUs_UpdateCommand event
    protected void gvLUs_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        //Get the GridEditableItem of the RadGrid     
        GridEditableItem editedItem = e.Item as GridEditableItem;
  
        // Build our Update string
        string strUpdate = "";
        string strWhere = "";
  
        int ic = 0;
        GridColumn editColumn;
  
        for (int i=0; i<gvLUs.MasterTableView.AutoGeneratedColumns.Count(); i++)
        {
            ic++;
  
            if (i == 0)
            {
                // Get our PK column
                editColumn = gvLUs.MasterTableView.AutoGeneratedColumns[i];
                LU.ID = editColumn.UniqueName.ToString();
                LU.IDValue = Convert.ToInt32((editedItem[editColumn].Controls[0] as TextBox).Text);
                // Add to our UPDATE string
                strUpdate = "UPDATE " + LU.TableName + " SET ";
                strWhere = " WHERE " + LU.ID + " = " + LU.IDValue.ToString();
            }
            else
            {
                if (ic != gvLUs.MasterTableView.AutoGeneratedColumns.Count())
                {
                    // Get other values to be updated
                    editColumn = gvLUs.MasterTableView.AutoGeneratedColumns[i];
                    strUpdate += editColumn.UniqueName.ToString() + " = '" + (editedItem[editColumn.UniqueName].Controls[0] as TextBox).Text + "' ,";
                }
                else
                {
                    // Get other values to be updated
                    editColumn = gvLUs.MasterTableView.AutoGeneratedColumns[i];
                    strUpdate += editColumn.UniqueName.ToString() + " = '" + (editedItem[editColumn.UniqueName].Controls[0] as TextBox).Text + "'";
                }
            }
  
        }
Brad
Top achievements
Rank 1
 answered on 17 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?