Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hi,

     I have to make Add New Record command item to be invisible on a user login , where as for admin login it will be visible.
    So i have a method where based on user login i am making 

RgdDomainDetail.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.None;
and for admin login 

 

RgdDomainDetail.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.Top;

But still i am able to see the add new record command item bar when the user is logged in.

Could you please suggest how to make it invisible .

Thanks,
Satya.

 

Shinu
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
98 views
Hi,

Can anyone explain me the sequence of events occurs when we filter the grid?

I am not sure that what i need really possible, basically need something before the response go the server. and need it on the server side not the client-side handler.

Sunil.
Princy
Top achievements
Rank 2
 answered on 23 Sep 2009
5 answers
137 views
We use radeditor at many places on the same page and what we notice is that the toolbar button state is getting saved every time when we close the editor.

In other words, if I click on OK or Cancel button to close the editor, opening the editor again makes the same toolbar button highlighted.

Can you please let me know how I can disable this behavior?

Thanks, Lakshman
Rumen
Telerik team
 answered on 23 Sep 2009
1 answer
88 views

I have a button that opens a radwindow. The button more or less just tests the user input of a url in a RadWindow.
Below is the code that is called when the button is clicked. My issue is when the user closes that small RadWindow the page itself stops responding, you can click buttons and such but have no cursor and I can see the page thinking type icon at the top spinning and spinning and just doesn't stop. What is wrong? Why is the page having to think when the window is closed?

 

function

 

openNewWindow(testlink)

 

{

 

var windowURL = document.getElementById("ctl00$ContentPlaceHolder1$tmcreate$" + testlink).value;

 

 

if (Left(windowURL, 7) != "http://")

 

{

 

var oWnd = radopen("http://" + windowURL, null);

 

}

 

else

 

 

 

 

{

 

var oWnd = radopen(windowURL, null);

 

}

 

}

 

function Left(str, n)

 

{

 

if (n <= 0)

 

 

return "";

 

 

else if (n > String(str).length)

 

 

return str;

 

 

else

 

 

 

 

 

return String(str).substring(0,n);

 

}

Georgi Tunev
Telerik team
 answered on 23 Sep 2009
3 answers
113 views
When I enter text and apply H1 formatting, the P tag is often wrapped around the text.  Anyway to avoid this?
<H1>
<P>Text</P>
</h1>
Rumen
Telerik team
 answered on 23 Sep 2009
1 answer
136 views
Although this property is set to HierarchyLoadMode="ServerOnDemand" it behaves like some mixed mode. 
Actually, everything is work just as should be work by documentation, but when I expand for the first time any of child levels, grid tries to Bind all the child tables.
I have considered this in SqlProfiler, when you expand some level but only for the very first time, you can see database calls for every parent row.

If it can help you in answering my problem I have used SessionDataSource.     

Thanks in advance.
Pavlina
Telerik team
 answered on 23 Sep 2009
2 answers
119 views
Hi ,

I am using a radgrid in a radwindow,i am populating the grid dynamically code given below.

Now i want to select a grid row and pass some values in the rows to the parent page as i am using radwindow.
Radwindow is containing for E.g. SaveParameters.aspx page
Now when i click on grid row i want to pass a value in the row to parent page i.e MyReports.aspx
Only Select Column is in MasterTableView as this

 

<MasterTableView>   
<Columns>   
        <telerik:GridButtonColumn ButtonType="LinkButton" Text="Select"   CommandName="Select">   
        </telerik:GridButtonColumn>   
</Columns>    
</MasterTableView>   
   
 
 
 

 

 

 

How can i do this as i am binding everything(columns also) dynamically?

 

 for(int i=0;i<=dstParam.Tables[0].Rows.Count-1;i++)  
            {  
                  
                DataColumn dc;  
                DataRow dr;  
                dr = dt.NewRow();  
                  
                             
                strParamListName = dstParam.Tables[0].Rows[i]["Param_List_Name"].ToString();  
                strParamlist = "Param List Name " + "="+ strParamListName + "&"+ dstParam.Tables[0].Rows[i]["Actual_Contents"].ToString();  
 
                string[] strColumns = strParamlist.Split('&');  
                for (int j = 0; j <= strColumns.Length - 1; j++)  
                {  
                      
                    dc = new DataColumn();  
 
                    strColumnName = strParamListName;  
                    if (strColumns[j].IndexOf(':') != -1)  
                    {  
                        strColumnName = strColumns[j].Substring(strColumns[j].IndexOf('_')+1).Remove(strColumns[j].IndexOf(':')-1).ToUpper();  
                        dc.ColumnName = strColumns[j].Substring(strColumns[j].IndexOf('_') + 1).Remove(strColumns[j].IndexOf(':')-1).ToUpper();  
                    }  
                    else 
                    {  
                        strColumnName = strColumns[j].Substring(0,strColumns[j].IndexOf('=') - 1);  
                        dc.ColumnName = strColumns[j].Substring(0, strColumns[j].IndexOf('=') - 1);  
                    }  
                      
                    strRowValues = strColumns[j].Substring(strColumns[j].IndexOf('=')+1);  
 
                    chkColFlag = ColumnExists(dt, strColumnName);  
 
                    if (!chkColFlag)  
                    {  
                        dt.Columns.Add(dc);  
                    }  
 
                    dr[strColumnName] = strRowValues;  
                      
                }  
 
                dt.Rows.Add(dr);  
            }  
 
            rgdParamlist.DataSource = dt;  
            rgdParamlist.DataBind();  
        } 

 

 

 

 

 

Kiran
Top achievements
Rank 1
 answered on 23 Sep 2009
3 answers
173 views
Hello All,

I'm relatevely new to these suite of controls which are pretty cool.currently I'm facing a problem

I have a page that works normally however I just try to add a loading message everytime a code behind action is done, but now it is not fired :( .. I may not configure it well.

This is part of the code:
<telerik:RadStyleSheetManager ID="rssFileUpload" runat="server">  
</telerik:RadStyleSheetManager> 
      
<telerik:RadScriptManager ID="rsmFileUpload" runat="server">  
</telerik:RadScriptManager> 
      
<telerik:RadAjaxManager ID="ramFileUpload" runat="server">  
  <AjaxSettings> 
     <telerik:AjaxSetting AjaxControlID="btnNext">  
       <UpdatedControls> 
         <telerik:AjaxUpdatedControl ControlID="pnUploadGeneral" LoadingPanelID="ralFileUpload" /> 
       </UpdatedControls> 
     </telerik:AjaxSetting>              
  </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadWindowManager   ID="rwmFileUpload" 
                            runat="server" 
                            Skin="Web20" 
                            VisibleStatusbar="false" 
                            > 
</telerik:RadWindowManager>      
 
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">  
        <tr style="width:100%">  
            <td style="width:100%">  
                <asp:Panel ID="pnUploadGeneral" runat="server" Width="100%" /> 
            </td> 
        </tr> 
        <tr style="width:100%">  
            <td align="right">                  
                <asp:Button ID="btnBack" runat="server" Text="Back" Width="100px"   
                    onclick="btnBack_Click" /> 
                <asp:Button ID="btnNext" runat="server" Text="Next"   
                    onclick="btnSubmit_Click" Width="100px" CausesValidation="true"/>  
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="100px" />                  
            </td> 
        </tr> 
    </table> 
 
<telerik:RadAjaxLoadingPanel ID="ralFileUpload" runat="server" Height="75px" Width="75px">  
        Loading  
</telerik:RadAjaxLoadingPanel>     
 

but every time I click btnNext, no code behid is executed, am I missing any configuration ?

Regards



Pavlina
Telerik team
 answered on 23 Sep 2009
1 answer
135 views
I have a navigational RadTreeView which is built based on various DB calls for each branch, and was thinking it would be ideal if I could build them once, and then stick RadTree.Nodes into a cache object, which I can later re-use without needing to hit the database again.

Unfortunately RadTree.Nodes is Get only, and doesn't allow me to write the cached NodeCollection back to the Tree on the next load.

Is there any way to do something like this?


Yana
Telerik team
 answered on 23 Sep 2009
1 answer
104 views
is it realy works client side? with number of 40 000 rows it is just killing IIS server, do you have any tricks to solve it?
Shinu
Top achievements
Rank 2
 answered on 23 Sep 2009
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?